:root {
  /* Brand Colors - Dark Mode Theme */
  --bg-dark: #030014; /* Deepest Void */
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  
  --primary: #7c3aed;
  --primary-glow: #8b5cf6;
  --accent: #10b981; /* Emerald/Mint for success/money vibes */
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --grad-mesh: radial-gradient(at top left, #2e1065 0%, transparent 50%), 
               radial-gradient(at top right, #1e1b4b 0%, transparent 50%),
               radial-gradient(at bottom left, #1d4ed8 0%, transparent 50%);
               
  --grad-primary: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  --grad-accent: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  
  /* Glassmorphism */
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --backdrop-blur: blur(12px);

  /* Layout */
  --container-width: 1200px;
  --header-height: 64px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  overflow-x: hidden;
}

/* Desktop/laptop: scale down so it doesn’t feel zoomed in (mobile stays at 16px) */
@media (max-width: 767px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  html {
    font-size: 14px;
  }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background-image: var(--grad-mesh);
  background-attachment: fixed;
  position: relative;
  width: 100%;
  max-width: 100vw;
  padding-top: var(--header-height);
  isolation: isolate;
}

@media (max-width: 767px) {
  body {
    padding-top: 56px;
  }
}

/* Prevent background jank on mobile (iOS fixed background causes shifting) */
@media (max-width: 991px) {
  body {
    background-attachment: scroll;
  }

  /* Lock body scroll only when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(135deg, #fff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(1.75rem, 5.5vw, 2.15rem);
    line-height: 1.22;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: clamp(1.5rem, 4.5vw, 1.85rem);
    margin-bottom: 0.75rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.6rem, 5.2vw, 1.95rem);
    margin-bottom: 0.9rem;
  }
  h2 {
    font-size: clamp(1.4rem, 4.2vw, 1.65rem);
  }
  p {
    font-size: 0.9375rem;
  }
}

h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

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

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-20%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.glass-card > *,
.tile > * {
  position: relative;
  z-index: 1;
}

.glass-card:hover::after {
  opacity: 1;
  animation: sheenSweep 0.95s var(--ease-spring) both;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 0, 20, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Remove the solid background line */
.site-header::after {
  display: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  width: 100%;
}

@media (max-width: 767px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0.65rem 1rem;
  }
}

.brand {
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .brand {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 1.15rem;
  }
}

.nav-links {
  display: none;
}

.nav-actions {
  display: none;
}

@media (min-width: 992px) {
  .site-header {
    padding: 0.5rem 0;
  }

  .nav-container {
    display: grid;
    grid-template-columns: 180px 1fr auto auto;
    align-items: center;
    gap: 2rem;
  }

  .brand {
    font-size: 1.35rem;
  }

  .mobile-menu {
    display: contents;
  }

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

  .nav-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
  }

  /* Premium animated underline */
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
  }

  .nav-links a:hover {
    color: white;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
  }
}

.link-login {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
}

.link-login:hover {
  color: white;
}

.link-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: 3.5rem; /* Significant spacing from the button */
  transition: all 0.2s ease;
}


.link-lang:hover {
  color: white;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile: language link to the right of the hamburger (dropdown menu) */
@media (max-width: 991px) {
  .header-right {
    gap: 0.85rem;
  }
  .header-right .link-lang {
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.35rem 0.5rem;
    margin-left: 0;
  }
}

.header-right .link-lang {
  margin-left: 0;
}

@media (min-width: 992px) {
  .header-right .link-lang {
    margin-left: 0.5rem;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

@media (min-width: 992px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.25s ease;
}

.site-header.mobile-menu-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.mobile-menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.mobile-menu-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  /* Backdrop overlay when menu is open – fades in, tap to close */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  body.menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: rgba(6, 5, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 5.5rem 1.5rem 2rem;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    z-index: 100;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
  }

  .site-header.mobile-menu-open .mobile-menu {
    right: 0;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
  }

  /* Staggered fade-in per link when opening */
  .site-header.mobile-menu-open .mobile-menu .nav-links a {
    animation: mobileMenuFadeIn 0.35s ease both;
  }

  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(1) { animation-delay: 0.05s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(2) { animation-delay: 0.1s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(3) { animation-delay: 0.15s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(4) { animation-delay: 0.2s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(5) { animation-delay: 0.25s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(6) { animation-delay: 0.3s; }
  .site-header.mobile-menu-open .mobile-menu .nav-links a:nth-child(7) { animation-delay: 0.35s; }

  .site-header.mobile-menu-open .mobile-menu .nav-actions {
    animation: mobileMenuFadeIn 0.4s ease 0.4s both;
  }

  .mobile-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-menu .nav-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.9rem 0;
    width: 100%;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-menu .nav-links a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
  }

  .mobile-menu .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.5rem;
  }

  .mobile-menu .nav-actions .link-login {
    padding: 0.75rem 0;
    font-size: 1rem;
    text-align: center;
  }

  .mobile-menu .nav-actions .button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    justify-content: center;
  }

  .mobile-menu .nav-actions .link-lang {
    margin-top: 1rem;
    margin-left: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9375rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileMenuFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s var(--ease-spring);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  background: var(--grad-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.button-primary {
  background: var(--grad-accent);
  color: #000;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Shine sweep on hover */
.button-primary::after,
.button.cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
}

.button-primary:hover::after,
.button.cta:hover::after {
  left: 100%;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.45);
}

.button-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: none;
}

.button.small {
  padding: 0.45rem 1.25rem;
  font-size: 0.8125rem;
}

.button.cta {
  background: var(--grad-accent);
  color: #000;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero-actions {
    margin-top: 1.35rem;
    gap: 0.75rem;
  }
  .hero-actions .button {
    padding: 0.75rem 1.35rem;
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    margin-top: 1.2rem;
  }
  .hero-actions .button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    padding: 4rem 0 2.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 0 2.5rem;
  }
}

@media (min-width: 992px) {
  .hero {
    padding: 6rem 0 5rem;
  }
}

/* Background Glow Orb – subtle pulse */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: heroOrbPulse 8s ease-in-out infinite;
}

@keyframes heroOrbPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.15); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 767px) {
  .hero-grid {
    gap: 2.25rem;
  }
}

@media (max-width: 480px) {
  .hero-grid {
    gap: 2rem;
  }
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

@media (max-width: 767px) {
  .hero-content > span[style*="uppercase"],
  .hero-content > span:first-child {
    font-size: 0.8rem !important;
    margin-bottom: 0.7rem !important;
    letter-spacing: 0.8px !important;
  }
}

@media (max-width: 480px) {
  .hero-content > span[style*="uppercase"],
  .hero-content > span:first-child {
    font-size: 0.75rem !important;
    margin-bottom: 0.6rem !important;
  }
}

.hero-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero-badges {
    margin-top: 1.25rem;
    gap: 0.5rem;
  }
}

.badge {
  padding: 0.4rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 767px) {
  .badge {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
  }
}

.badge:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Hero Visual - Premium Glass Card */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.visual-card {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  aspect-ratio: 4/5;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  transform: rotateY(-10deg) rotateX(5deg);
  box-shadow: 
    -20px 20px 60px rgba(0,0,0,0.5),
    inset 0 0 0 2px rgba(255,255,255,0.05);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: float 6s ease-in-out infinite, cardGlow 4s ease-in-out infinite;
}

@media (max-width: 767px) {
  .visual-card {
    max-width: 300px;
    border-radius: 20px;
    padding: 1.25rem;
    transform: none;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .visual-card {
    max-width: 260px;
    padding: 1rem;
    border-radius: 16px;
    font-size: 0.97em;
  }
}

@keyframes cardGlow {
  0%, 100% { box-shadow: -20px 20px 60px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.05); }
  50% { box-shadow: -20px 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124, 58, 237, 0.15), inset 0 0 0 2px rgba(255,255,255,0.08); }
}

@keyframes float {
  0%, 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(5deg) translateY(-20px); }
}

@keyframes sheenSweep {
  0% {
    transform: translateX(-120%) rotate(8deg);
  }
  100% {
    transform: translateX(120%) rotate(8deg);
  }
}

.receipt-header {
  text-align: center;
  border-bottom: 2px dashed rgba(255,255,255,0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.scanner-line {
  height: 2px;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  margin: 1rem 0;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(200px); opacity: 0; }
}

.receipt-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.receipt-total {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 2px dashed rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

/* Features Grid */
.features {
  padding: 4rem 0;
}

@media (max-width: 767px) {
  .features {
    padding: 3.25rem 0;
  }
}

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

@media (min-width: 992px) {
  .features {
    padding: 5rem 0;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 1.75rem;
  transition: 0.3s;
}

@media (max-width: 480px) {
  .feature-card {
    padding: 1.5rem;
  }
}

@media (min-width: 768px) {
  .feature-card {
    padding: 2rem;
  }
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-glow);
  font-size: 1.25rem;
  transition: transform 0.35s var(--ease-spring);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* Footer */
.footer,
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0;
  margin-top: 3rem;
  text-align: center;
}

@media (max-width: 767px) {
  .footer,
  footer {
    padding: 2.5rem 0;
    margin-top: 2.75rem;
  }
}

@media (max-width: 480px) {
  .footer,
  footer {
    padding: 2.25rem 0;
    margin-top: 2.5rem;
  }
}

@media (min-width: 992px) {
  .footer,
  footer {
    padding: 3rem 0;
    margin-top: 4rem;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .footer-links {
    gap: 1.15rem;
    margin-top: 1.15rem;
    font-size: 0.9375rem;
  }
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Form inputs dark mode override */
input {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  padding: 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  margin-bottom: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* Page templates */
.page-hero {
  padding: 4.5rem 1rem 2rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .page-hero {
    padding: 4rem 1.25rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 3.5rem 1rem 2rem;
  }
}

@media (min-width: 768px) {
  .page-hero {
    padding: 5.5rem 1.25rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .page-hero {
    padding: 6rem 1.5rem 3rem;
  }
}

.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero .lead {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .page-hero .lead {
    font-size: 1.0625rem;
  }
}

.muted {
  color: var(--text-muted);
}

.page-content {
  padding: 1.5rem 1rem 3rem;
}

@media (max-width: 767px) {
  .page-content {
    padding: 1.75rem 1.25rem 2.5rem;
  }
}

@media (max-width: 480px) {
  .page-content {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (min-width: 768px) {
  .page-content {
    padding: 2rem 1.25rem 3.5rem;
  }
}

@media (min-width: 992px) {
  .page-content {
    padding: 2rem 1.5rem 4rem;
  }
}

.section {
  padding: 3rem 1rem;
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.5rem 1rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1.25rem;
  }
}

@media (min-width: 992px) {
  .section {
    padding: 5rem 1.5rem;
  }
}

.section.accent {
  background: rgba(124, 58, 237, 0.08);
  border-top: 1px solid rgba(124, 58, 237, 0.2);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.section.contact {
  text-align: center;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 2rem;
  }
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 6-card grid (Services): always 3 columns from tablet up – no gap on the right */
@media (min-width: 768px) {
  .grid.two.grid--six {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* From tablet up: 3 boxes in one row so there’s no gap */
@media (min-width: 768px) {
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile: single column for all grids – no gaps, aligned stacking */
@media (max-width: 767px) {
  .grid.two,
  .grid.two.grid--six,
  .grid.three {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .grid .tile,
  .split .tile {
    width: 100%;
    min-width: 0;
  }
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tile {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    110deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-20%) rotate(8deg);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.14);
}

.tile:hover::after {
  opacity: 1;
  animation: sheenSweep 0.95s var(--ease-spring) both;
}

@media (min-width: 768px) {
  .tile {
    padding: 2rem;
  }
}

.tile h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

@media (min-width: 768px) {
  .tile h3 {
    font-size: 1.2rem;
  }
}

.list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--text-muted);
}

.list li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

/* "What we can help with" tile – clearer layout and bullets */
.tile--help h3 {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.list--help {
  gap: 1rem;
  line-height: 1.6;
}

.list--help li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.9375rem;
}

.list--help li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.5em;
  margin-right: 0;
  border-radius: 50%;
  background: var(--accent);
}

/* CTA card hover lift */
.cta-card {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 58, 237, 0.15);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

/* Login page */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem 0;
}

.login-brand {
  font-size: 1.6rem;
}

.login-lang {
  color: var(--text-muted);
  font-weight: 600;
}

.login-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem;
}

.login-card {
  width: min(420px, 100%);
  padding: 3.5rem 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: white;
}

.login-card p {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.login-form {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-form input {
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.login-form input:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-button {
  width: 100%;
  padding: 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--grad-accent);
  color: #000;
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.login-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: var(--accent);
}

/* QR code */
.qr-card {
  background: white;
  padding: 10px;
  border-radius: 8px;
  display: inline-flex;
}

.qr-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  opacity: 0.9;
}

/* Reveal animation – more dramatic entrance */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes for staggered entrance */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Stagger grid items when they reveal */
.grid-3 .feature-card:nth-child(1).reveal { transition-delay: 0s; }
.grid-3 .feature-card:nth-child(2).reveal { transition-delay: 0.12s; }
.grid-3 .feature-card:nth-child(3).reveal { transition-delay: 0.24s; }

.grid.two .tile:nth-child(1).reveal { transition-delay: 0s; }
.grid.two .tile:nth-child(2).reveal { transition-delay: 0.08s; }
.grid.two .tile:nth-child(3).reveal { transition-delay: 0.16s; }
.grid.two .tile:nth-child(4).reveal { transition-delay: 0.24s; }
.grid.two .tile:nth-child(5).reveal { transition-delay: 0.32s; }
.grid.two .tile:nth-child(6).reveal { transition-delay: 0.4s; }

.grid.three .tile:nth-child(1).reveal { transition-delay: 0s; }
.grid.three .tile:nth-child(2).reveal { transition-delay: 0.1s; }
.grid.three .tile:nth-child(3).reveal { transition-delay: 0.2s; }

.split .tile:nth-child(1).reveal { transition-delay: 0s; }
.split .tile:nth-child(2).reveal { transition-delay: 0.12s; }
.split .tile:nth-child(3).reveal { transition-delay: 0.24s; }

/* Keep hover lift working after reveal transforms */
.reveal.is-visible.tile:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.14);
}

/* Premium hover effects */
.glass-card {
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}

/* Magnetic button feel */
.button {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.button:active {
  transform: scale(0.96);
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* App Coming Soon Banner */
.app-banner {
  margin-top: 2.5rem;
  position: relative;
  display: inline-flex;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.app-icon-stack {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.app-banner-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.app-title {
  font-size: 0.95rem !important;
  font-weight: 600;
  color: white !important;
  margin: 0 !important;
}

.app-banner-glow {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15), transparent 60%);
  transform: translateY(-50%);
  z-index: 1;
}

@media (max-width: 767px) {
  .app-banner {
    margin-top: 2rem;
    padding: 0.85rem 1.25rem;
    width: 100%;
    justify-content: center;
  }
  .app-icon-stack {
    font-size: 1.25rem;
  }
  .app-title {
    font-size: 0.875rem !important;
  }
}

/* Ambient motion background (subtle, tool-like “signal” particles) */
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(
      circle at 1px 1px,
      rgba(124, 58, 237, 0.25) 0.5px,
      transparent 1px
    ),
    radial-gradient(
      circle at 1px 1px,
      rgba(16, 185, 129, 0.2) 0.5px,
      transparent 1px
    );
  background-size: 90px 90px, 130px 130px;
  background-position: 0 0, 45px 60px;
  opacity: 0.22;
  transform: translate3d(0, 0, 0);
  animation: ambientDrift 28s linear infinite;
  filter: blur(0.15px);
}

/* Page-specific Animated Backgrounds */
.bg-home::after {
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(124, 58, 237, 0.15) 1px, transparent 0),
    linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 0),
    linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 0);
  background-size: 40px 40px, 80px 80px, 80px 80px;
  animation: ambientDrift 40s linear infinite, bgPulse 10s ease-in-out infinite;
}

.bg-services::after {
  background-image: 
    repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.03) 0px, rgba(16, 185, 129, 0.03) 1px, transparent 1px, transparent 20px),
    repeating-linear-gradient(-45deg, rgba(16, 185, 129, 0.03) 0px, rgba(16, 185, 129, 0.03) 1px, transparent 1px, transparent 20px);
  background-size: 100% 100%;
  animation: ambientDrift 60s linear infinite;
}

.bg-tech::after {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px;
  animation: techDrift 20s linear infinite;
}

.bg-about::after {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  animation: aboutFloat 30s ease-in-out infinite alternate;
}

.bg-contact::after {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.3; }
}

@keyframes techDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 30px 30px, 30px 30px; }
}

@keyframes aboutFloat {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 2%) scale(1.1); }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2%, 2%, 0);
  }
  100% {
    transform: translate3d(-4%, 4%, 0);
  }
}

@media (max-width: 767px) {
  body::after {
    opacity: 0.16;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
