/* ============================================
   THE ADMIN TEAM — Landing Page Styles
   ============================================ */

/* --- CSS Custom Properties (Brand Tokens) --- */
:root {
  /* Base & Background */
  --bg-main: #FFFFFF;
  --bg-surface: #F9FAFB;
  --bg-secondary: #F3F4F6;

  /* Typography */
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-light: #9CA3AF;

  /* Brand / Action */
  --brand-purple: #7C3AED;
  --brand-purple-hover: #6D28D9;
  --brand-purple-light: rgba(124, 58, 237, 0.08);

  /* Semantic */
  --success: #10B981;

  /* Decorative Accents */
  --accent-lavender: #C4B5FD;
  --accent-yellow: #FBBF24;
  --accent-pink: #F472B6;
  --accent-blue: #3B82F6;
  --accent-orange: #FB923C;
  --accent-mint: #34D399;

  /* Spacing */
  --section-pad: 6rem 0;
  --container-max: 1200px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-device: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseSoft {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes rotateBlob {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-right: -8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand-purple);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--bg-secondary);
}

.btn-outline:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--brand-purple);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Decorative blobs */
.hero-blob-1 {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-lavender));
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  opacity: 0.45;
  z-index: 0;
  animation: rotateBlob 30s linear infinite;
}

.hero-blob-2 {
  position: absolute;
  top: 220px;
  right: 200px;
  width: 90px;
  height: 90px;
  background: var(--accent-yellow);
  border-radius: 50%;
  z-index: 1;
  animation: floatBob 4s ease-in-out infinite;
}

.hero-blob-3 {
  position: absolute;
  bottom: 180px;
  right: 350px;
  width: 55px;
  height: 55px;
  background: var(--accent-pink);
  border-radius: 50%;
  z-index: 1;
  animation: floatBob 5s ease-in-out infinite 1s;
}

.hero-blob-4 {
  position: absolute;
  bottom: -40px;
  right: 80px;
  width: 160px;
  height: 80px;
  background: var(--brand-purple);
  border-radius: 80px 80px 0 0;
  z-index: 1;
}

.hero-blob-5 {
  position: absolute;
  bottom: -60px;
  left: 50%;
  width: 200px;
  height: 100px;
  background: var(--accent-blue);
  border-radius: 100px 100px 0 0;
  z-index: 1;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--brand-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 440px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

/* Hero testimonial */
.hero-testimonial {
  padding: 1.5rem;
  border-left: 3px solid var(--brand-purple);
  background: var(--brand-purple-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 440px;
}

.hero-testimonial p {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.hero-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-testimonial-author .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-purple), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
}

.hero-testimonial-author .author-info strong {
  font-size: 0.875rem;
  display: block;
}

.hero-testimonial-author .author-info span {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Hero Visual (right side) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Image */
.hero-image-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-device);
  animation: floatBob 6s ease-in-out infinite;
  position: relative;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* ============================================
   TRUSTED BY SECTION
   ============================================ */
.trusted-by {
  padding: 4rem 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.trusted-by .container {
  text-align: center;
}

.trusted-by h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trusted-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.5;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trusted-logo:hover {
  opacity: 0.8;
}

.trusted-logo .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-pad);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-purple), var(--accent-pink));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand-purple);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================
   DEVICE MOCKUP SECTION
   ============================================ */
.device-showcase {
  padding: var(--section-pad);
  position: relative;
  overflow: hidden;
}

/* Large decorative blobs behind devices */
.device-showcase::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--accent-lavender), var(--accent-pink));
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
}

.device-showcase::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -150px;
  width: 400px;
  height: 400px;
  background: var(--accent-yellow);
  border-radius: 50%;
  opacity: 0.12;
  z-index: 0;
}

.device-showcase .container {
  position: relative;
  z-index: 1;
}

.devices-wrapper {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

/* --- Desktop Device Frame --- */
.device-desktop {
  width: 680px;
  flex-shrink: 0;
  animation: floatBob 6s ease-in-out infinite;
}

.desktop-bezel {
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 0;
  position: relative;
}

.desktop-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 10px;
}

.desktop-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.desktop-dot.red {
  background: #FF5F57;
}

.desktop-dot.yellow {
  background: #FFBD2E;
}

.desktop-dot.green {
  background: #28C840;
}

.desktop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-surface), #EDE9FE);
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.desktop-screen img,
.desktop-screen iframe,
.desktop-screen spline-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-stand {
  width: 120px;
  height: 50px;
  background: linear-gradient(180deg, #2d2d44, #1a1a2e);
  margin: 0 auto;
  clip-path: polygon(15% 0, 85% 0, 100% 100%, 0% 100%);
}

.desktop-base {
  width: 200px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}

/* --- Mobile Device Frame --- */
.device-mobile {
  width: 220px;
  flex-shrink: 0;
  animation: floatBob 5s ease-in-out infinite 0.5s;
}

.mobile-bezel {
  background: #1a1a2e;
  border-radius: 28px;
  padding: 14px 10px;
  position: relative;
}

.mobile-notch {
  width: 80px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 0 0 14px 14px;
  margin: -14px auto 8px;
  position: relative;
  z-index: 5;
}

.mobile-screen {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: linear-gradient(135deg, var(--bg-surface), #EDE9FE);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.mobile-screen img,
.mobile-screen iframe,
.mobile-screen spline-viewer {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-home-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* Device placeholder content */
.device-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.8125rem;
  text-align: center;
  padding: 1rem;
}

.device-placeholder .dp-icon {
  font-size: 2rem;
  opacity: 0.4;
}


/* ============================================
   SPLINE 3D SHOWCASE SECTION
   ============================================ */
.spline-showcase {
  padding: var(--section-pad);
  position: relative;
}

.spline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.spline-slot {
  min-height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.spline-slot .spline-placeholder {
  min-height: 400px;
}


/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding: var(--section-pad);
  background: var(--bg-surface);
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: step;
}

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-main);
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-purple);
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 50%, #5B21B6 100%);
  color: #fff;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.cta-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-form .btn {
  background: #fff;
  color: var(--brand-purple);
  font-weight: 700;
  padding: 1rem 2rem;
  white-space: nowrap;
}

.cta-form .btn:hover {
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* CTA Enquiry Button */
.cta-enquiry-btn {
  background: #fff;
  color: var(--brand-purple);
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cta-enquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0 2rem;
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand .nav-logo .logo-icon {
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .spline-container {
    min-height: 350px;
  }

  .devices-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .device-desktop {
    width: 100%;
    max-width: 580px;
  }

  .device-mobile {
    width: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .spline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Mobile Menu */
  .mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 999;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu a {
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-secondary);
    color: var(--text-primary);
  }

  .mobile-menu .btn-primary {
    text-align: center;
    justify-content: center;
    margin-top: 1rem;
  }

  .hero {
    padding: 8rem 0 4rem;
    min-height: auto;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-blob-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -180px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-form {
    flex-direction: column;
  }

  .device-desktop {
    width: 100%;
  }

  .device-mobile {
    width: 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}


/* ============================================
   SIGNUP MODAL (Glassmorphism)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow:
    0 8px 60px rgba(124, 58, 237, 0.12),
    0 2px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

.modal-header {
  margin-bottom: 1.75rem;
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 56px;
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.875rem;
  font-size: 1rem;
}

.form-group-short {
  max-width: 200px;
}

.modal-footer-link {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
}

.modal-footer-link a {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
}

.modal-footer-link a:hover {
  text-decoration: underline;
}

#loginMessage {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

#loginMessage.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

#loginMessage.error {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.magic-link-display {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--brand-purple);
  word-break: break-all;
  font-family: 'Courier New', monospace;
}

@media (max-width: 540px) {
  .modal-card {
    padding: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}