/* MindLoad Marketing Site
   Put your real screenshots into /assets/screens and update filenames in index.html.
   Palette + vibe: premium cyber-neon, Apple-level spacing.
*/

:root{
  --bg:#0A0F1E;
  --panel:rgba(255,255,255,.05);
  --panel-2:rgba(255,255,255,.035);
  --stroke:rgba(255,255,255,.12);
  --stroke-2:rgba(255,255,255,.08);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --faint:rgba(255,255,255,.55);

  --cyan:#00E5FF;
  --purple:#D500F9;
  --blue:#2979FF;
  --gold:#FFD740;

  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --shadow-soft: 0 10px 30px rgba(0,0,0,.45);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 28px);

  --cta-dur-fast: 140ms;
  --cta-dur: 320ms;
  --cta-ease: cubic-bezier(.2,.8,.2,1);
}

@property --idle-y{
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
@property --idle-rz{
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}
@property --orbit-x{
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
@property --orbit-y{
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(78px + env(safe-area-inset-top));
  /* Disable overscroll bounce on iOS for better control */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(15px, 0.7vw + 12px, 18px);
  line-height:1.55;
  overflow-x:hidden;
  min-height: 100vh;
  min-height: 100svh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

/* Scroll progress (thin, modern, non-distracting) */
.scroll-progress{
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: calc(3px + env(safe-area-inset-top));
  z-index: 1001;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  opacity: .78;
  pointer-events: none;
}
.scroll-progress__bar{
  display:block;
  height: 3px;
  margin-top: env(safe-area-inset-top);
  width: 100%;
  transform-origin: left center;
  transform: scaleX(var(--scroll-progress, 0));
  background: linear-gradient(90deg, rgba(0,229,255,.92), rgba(213,0,249,.92), rgba(0,229,255,.92));
  background-size: 220% 100%;
  animation: progressSheen 10s ease-in-out infinite;
}

@media (max-width: 860px){
  .scroll-progress{
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity:.9;
  }
}

/* =============================================
   MOBILE OPTIMIZATION - Touch & Responsive
   ============================================= */

/* Improve touch targets - minimum 44x44px */
@media (max-width: 768px){
  /* Ensure all interactive elements have proper touch targets */
  a, button, [role="button"], summary, details, .btn, .nav-links a, .mobile a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Better mobile typography */
  body {
    font-size: 16px; /* Prevent zoom on iOS */
    -webkit-text-size-adjust: 100%;
  }
  
  .h1 {
    font-size: clamp(32px, 8vw, 48px);
    letter-spacing: -0.8px;
    line-height: 1.1;
  }
  
  .section-title {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.15;
  }
  
  .lede {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Improve spacing for mobile */
  section {
    padding: 48px 0;
  }
  
  section.tight {
    padding: 36px 0;
  }
  
  .container {
    width: calc(100% - 32px);
    padding: 0;
  }
  
  /* Hero section mobile optimization */
  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }
  
  /* Device mockup mobile sizing - handled in main device CSS section */
  
  /* Cards mobile optimization */
  .card.pad {
    padding: 16px;
  }
  
  .card h3 {
    font-size: 15px;
  }
  
  .card p {
    font-size: 13px;
  }
  
  /* Trust section mobile */
  .trust {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  /* Steps mobile */
  .steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .step {
    padding: 16px;
  }
  
  .step .num {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  /* Features grid mobile */
  .features {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .feature {
    padding: 14px;
  }
  
  /* Spotlight sections mobile */
  .spotlight {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  /* Pills mobile */
  .pill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .pill {
    width: 100%;
    justify-content: center;
  }
  
  /* FAQ mobile */
  .faq {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  details {
    padding: 14px;
  }
  
  summary {
    font-size: 15px;
    padding-right: 24px;
  }
  
  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  /* Mock grid mobile */
  .mock-grid {
    gap: 36px;
  }
  
  .mock-row {
    gap: 24px;
  }
  
  .mock-text h3 {
    font-size: clamp(20px, 5vw, 26px);
  }
  
  .mock-card {
    padding: 14px;
  }
  
  /* Kicker mobile */
  .kicker {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  /* Note text mobile */
  .note {
    font-size: 12px;
  }
  
  /* Grid 2 column mobile */
  .grid-2 {
    gap: 28px;
  }
  
  /* Store badges mobile */
  #get .mt24 {
    flex-direction: column;
    align-items: center;
  }
  
  #get .btn img {
    height: 56px;
  }
}
@keyframes progressSheen{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

body.menu-open{
  overflow: hidden;
  touch-action: none;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset: 3px; }
img, video{ max-width:100%; height:auto; }

::selection{ background: rgba(0,229,255,.25); }

/* =============================================
   TOUCH & INTERACTION OPTIMIZATIONS
   ============================================= */

/* Remove tap highlight on all interactive elements */
a, button, [role="button"], input, textarea, select, label {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

/* Touch feedback for buttons and links */
.btn:active,
button:active,
[role="button"]:active,
.nav-links a:active,
.mobile a:active,
.hamburger:active {
  transform: scale(0.97);
  opacity: 0.85;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* Prevent text selection on buttons */
.btn, button, [role="button"], .hamburger {
  user-select: none;
  -webkit-user-select: none;
}

/* Smooth scrolling containers with touch */
.compare-wrapper,
.mobile,
.mock-grid {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Optimize touch manipulation for scrollable areas */
.compare-wrapper {
  touch-action: pan-x;
}

/* Links should allow text selection */
a:not(.btn):not(.brand) {
  user-select: text;
  -webkit-user-select: text;
}

/* Improve form input touch experience */
input, textarea, select {
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

/* Better focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid rgba(0,229,255,.6);
  outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}

/* =============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* Optimize animated elements with will-change */
.scroll-progress__bar {
  will-change: transform;
}

.btn,
.device-3d,
.device-stage {
  will-change: transform;
}

/* Layout containment for independent sections */
section {
  contain: layout style;
}

.device-stage,
.device-wrap,
.compare-col,
.faq-item {
  contain: layout;
}

/* Optimize backdrop-filter on mobile - disable on low-end devices */
@media (max-width: 920px) {
  .reduce-motion .nav,
  .reduce-motion .scroll-progress,
  .reduce-motion .mobile {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* GPU acceleration for smooth animations */
.btn,
.device,
.hamburger svg,
.scroll-progress__bar {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Optimize images for better rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

img[loading="lazy"] {
  content-visibility: auto;
}

/* Ambient glow background (tasteful, not gamer messy) */
.bg-glow{
  position:fixed; inset:0; z-index:-2;
  pointer-events:none;
}
.bg-glow::before, .bg-glow::after{
  content:"";
  position:absolute;
  width: 720px; height:720px;
  border-radius:999px;
  filter: blur(70px);
  opacity:.22;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.bg-glow::before{
  left:-120px; top:-160px;
  background: radial-gradient(circle at 30% 30%, var(--cyan), transparent 60%);
  animation-name: bgDrift1;
  animation-duration: 18s;
}
.bg-glow::after{
  right:-140px; bottom:-180px;
  background: radial-gradient(circle at 60% 60%, var(--purple), transparent 60%);
  animation-name: bgDrift2;
  animation-duration: 21s;
}

@keyframes bgDrift1{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(26px,18px,0) scale(1.04); }
}
@keyframes bgDrift2{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(-22px,-16px,0) scale(1.05); }
}

.hero{
  position:relative;
  overflow:visible;
  z-index:1;
}
section[data-sparkle]{
  position:relative;
  overflow:hidden;
  --sparkle-x: 0px;
  --sparkle-y: 0px;
}
section[data-sparkle]::before,
section[data-sparkle]::after{
  content:"";
  position:absolute;
  inset: -200px -120px auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(0,229,255,.18), transparent 60%);
  filter: blur(50px);
  opacity:.36;
  animation: sparklePulse 18s ease-in-out infinite;
  pointer-events:none;
  z-index:-1;
  transform: translate3d(var(--sparkle-x), var(--sparkle-y), 0);
  transition: transform .35s ease;
}
section[data-sparkle]::after{
  inset: auto auto -240px -140px;
  background: radial-gradient(circle at 60% 40%, rgba(213,0,249,.18), transparent 60%);
  animation-duration: 22s;
  animation-direction: reverse;
  transform: translate3d(calc(var(--sparkle-x) * -0.6), calc(var(--sparkle-y) * -0.6), 0);
}

.pointer-glow{
  position:absolute;
  inset: -160px -140px;
  pointer-events:none;
  z-index:-1;
  --pg-x: 50%;
  --pg-y: 30%;
  background:
    radial-gradient(520px 420px at var(--pg-x) var(--pg-y), rgba(0,229,255,.12), transparent 60%),
    radial-gradient(640px 520px at calc(var(--pg-x) + 10%) calc(var(--pg-y) + 8%), rgba(213,0,249,.10), transparent 62%),
    linear-gradient(120deg, transparent 38%, rgba(255,255,255,.06) 48%, transparent 62%);
  opacity:.55;
  filter: blur(0px);
  transition: opacity .25s ease;
}

.reduce-motion .scroll-progress,
.reduce-motion .pointer-glow{
  display:none !important;
}

@media (max-width: 768px){
  .pointer-glow{ display:none; }
  .nav{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

@keyframes sparklePulse{
  0%,100%{ opacity:.32; }
  50%{ opacity:.6; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .bg-glow::before, .bg-glow::after{ animation:none; }
  section[data-sparkle]::before,
  section[data-sparkle]::after{ display:none; }
  .scroll-progress__bar{ animation:none; }
  .pointer-glow{ display:none; }
  .kicker i{ animation:none; }
  .btn.primary::after{ display:none; }
  .btn,
  .btn::before,
  .btn::after,
  .btn__label,
  .btn__status{
    transition-duration: 1ms !important;
  }
  .btn__spinner::before{ animation: none !important; }
  .h1{ animation:none !important; }
  .device-3d, .device-glow, .device-wrap, .device{ animation: none !important; transition: none !important; }
  .card{ transition: none !important; }
}

html.reduce-motion{ scroll-behavior:auto; }
.reduce-motion .bg-glow::before, .reduce-motion .bg-glow::after{ animation:none; }
.reduce-motion section[data-sparkle]::before,
.reduce-motion section[data-sparkle]::after{ display:none; }
.reduce-motion .kicker i{ animation:none; }
.reduce-motion .btn.primary::after{ display:none; }
.reduce-motion .btn,
.reduce-motion .btn::before,
.reduce-motion .btn::after,
.reduce-motion .btn__label,
.reduce-motion .btn__status{
  transition-duration: 1ms !important;
}
.reduce-motion .btn__spinner::before{ animation: none !important; }
.reduce-motion .h1{ animation:none !important; }
.reduce-motion .device::before{ animation: none !important; }
.reduce-motion .screen::before{ animation: none !important; }
.reduce-motion .device-3d, .reduce-motion .device-glow, .reduce-motion .device-wrap, .reduce-motion .device{ animation: none !important; transition: none !important; }
.reduce-motion .card{ transition: none !important; }
.reduce-motion .float{ animation: none; }
.reduce-motion .sb-wifi,
.reduce-motion .sb-signal,
.reduce-motion .sb-battery::before{ animation: none !important; }

@media (max-width: 920px){
  .bg-glow::before,
  .bg-glow::after{
    animation: none;
  }
  section[data-sparkle]::before,
  section[data-sparkle]::after{
    display:none;
  }
  .scroll-progress{
    display:none;
  }
  .scroll-progress__bar{
    animation:none;
  }
  .device-glow{
    animation: none !important;
  }
  .float{ animation:none !important; }
  .screen img{ filter: none !important; }
}

/* Container */
.container{
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px; top: 16px;
  background:#fff; color:#000;
  padding:10px 12px;
  border-radius:10px;
  z-index:1000;
}
.skip-link:focus{ left:16px; }

/* Buttons */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding: .95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 650;
  letter-spacing:.22px;
  cursor:pointer;
  user-select:none;
  text-decoration:none;
  min-height: 48px;
  line-height:1.1;
  -webkit-tap-highlight-color: transparent;
  --btn-magnet-x: 0px;
  --btn-magnet-y: 0px;
  --btn-hover-offset: 0px;
  --btn-press-scale: 1;
  transform: translate3d(var(--btn-magnet-x), calc(var(--btn-magnet-y) + var(--btn-hover-offset)), 0) scale(var(--btn-press-scale));
  transition: transform var(--cta-dur-fast) var(--cta-ease), opacity var(--cta-dur-fast) var(--cta-ease);
  will-change: transform;
  isolation:isolate;
}
.btn:hover{ text-decoration:none; }
.btn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 2px rgba(10,15,30,.85),
    0 0 0 5px rgba(0,229,255,.45);
}
.btn:active{
  --btn-press-scale: .985;
  --btn-hover-offset: 1.4px;
  opacity:.96;
}
.btn.small{
  padding: .7rem 1.1rem;
  font-size: .92rem;
  min-height: 40px;
}
.btn[disabled],
.btn[aria-disabled="true"]{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.btn[data-loading="true"]{
  cursor:progress;
  pointer-events:none;
}
.btn__content{
  position:relative;
  display:inline-grid;
  align-items:center;
  justify-items:center;
}
.btn__label,
.btn__status{
  grid-area: 1 / 1;
  font-size: inherit;
  transition: opacity var(--cta-dur-fast) var(--cta-ease), transform var(--cta-dur-fast) var(--cta-ease);
}
.btn__status{
  opacity:0;
  transform: translateY(8px);
  font-weight:600;
  letter-spacing:.22px;
}
.btn[data-state="success"] .btn__label{
  opacity:0;
  transform: translateY(-6px);
}
.btn[data-state="success"] .btn__status{
  opacity:1;
  transform: translateY(0px);
}
.btn__spinner{
  position:absolute;
  width: 1.15rem;
  height: 1.15rem;
  border-radius:999px;
  opacity:0;
  transform: translateY(-50%) scale(.6);
  transition: opacity var(--cta-dur-fast) var(--cta-ease), transform var(--cta-dur-fast) var(--cta-ease);
  flex-shrink:0;
  top: 50%;
  right: clamp(14px, 1.4vw, 22px);
  pointer-events:none;
}
.btn__spinner::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  border: 2px solid rgba(234,242,255,.25);
  border-top-color: rgba(0,229,255,.95);
  animation: btn-spin 720ms linear infinite;
  animation-play-state: paused;
}
.btn[data-loading="true"] .btn__spinner{
  opacity:1;
  transform: translateY(-50%) scale(1);
}
.btn[data-loading="true"] .btn__spinner::before{
  animation-play-state: running;
}
.btn[data-loading="true"] .btn__label{
  opacity:.72;
}
@keyframes btn-spin{
  to{ transform: rotate(1turn); }
}
.btn.primary,
.btn.secondary,
.btn.ghost{
  border-width: 1px;
  border-style: solid;
}
.btn.primary{
  border-color: rgba(0,229,255,.5);
  background: linear-gradient(135deg, rgba(0,229,255,.18), rgba(213,0,249,.15));
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.btn.primary::before{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:inherit;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,229,255,.7), transparent 60%),
    radial-gradient(circle at 75% 60%, rgba(213,0,249,.5), transparent 58%);
  opacity:.5;
  filter: blur(22px);
  pointer-events:none;
  transition: opacity var(--cta-dur) var(--cta-ease);
  z-index:-2;
}
.btn.primary::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0) 10%, rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 70%);
  transform: translateX(-140%) skewX(-20deg);
  opacity:0;
  pointer-events:none;
  transition: transform 620ms var(--cta-ease), opacity var(--cta-dur-fast) var(--cta-ease);
  z-index:-1;
}
.btn.secondary{
  border-color: rgba(41,121,255,.55);
  background: linear-gradient(135deg, rgba(41,121,255,.16), rgba(0,229,255,.08));
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}
.btn.secondary::before{
  content:"";
  position:absolute;
  inset:-4px;
  border-radius:inherit;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,255,.45), transparent 60%);
  opacity:.35;
  filter: blur(20px);
  pointer-events:none;
  transition: opacity var(--cta-dur) var(--cta-ease);
  z-index:-2;
}
.btn.ghost{
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.btn.ghost::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  opacity:.35;
  pointer-events:none;
  transition: opacity var(--cta-dur-fast) var(--cta-ease);
  z-index:-1;
}
.btn.ghost::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  border: 1px solid rgba(255,255,255,.06);
  opacity:0;
  pointer-events:none;
  transition: opacity var(--cta-dur-fast) var(--cta-ease);
  z-index:-2;
}
@media (hover: hover) and (pointer: fine){
  .btn:hover{ --btn-hover-offset: -1.6px; }
  .btn.primary:hover{
    box-shadow: 0 26px 60px rgba(0,0,0,.55);
  }
  .btn.primary:hover::before{ opacity:.85; }
  .btn.primary:hover::after{
    opacity:1;
    transform: translateX(140%) skewX(-8deg);
  }
  .btn.secondary:hover::before{ opacity:.7; }
  .btn.ghost:hover::before{ opacity:.55; }
  .btn.ghost:hover::after{ opacity:.4; }
}

/* Focus styles */
:focus-visible{
  outline: 3px solid rgba(0,229,255,.55);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Nav */
.nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(10,15,30,.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-top: env(safe-area-inset-top);
}
.nav::before{
  content:"";
  position:absolute;
  left: 50%;
  top: -28px;
  width: min(980px, calc(100% - 32px));
  height: 84px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 25% 40%, rgba(0,229,255,.14), transparent 55%),
    radial-gradient(circle at 70% 55%, rgba(213,0,249,.12), transparent 58%);
  filter: blur(18px);
  opacity:.9;
  pointer-events:none;
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 180px;
}
.brand img{
  width: 34px; height: 34px;
  display:block;
  object-fit: cover;
  border-radius: 10px;
}
.brand span{
  font-weight: 800;
  letter-spacing: .4px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.nav-links a{
  font-size: 14px;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration:none;
  border: 1px solid transparent;
  position:relative;
  min-height:44px;
  display:flex;
  align-items:center;
}
.nav-links a:hover{
  background: rgba(255,255,255,.05);
  color: var(--text);
  transform: translateY(-1px);
}
.nav-links a.is-active{
  color: rgba(255,255,255,.92);
  background: linear-gradient(135deg, rgba(0,229,255,.16), rgba(213,0,249,.12));
  border-color: rgba(0,229,255,.35);
  box-shadow: 0 10px 24px rgba(0,229,255,.10);
}
.nav-links a.is-active::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,229,255,.95), rgba(213,0,249,.75));
  opacity:.85;
  transform-origin: center;
  transform: scaleX(1);
  animation: navUnderlineIn .35s var(--cta-ease) both;
}
@keyframes navUnderlineIn{
  from{ transform: scaleX(.68); opacity:.0; }
  to{ transform: scaleX(1); opacity:.85; }
}
.nav-cta{ display:flex; align-items:center; gap: 10px; }

.hamburger{
  display:none;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  min-width: 44px;
  min-height: 44px;
}
.hamburger svg{ display:block; }

@media (max-width: 920px){
  .nav-links{ display:none; }
  .hamburger{ display:inline-flex; }
}

/* Mobile menu - Enhanced for better UX */
.mobile{
  display:none;
  border-top: 1px solid rgba(255,255,255,.06);
  width: 100%;
  height: calc(100vh - 70px);
  height: calc(100svh - 70px);
  overflow-y:auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(10,15,30,.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 49;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.mobile[data-open="true"]{ 
  display:block;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile .container {
  padding: 16px 0;
}
.mobile a{
  display:flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  min-height: 52px;
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 16px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}
.mobile a:hover,
.mobile a:active { 
  color: var(--text);
  background: rgba(255,255,255,.03);
  padding-left: 8px;
}
.mobile a.is-active{
  color: rgba(255,255,255,.95);
  background: linear-gradient(90deg, rgba(0,229,255,.08), transparent);
  position:relative;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  margin-left: -4px;
}
.mobile a.is-active::after{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,229,255,.95), rgba(213,0,249,.75));
  box-shadow: 0 0 18px rgba(0,229,255,.22);
  flex-shrink: 0;
}

/* Mobile menu last item special styling */
.mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(0,229,255,.12), rgba(213,0,249,.08));
  border: 1px solid rgba(0,229,255,.25);
  border-radius: 12px;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
}

@supports (-webkit-touch-callout: none){
  .mobile{
    height: calc(-webkit-fill-available - 70px);
  }
}

/* Hamburger animation */
.hamburger {
  position: relative;
  transition: transform 0.2s ease;
}
.hamburger:active {
  transform: scale(0.95);
}
.hamburger svg path {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] svg path:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] svg path:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] svg path:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Sections */
section{ padding: 72px 0; }
section.tight{ padding: 56px 0; }

@media (min-width: 768px){
  section{ padding: 92px 0; }
  section.tight{ padding: 64px 0; }
}

main > section:not(.hero){
  content-visibility: auto;
  contain-intrinsic-size: 1px 820px;
}

section[id]{ scroll-margin-top: calc(72px + env(safe-area-inset-top)); }

@media (max-width: 920px){
  main > section:not(.hero){
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .2px;
}
.kicker i{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0,229,255,.35);
  animation: kickerPulse 4.8s ease-in-out infinite;
}

@keyframes kickerPulse{
  0%,100%{ transform: scale(1); filter: brightness(1); }
  50%{ transform: scale(1.28); filter: brightness(1.12); }
}

.h1{
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -1.2px;
  margin: 16px 0 14px;
  color: var(--text);
  position:relative;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .h1{
    background: linear-gradient(120deg, #ffffff, rgba(0,229,255,.88), rgba(213,0,249,.9), rgba(41,121,255,.9));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: headingGlow 9s ease-in-out infinite;
  }
}
@keyframes headingGlow{
  0%,100%{ background-position: 0% 50%; filter: drop-shadow(0 0 18px rgba(213,0,249,.12)); }
  50%{ background-position: 100% 50%; filter: drop-shadow(0 0 22px rgba(0,229,255,.18)); }
}
.lede{
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 70ch;
  margin: 0 0 22px;
}

.section-title{
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.6px;
  margin: 14px 0 14px;
}
.section-title-tight{ margin-bottom: 10px; }
.lede-center{ margin-left:auto; margin-right:auto; text-align:center; }
.grid-2-top{ align-items: flex-start; gap: 30px; }
.grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items:center;
}
@media (min-width: 920px){
  .grid-2{ grid-template-columns: 1.05fr .95fr; }
}

.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; margin-top: 20px; }
.note{
  color: var(--faint);
  font-size: 13px;
  margin-top: 12px;
}
.note a{ color: var(--cyan); }

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card.pad{ padding: 18px 18px; }
.card h3{ margin: 0 0 8px; font-size: 16px; letter-spacing:.2px; }
.card p{ margin:0; color: var(--muted); font-size: 14px; }
@media (hover: hover) and (pointer: fine){
  .card:hover{
    transform: translateY(-3px);
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 18px 46px rgba(0,0,0,.52);
  }
}

@media (hover: hover) and (pointer: fine){
  .card{
    position:relative;
    overflow:hidden;
    will-change: transform;
  }
  .card::before{
    content:"";
    position:absolute;
    inset:-60% -30%;
    background:
      radial-gradient(circle at 30% 30%, rgba(0,229,255,.10), transparent 55%),
      radial-gradient(circle at 70% 60%, rgba(213,0,249,.08), transparent 60%),
      linear-gradient(120deg, transparent 38%, rgba(255,255,255,.08) 48%, transparent 62%);
    opacity:0;
    transform: translate3d(-8%, -6%, 0) rotate(8deg);
    transition: opacity .22s var(--cta-ease), transform .28s var(--cta-ease);
    pointer-events:none;
    mix-blend-mode: screen;
  }
  .card:hover::before{
    opacity:.9;
    transform: translate3d(0,0,0) rotate(8deg);
  }
}

.trust{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){ .trust{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .trust{ grid-template-columns: 1fr; } }
.trust .card{ position:relative; overflow:hidden; }
.trust .card::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(circle at 30% 20%, rgba(0,229,255,.22), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(213,0,249,.16), transparent 55%);
  opacity:.55;
  pointer-events:none;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 920px){ .steps{ grid-template-columns: 1fr; } }
.step{
  position:relative;
  padding: 18px 18px;
}
.step .num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px; height:34px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color: var(--text);
  font-weight: 800;
  margin-bottom: 10px;
}
.step h3{ margin: 0 0 6px; font-size: 18px; }
.step p{ margin:0; color: var(--muted); }

/* Features */
.features{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1020px){ .features{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .features{ grid-template-columns: 1fr; } }
.feature{
  padding: 16px 16px;
}
.feature .tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.86);
  font-weight:700;
  margin-bottom: 6px;
}
.feature .tag .dot{
  width: 8px; height:8px; border-radius:999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0,229,255,.25);
}

/* =============================================
   iPHONE DEVICE MOCKUP - Exciting & Interactive
   ============================================= */

/* Stage container - premium glass effect */
.device-stage {
  --stage-glow-1: rgba(0,229,255,.25);
  --stage-glow-2: rgba(213,0,249,.2);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: clamp(32px, 5vw, 56px);
  background: 
    linear-gradient(135deg, rgba(10,15,30,.95), rgba(5,8,20,.98)),
    radial-gradient(ellipse at 30% 20%, rgba(0,229,255,.08), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(213,0,249,.06), transparent 50%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 
    0 40px 100px -20px rgba(0,0,0,.7),
    0 20px 50px -10px rgba(0,229,255,.1),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: visible;
  isolation: isolate;
}

/* Animated ambient glow orbs */
.device-stage::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -100px;
  left: -50px;
  background: radial-gradient(circle, var(--stage-glow-1), transparent 60%);
  filter: blur(60px);
  opacity: 0.7;
  animation: glowOrb1 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.device-stage::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  bottom: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--stage-glow-2), transparent 60%);
  filter: blur(70px);
  opacity: 0.6;
  animation: glowOrb2 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes glowOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(30px, 20px) scale(1.1); opacity: 0.5; }
  66% { transform: translate(-20px, 10px) scale(0.95); opacity: 0.8; }
}

@keyframes glowOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-40px, -30px) scale(1.15); opacity: 0.4; }
}

/* Sparkle particles overlay */
.device-stage .sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.device-stage .sparkles::before,
.device-stage .sparkles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.8);
  border-radius: 50%;
  box-shadow: 
    60px 40px 0 rgba(0,229,255,.6),
    120px 80px 0 rgba(255,255,255,.4),
    200px 30px 0 rgba(213,0,249,.5),
    40px 120px 0 rgba(0,229,255,.4),
    180px 140px 0 rgba(255,255,255,.3);
  animation: sparkleFloat 12s ease-in-out infinite;
}

.device-stage .sparkles::after {
  animation-delay: -6s;
  animation-direction: reverse;
}

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Wrapper for 3D perspective */
.device-wrap {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Unused glow element - hidden */
.device-glow { display: none; }

/* Float animation wrapper */
.device-float {
  transform-style: preserve-3d;
}

/* 3D transform container with smooth animation */
.device-3d {
  --rx: 6deg;
  --ry: -12deg;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover lift effect - desktop only */
@media (hover: hover) and (pointer: fine) {
  .device-wrap:hover .device-3d {
    transform: rotateY(calc(var(--ry) * 0.5)) rotateX(calc(var(--rx) * 0.5)) translateZ(30px) scale(1.03);
  }
  
  .device-stage:hover::before {
    opacity: 0.9;
  }
  
  .device-stage:hover::after {
    opacity: 0.8;
  }
}

/* The iPhone frame - premium titanium look */
.device {
  position: relative;
  width: clamp(280px, 42vw, 400px);
  aspect-ratio: 9 / 19.5;
  padding: clamp(10px, 1.8vw, 16px);
  border-radius: clamp(44px, 7vw, 60px);
  background: 
    linear-gradient(165deg, #2a2f42 0%, #14182a 50%, #0a0d18 100%);
  border: 1.5px solid rgba(255,255,255,.2);
  box-shadow:
    0 50px 100px -20px rgba(0,0,0,.6),
    0 30px 60px -15px rgba(0,0,0,.5),
    inset 0 2px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.3);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* Titanium edge highlight with shimmer */
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, 
    rgba(255,255,255,.18) 0%, 
    transparent 30%,
    transparent 70%,
    rgba(255,255,255,.08) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Side button accents */
.device::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 25%;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, 
    rgba(255,255,255,.2), 
    rgba(255,255,255,.08),
    rgba(255,255,255,.2)
  );
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* Screen container with premium glass effect */
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(clamp(44px, 7vw, 60px) - clamp(10px, 1.8vw, 16px) - 2px);
  overflow: hidden;
  background: #000;
  box-shadow: 
    inset 0 0 0 1px rgba(0,0,0,.9),
    inset 0 0 30px rgba(0,0,0,.5);
}

/* Screen reflection overlay */
.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.06) 0%,
    transparent 40%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}

/* Screenshot image with smooth loading */
.screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default: show from very top with slight offset for Dynamic Island */
  object-position: center 0%;
  border-radius: inherit;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Subtle zoom on hover */
@media (hover: hover) and (pointer: fine) {
  .device-wrap:hover .screen img {
    transform: scale(1.02);
  }
}

/* Special positioning for different screen types */
/* Ready screen - show middle content */
.screen img[data-screen="ready"] {
  object-position: center 60%;
}

/* Quiz screen - show from top with offset for header */
.screen img[data-screen="quiz"] {
  object-position: center 0%;
}

/* Progress/Achievements screen */
.screen img[data-screen="progress"] {
  object-position: center 5%;
}

/* Hero dashboard screen */
.screen img[data-screen="hero"] {
  object-position: center 0%;
}

/* Ultra mode screen */
.screen img[data-screen="ultra"] {
  object-position: center 0%;
}

/* Flashcards screen */
.screen img[data-screen="flashcards"] {
  object-position: center 0%;
}

/* Plan/milestones screen */
.screen img[data-screen="plan"] {
  object-position: center 0%;
}

/* Summary screen */
.screen img[data-screen="summary"] {
  object-position: center 0%;
}

/* Dynamic Island - matched to actual iPhone screenshots */
.notch {
  position: absolute;
  /* Position: ~0.8% from top of screen area */
  top: clamp(6px, 0.8%, 10px);
  left: 50%;
  transform: translateX(-50%);
  /* Width: ~36% of screen width based on screenshot analysis */
  width: clamp(100px, 36%, 130px);
  /* Height: ~3% of screen height, pill-shaped */
  height: clamp(28px, 3.2%, 36px);
  border-radius: 999px;
  background: #000;
  z-index: 10;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,.08),
    0 2px 8px rgba(0,0,0,.5);
}

/* Left sensor - smaller dot */
.notch::before {
  content: "";
  position: absolute;
  /* Position at ~15% from left edge */
  left: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(6px, 8%, 9px);
  height: clamp(6px, 8%, 9px);
  border-radius: 50%;
  background: #080a10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* Right camera lens - slightly larger with blue tint */
.notch::after {
  content: "";
  position: absolute;
  /* Position at ~15% from right edge */
  right: 15%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(10px, 12%, 13px);
  height: clamp(10px, 12%, 13px);
  border-radius: 50%;
  background: 
    radial-gradient(circle at 35% 35%, 
      rgba(80,120,200,.5) 0%, 
      rgba(30,50,100,.8) 45%,
      rgba(15,25,60,.95) 100%
    );
  box-shadow: 
    inset 0 0 0 1px rgba(0,0,0,.4),
    0 0 4px rgba(80,120,200,.2);
}

/* Small device variant */
.device-wrap.small .device {
  width: clamp(240px, 38vw, 340px);
}

/* Float animation - smooth and subtle */
.float {
  animation: deviceFloat 7s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-8px) rotate(0.5deg); }
  50% { transform: translateY(-14px) rotate(0deg); }
  75% { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Pulse glow animation for hero device */
.device-stage.hero-stage {
  --stage-glow-1: rgba(0,229,255,.35);
  --stage-glow-2: rgba(213,0,249,.25);
}

.device-stage.hero-stage::before {
  animation: heroGlow1 6s ease-in-out infinite;
}

.device-stage.hero-stage::after {
  animation: heroGlow2 8s ease-in-out infinite;
}

@keyframes heroGlow1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(40px, 30px) scale(1.2); opacity: 0.5; }
}

@keyframes heroGlow2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-50px, -40px) scale(1.25); opacity: 0.4; }
}

/* =============================================
   DEVICE MOCKUP - Responsive Breakpoints
   ============================================= */

/* Tablet */
@media (max-width: 920px) {
  .device-stage {
    padding: clamp(22px, 4vw, 36px);
    border-radius: clamp(28px, 5vw, 44px);
    background: 
      linear-gradient(135deg, rgba(10,15,30,.97), rgba(5,8,20,.99));
  }
  
  /* Simpler glow on tablet */
  .device-stage::before {
    width: 200px;
    height: 200px;
    filter: blur(50px);
    opacity: 0.5;
    animation: none;
  }
  
  .device-stage::after {
    width: 220px;
    height: 220px;
    filter: blur(55px);
    opacity: 0.4;
    animation: none;
  }
  
  /* Hide sparkles on tablet */
  .device-stage .sparkles {
    display: none;
  }
  
  .device {
    width: clamp(260px, 48vw, 340px);
    border-radius: clamp(40px, 6vw, 52px);
  }
  
  .device-wrap.small .device {
    width: clamp(220px, 42vw, 300px);
  }
  
  /* Keep 3D transforms on tablet - just slightly reduced */
  .device-3d {
    --rx: 6deg;
    --ry: -10deg;
    transform: rotateY(var(--ry)) rotateX(var(--rx));
  }
  
  .float {
    animation: deviceFloatTablet 7s ease-in-out infinite;
  }
}

@keyframes deviceFloatTablet {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(0.3deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(-0.3deg); }
}

/* Mobile - optimized but still exciting */
@media (max-width: 768px) {
  .device-stage {
    padding: 20px;
    border-radius: 28px;
    box-shadow: 
      0 24px 60px -15px rgba(0,0,0,.6),
      0 12px 30px -8px rgba(0,229,255,.08);
    margin: 0 -4px;
    background: 
      linear-gradient(145deg, rgba(12,18,35,.98), rgba(6,10,22,.99));
  }
  
  /* Keep subtle glow on mobile - performance optimized */
  .device-stage::before {
    width: 150px;
    height: 150px;
    top: -60px;
    left: -40px;
    filter: blur(40px);
    opacity: 0.4;
    animation: none;
  }
  
  .device-stage::after {
    width: 160px;
    height: 160px;
    bottom: -70px;
    right: -50px;
    filter: blur(45px);
    opacity: 0.35;
    animation: none;
  }
  
  .device {
    width: min(280px, 80vw);
    padding: 10px;
    border-radius: 40px;
    box-shadow: 
      0 30px 60px -15px rgba(0,0,0,.5),
      inset 0 1px 0 rgba(255,255,255,.12);
  }
  
  /* Keep titanium edge on mobile */
  .device::before {
    background: linear-gradient(145deg, 
      rgba(255,255,255,.12) 0%, 
      transparent 35%
    );
  }
  
  /* Hide side button on mobile */
  .device::after {
    display: none;
  }
  
  .device-wrap.small .device {
    width: min(250px, 75vw);
  }
  
  .screen {
    border-radius: 30px;
  }
  
  /* Hide screen reflection on mobile */
  .screen::before {
    display: none;
  }
  
  .notch {
    width: 36%;
    height: 26px;
    top: 6px;
  }
  
  .notch::before {
    width: 7px;
    height: 7px;
    left: 15%;
  }
  
  .notch::after {
    width: 10px;
    height: 10px;
    right: 15%;
  }
  
  /* Better image positioning on mobile */
  .screen img {
    object-position: center 0%;
  }
  
  .screen img[data-screen="ready"] {
    object-position: center 55%;
  }
  
  .screen img[data-screen="progress"] {
    object-position: center 3%;
  }
  
  /* Keep nice 3D angles on mobile */
  .device-3d {
    --rx: 5deg;
    --ry: -8deg;
    transform: rotateY(var(--ry)) rotateX(var(--rx));
  }
  
  /* Disable hover transforms on mobile */
  .device-wrap:hover .device-3d {
    transform: rotateY(var(--ry)) rotateX(var(--rx));
  }
  
  /* Nice float animation on mobile */
  .float {
    animation: deviceFloatMobile 8s ease-in-out infinite;
  }
}

@keyframes deviceFloatMobile {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(0.2deg); }
  50% { transform: translateY(-8px) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(-0.2deg); }
}

/* Small phones */
@media (max-width: 480px) {
  .device-stage {
    padding: 16px;
    border-radius: 24px;
    margin: 0 -8px;
  }
  
  .device-stage::before,
  .device-stage::after {
    filter: blur(35px);
    opacity: 0.3;
  }
  
  .device {
    width: min(260px, 85vw);
    padding: 8px;
    border-radius: 36px;
  }
  
  .device-wrap.small .device {
    width: min(230px, 80vw);
  }
  
  .screen {
    border-radius: 28px;
  }
  
  .notch {
    width: 36%;
    height: 24px;
    top: 5px;
  }
  
  .notch::before {
    width: 6px;
    height: 6px;
  }
  
  .notch::after {
    width: 9px;
    height: 9px;
  }
  
  /* Keep subtle angle on small phones */
  .device-3d {
    --rx: 4deg;
    --ry: -6deg;
    transform: rotateY(var(--ry)) rotateX(var(--rx));
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .device-stage {
    padding: 14px;
    border-radius: 22px;
  }
  
  /* Disable glow on very small screens */
  .device-stage::before,
  .device-stage::after {
    display: none;
  }
  
  .device {
    width: min(240px, 90vw);
    padding: 7px;
    border-radius: 32px;
  }
  
  .device-wrap.small .device {
    width: min(210px, 85vw);
  }
  
  .screen {
    border-radius: 25px;
  }
  
  .notch {
    width: 36%;
    height: 22px;
    top: 4px;
  }
  
  .notch::before {
    width: 5px;
    height: 5px;
  }
  
  .notch::after {
    width: 8px;
    height: 8px;
  }
  
  /* Keep minimal angle even on extra small */
  .device-3d {
    --rx: 3deg;
    --ry: -5deg;
    transform: rotateY(var(--ry)) rotateX(var(--rx));
  }
  
  /* Slower, gentler float */
  .float {
    animation: deviceFloatXS 10s ease-in-out infinite;
  }
}

@keyframes deviceFloatXS {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .float {
    animation: none;
  }
  
  .device-3d {
    transition: none;
  }
  
  .device-stage::before,
  .device-stage::after {
    animation: none;
  }
  
  .device-stage .sparkles::before,
  .device-stage .sparkles::after {
    animation: none;
  }
}

/* Ultra spotlight */
.spotlight{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items:center;
}
@media (max-width: 920px){ .spotlight{ grid-template-columns: 1fr; } }
.spotlight-list{
  list-style:none;
  margin: 26px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: var(--muted);
}
.spotlight-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.spotlight-list li::before{
  content:"•";
  color: var(--cyan);
  font-size: 18px;
  line-height:1;
  margin-top:2px;
}
.spotlight-list li::before{ content:"•"; }

.pill-row{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 16px; }
.pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pill strong{ color: var(--text); font-weight: 800; }

/* Pricing */
.pricing-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 18px;
  flex-wrap:wrap;
  margin-bottom: 18px;
}
.pricing-head p{ margin:0; color: var(--muted); max-width: 58ch; }

.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 1020px){ .pricing{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .pricing{ grid-template-columns: 1fr; } }

.pack{
  padding: 16px;
  position:relative;
  overflow:hidden;
}
.pack .top{
  display:flex; align-items:center; justify-content:space-between; gap: 12px;
  margin-bottom: 10px;
}
.badge{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
}
.badge.value{ border-color: rgba(255,215,64,.55); color: rgba(255,235,160,.95); }
.badge.pop{ border-color: rgba(0,229,255,.55); color: rgba(190,252,255,.95); }

.pack h3{ margin: 0; font-size: 16px; }
.pack .price{
  font-weight: 900;
  letter-spacing:.2px;
}
.pack .tokens{
  color: var(--muted);
  margin-top: 6px;
}
.pack .art{
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  overflow:hidden;
}
.pack .art img{ display:block; width:100%; height:auto; }

.pack::after{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(circle at 30% 20%, rgba(0,229,255,.18), transparent 55%),
              radial-gradient(circle at 70% 80%, rgba(213,0,249,.12), transparent 55%);
  opacity:.35;
  pointer-events:none;
}

/* =============================================
   COMPARISON - Table Layout
   ============================================= */

/* Legend chips */
.compare-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  justify-content: center;
}

.legend-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
  white-space: nowrap;
}

.legend-chip.yes{ color: #00E5FF; border-color: rgba(0,229,255,.3); }
.legend-chip.partial{ color: #FFD740; border-color: rgba(255,215,64,.3); }
.legend-chip.no{ color: #FF6B9D; border-color: rgba(255,107,157,.3); }

/* Table wrapper with horizontal scroll */
.compare-wrapper{
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}

/* Comparison Table */
.compare-table{
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  min-width: 640px;
}

/* Table header */
.compare-table thead th{
  background: rgba(0,0,0,.3);
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  vertical-align: middle;
}

.compare-table thead th.feature-col{
  text-align: left;
  padding-left: 20px;
  width: 35%;
}

.compare-table thead th.app-col{
  width: 16.25%;
  min-width: 100px;
}

.compare-table thead th.app-col img{
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin: 0 auto 6px;
}

.compare-table thead th.app-col span:last-child{
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  margin-top: 6px;
}

.compare-table thead th.highlight{
  background: linear-gradient(180deg, rgba(0,229,255,.12), rgba(0,229,255,.04));
  border-left: 2px solid rgba(0,229,255,.4);
  border-right: 2px solid rgba(0,229,255,.4);
  box-shadow: inset 0 0 20px rgba(0,229,255,.08);
}

/* App icon for non-MindLoad columns */
.app-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  margin: 0 auto 6px;
}

/* Table body */
.compare-table tbody tr{
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background-color 0.2s ease;
}

.compare-table tbody tr:hover{
  background: rgba(255,255,255,.02);
}

.compare-table tbody tr:last-child{
  border-bottom: none;
}

/* Feature name column */
.compare-table tbody td.feature-name{
  padding: 15px 20px;
  text-align: left;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  font-size: 13.5px;
  line-height: 1.4;
}

/* Status cells */
.compare-table tbody td.status{
  padding: 15px 12px;
  text-align: center;
  font-size: 16px;
  vertical-align: middle;
}

/* Highlight MindLoad column */
.compare-table tbody tr td:nth-child(2){
  background: rgba(0,229,255,.02);
  border-left: 2px solid rgba(0,229,255,.15);
  border-right: 2px solid rgba(0,229,255,.15);
}

/* Status icons */
.status-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
}

.status.yes .status-icon{
  background: rgba(0,229,255,.15);
  color: #00E5FF;
  border: 1px solid rgba(0,229,255,.3);
}

.status.no .status-icon{
  background: rgba(255,107,157,.1);
  color: #FF6B9D;
  border: 1px solid rgba(255,107,157,.25);
}

.status.partial .status-icon{
  background: rgba(255,215,64,.12);
  color: #FFD740;
  border: 1px solid rgba(255,215,64,.3);
}

.status.na .status-icon{
  background: rgba(255,255,255,.05);
  color: var(--faint);
  border: 1px solid rgba(255,255,255,.1);
}

/* Feature badge (e.g., "Ultra") */
.feature-badge{
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: rgba(0,229,255,.15);
  color: #00E5FF;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

/* Compare note */
.compare-note{
  margin-top: 24px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  padding: 0 12px;
}

/* =============================================
   COMPARISON - Mobile Layout
   ============================================= */

/* Tablet and below - optimize table */
@media (max-width: 900px){
  .compare-wrapper{
    border-radius: 12px;
  }
  
  .compare-table{
    min-width: 580px;
    font-size: 13px;
  }
  
  .compare-table thead th{
    padding: 14px 10px;
    font-size: 13px;
  }
  
  .compare-table thead th.feature-col{
    padding-left: 16px;
    width: 38%;
  }
  
  .compare-table thead th.app-col img,
  .app-icon{
    width: 26px;
    height: 26px;
  }
  
  .compare-table thead th.app-col span:last-child{
    font-size: 12px;
  }
  
  .compare-table tbody td.feature-name{
    padding: 13px 16px;
    font-size: 13px;
  }
  
  .compare-table tbody td.status{
    padding: 13px 10px;
  }
  
  .status-icon{
    width: 24px;
    height: 24px;
    font-size: 13px;
  }
}

/* Small phone breakpoint */
@media (max-width: 640px){
  .compare-legend{
    gap: 6px;
  }
  
  .legend-chip{
    padding: 7px 12px;
    font-size: 12px;
  }
  
  .compare-wrapper{
    border-radius: 10px;
  }
  
  .compare-table{
    min-width: 520px;
    font-size: 12.5px;
  }
  
  .compare-table thead th{
    padding: 12px 8px;
    font-size: 12px;
  }
  
  .compare-table thead th.feature-col{
    padding-left: 14px;
    width: 40%;
  }
  
  .compare-table thead th.app-col{
    min-width: 85px;
  }
  
  .compare-table thead th.app-col img,
  .app-icon{
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
  }
  
  .compare-table thead th.app-col span:last-child{
    font-size: 11px;
    margin-top: 4px;
  }
  
  .app-icon{
    font-size: 12px;
  }
  
  .compare-table tbody td.feature-name{
    padding: 12px 14px;
    font-size: 12.5px;
  }
  
  .compare-table tbody td.status{
    padding: 12px 8px;
  }
  
  .status-icon{
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  
  .feature-badge{
    font-size: 8px;
    padding: 2px 5px;
  }
}

/* Extra small phone breakpoint */
@media (max-width: 480px){
  .compare-legend{
    gap: 5px;
  }
  
  .legend-chip{
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .compare-wrapper{
    border-radius: 8px;
    margin-left: -8px;
    margin-right: -8px;
    width: calc(100% + 16px);
  }
  
  .compare-table{
    min-width: 480px;
  }
  
  .compare-table thead th{
    padding: 10px 6px;
    font-size: 11px;
  }
  
  .compare-table thead th.feature-col{
    padding-left: 12px;
  }
  
  .compare-table thead th.app-col{
    min-width: 75px;
  }
  
  .compare-table thead th.app-col img,
  .app-icon{
    width: 22px;
    height: 22px;
  }
  
  .compare-table thead th.app-col span:last-child{
    font-size: 10px;
  }
  
  .app-icon{
    font-size: 11px;
  }
  
  .compare-table tbody td.feature-name{
    padding: 10px 12px;
    font-size: 12px;
  }
  
  .compare-table tbody td.status{
    padding: 10px 6px;
  }
  
  .status-icon{
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
}

/* Extra small screens optimization */
@media (max-width: 380px) {
  :root {
    --gutter: 12px;
  }
  
  .container {
    width: calc(100% - 24px);
  }
  
  .h1 {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .btn {
    padding: 14px 18px;
    font-size: 14px;
  }
  
  .device {
    width: min(260px, 100%);
    --device-radius: 32px;
  }
  
  .device .notch {
    width: min(100px, 35%);
    height: 24px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .compare-col{ 
    transition: none;
  }
}

/* Screenshot rows */
.mock-grid{
  display:flex;
  flex-direction:column;
  gap: 50px;
  margin-top: 32px;
}
.mock-row{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items:center;
}
.mock-row.reverse .mock-text{ order:2; }
.mock-row.reverse .mock-pair{ order:1; }
.mock-text h3{
  margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing:-.4px;
}
.mock-text p{
  margin:0;
  color: var(--muted);
}
.mock-text .eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing:.4px;
  color: rgba(0,229,255,.8);
  text-transform: uppercase;
  margin:0;
}
.mock-pair{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.mock-card{
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.mock-card .device-wrap.small .device{
  width: min(400px, 100%);
}
.mock-card.large .device-wrap.small .device{
  width: min(480px, 100%);
}
@media (hover: hover) and (pointer: fine){
  .mock-card:hover{
    border-color: rgba(0,229,255,.3);
    transform: translateY(-4px);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: 0 24px 50px rgba(0,0,0,.55);
  }
  .mock-card:hover .caption{ color: rgba(255,255,255,.86); }
}
@media (max-width: 920px){
  .mock-row{
    grid-template-columns: 1fr;
  }
  .mock-row.reverse .mock-text,
  .mock-row.reverse .mock-pair{
    order: initial;
  }
  .mock-pair{
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 920px){ .faq{ grid-template-columns: 1fr; } }

details{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px 14px;
}
summary{
  cursor:pointer;
  list-style:none;
  font-weight: 800;
  letter-spacing:.2px;
}
summary::-webkit-details-marker{ display:none; }
details p{ margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer{
  padding: 54px 0;
  padding-bottom: calc(54px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items:start;
}
@media (max-width: 920px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand-footer {
  min-width: auto;
}

.footer-description {
  color: var(--muted);
  max-width: 60ch;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.footer-links a{ color: var(--muted); }
.footer-links a:hover{ color: var(--text); }

/* Legal pages */
.legal-hero{
  padding: 62px 0 24px;
}
.legal-hero h1{ margin:0; font-size: 40px; letter-spacing:-.6px; }
.legal-hero p{ margin:10px 0 0; color: var(--muted); max-width: 70ch; }

.legal{
  padding: 12px 0 84px;
}
.legal article{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 18px 18px;
}
.legal article h1, .legal article h2, .legal article h3{ line-height: 1.2; }
.legal article h2{ margin-top: 26px; }
.legal article p, .legal article li{ color: var(--muted); }
.legal article a{ color: var(--cyan); }
.legal article code{ background: rgba(0,0,0,.35); padding:2px 6px; border-radius:8px; border:1px solid rgba(255,255,255,.10); }

.table-wrap{
  margin: 12px 0 18px;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.table-wrap:focus{
  outline: 2px solid rgba(81, 227, 255, .55);
  outline-offset: 3px;
}
.data-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.data-table thead th{
  text-align: left;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  padding: 12px 14px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.data-table tbody th,
.data-table tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
}
.data-table tbody th{
  font-weight: 600;
  color: rgba(255,255,255,.82);
}
.data-table tbody td{
  color: var(--muted);
}
.data-table tbody tr:hover{
  background: rgba(81, 227, 255, .06);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td{
  border-bottom: none;
}

/* Small utilities */
.m0{ margin:0; }
.mt8{ margin-top:8px; }
.mt12{ margin-top:12px; }
.mt18{ margin-top:18px; }
.mt24{ margin-top:24px; }

/* Store badges */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge img {
  height: 40px;
  width: auto;
}
.center{ text-align:center; }
.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

/* =============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================= */

/* Reduce paint complexity on mobile */
@media (max-width: 768px) {
  /* Simplify shadows for performance */
  .card {
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  
  .device {
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
  }
  
  .device-stage {
    box-shadow: 0 20px 40px rgba(0,0,0,.5);
  }
  
  /* Disable complex gradients on low-power devices */
  .device::before,
  .device::after {
    display: none;
  }
  
  .screen::before,
  .screen::after {
    display: none;
  }
  
  /* Simpler backgrounds */
  .device {
    background: linear-gradient(160deg, rgba(14,18,34,.98), rgba(28,32,52,.92));
  }
  
  .screen {
    background: #02030a;
  }
  
  /* Improve scroll performance */
  .mobile,
  .table-wrap,
  .compare-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  /* GPU acceleration for smooth scrolling */
  section {
    transform: translateZ(0);
  }
  
  /* Reduce animation complexity */
  .float {
    animation: none;
  }
  
  .device-3d {
    animation: none;
    --rx-add: 0deg;
    --ry-add: 0deg;
  }
  
  /* Disable tilt effects on mobile */
  .device-3d[data-tilt] {
    transform: 
      rotateY(var(--ry, -12deg))
      rotateX(var(--rx, 6deg));
  }
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    --btn-hover-offset: 0px;
  }
  
  .card:hover {
    transform: none;
  }
  
  .card::before {
    display: none;
  }
  
  .nav-links a:hover {
    transform: none;
  }
  
  /* Active states for touch */
  .btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  .card:active {
    transform: scale(0.99);
    border-color: rgba(0,229,255,.3);
  }
  
  .mobile a:active {
    background: rgba(0,229,255,.1);
  }
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 24px 0;
  }
  
  .device-stage {
    max-height: 60vh;
  }
  
  .device {
    max-height: 55vh;
    width: auto;
    aspect-ratio: 1170 / 2532;
  }
  
  section {
    padding: 32px 0;
  }
  
  section.tight {
    padding: 24px 0;
  }
  
  .mobile {
    height: calc(100vh - 60px);
  }
  
  .mobile a {
    padding: 12px 4px;
    min-height: 40px;
  }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .screen img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Safe area support for notched devices */
@supports (padding: max(0px)) {
  .nav {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
  
  .mobile .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  
  footer {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}

/* =============================================
   MOBILE LOADING SPEED OPTIMIZATIONS
   ============================================= */

/* Reduce paint complexity on mobile */
@media (max-width: 768px) {
  /* Disable expensive effects */
  .bg-glow::before,
  .bg-glow::after {
    display: none;
  }
  
  section[data-sparkle]::before,
  section[data-sparkle]::after {
    display: none;
  }
  
  .pointer-glow {
    display: none;
  }
  
  /* Simplify shadows */
  .card {
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
  }
  
  /* Device mockup optimizations are in the main device CSS section */
  
  /* Disable kicker pulse */
  .kicker i {
    animation: none;
  }
  
  /* Disable heading gradient animation */
  .h1 {
    animation: none !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: var(--text) !important;
  }
  
  /* Disable scroll progress bar on mobile */
  .scroll-progress {
    display: none;
  }
  
  /* Simplify button effects */
  .btn.primary::before,
  .btn.primary::after,
  .btn.ghost::before,
  .btn.ghost::after {
    display: none;
  }
  
  /* GPU layer hints for smooth scrolling */
  .container,
  section {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  /* Contain layout for better performance */
  section {
    contain: layout style;
  }
  
  /* Optimize images */
  img {
    content-visibility: auto;
  }
  
  /* Reduce statusbar complexity */
  .statusbar::before {
    display: none;
  }
  
  .sb-wifi,
  .sb-signal,
  .sb-battery::before {
    animation: none !important;
  }
}

/* Even more aggressive optimizations for slow connections */
@media (max-width: 768px) and (prefers-reduced-data: reduce) {
  .device-stage {
    display: none;
  }
  
  .bg-glow {
    display: none;
  }
}

/* Print styles - minimal */
@media print {
  .nav,
  .scroll-progress,
  .bg-glow,
  .device-stage,
  .hamburger,
  .mobile,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
}

