html { scroll-behavior: smooth; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
::selection { background: #a5b4fc; color: #0f172a; }
.glass { background: rgba(255,255,255,.76); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.hero-grid { background-image: linear-gradient(rgba(99,102,241,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.08) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.gradient-text { background: linear-gradient(90deg,#4f46e5,#7c3aed,#2563eb); -webkit-background-clip:text; background-clip:text; color:transparent; }
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(15,23,42,.10); border-color: rgba(99,102,241,.3); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.show { opacity: 1; transform: none; }
.nav-link { position: relative; }
.nav-link:after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:#4f46e5; transition:width .2s ease; }
.nav-link:hover:after, .nav-link.active:after { width:100%; }
.btn-shine { position:relative; overflow:hidden; }
.btn-shine:before { content:""; position:absolute; inset:-2px; transform:translateX(-120%) skewX(-22deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); transition:transform .65s ease; }
.btn-shine:hover:before { transform:translateX(120%) skewX(-22deg); }
.faq-answer { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.open .faq-answer { max-height:240px; }
.faq-item.open .faq-icon { transform:rotate(45deg); }
.faq-icon { transition: transform .25s ease; }

/* Responsive hardening */
*, *::before, *::after { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }
a, button, input, textarea, select { -webkit-tap-highlight-color: transparent; }
input, textarea, select { max-width: 100%; }
body { overflow-wrap: anywhere; }

@media (max-width: 639px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.4rem) !important; line-height: 1.02 !important; }
  h2 { line-height: 1.08; }
  .hero-grid { background-size: 32px 32px; }
  .card-hover:hover { transform: none; box-shadow: none; }
  #mobile-menu { max-height: calc(100vh - 73px); overflow-y: auto; overscroll-behavior: contain; }
  #mobile-menu a { min-height: 48px; display: flex; align-items: center; }
  #mobile-menu a:last-child { justify-content: center; }
  button, a { touch-action: manipulation; }
  footer p { overflow-wrap: anywhere; }
}

@media (max-width: 374px) {
  header > div:first-child { padding-left: 1rem !important; padding-right: 1rem !important; }
  header .font-bold.tracking-tight { font-size: .92rem; }
  main section > div { min-width: 0; }
  h1 { font-size: clamp(2.15rem, 11.5vw, 2.75rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
