/* ========================================
   Remai Landing — "Electric Obsidian" v2
   Font: Sora | Accent: Indigo + Lime + Cyan
   ======================================== */

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

:root {
  /* Background layers */
  --bg: #020204;
  --bg2: #08080e;
  --bg3: #10101a;
  --bg4: #18182a;
  /* Text */
  --t1: #ededf0;
  --t2: rgba(237,237,240,0.58);
  --t3: rgba(237,237,240,0.28);
  --t4: rgba(237,237,240,0.12);
  /* Accents */
  --acc: #818cf8;
  --acc-light: #a5b4fc;
  --acc-dim: rgba(129,140,248,0.10);
  --acc-glow: rgba(129,140,248,0.25);
  --lime: #a3e635;
  --lime-dim: rgba(163,230,53,0.10);
  --lime-glow: rgba(163,230,53,0.25);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.10);
  --cyan-glow: rgba(34,211,238,0.25);
  --pink: #f472b6;
  --pink-dim: rgba(244,114,182,0.10);
  /* Glass surfaces */
  --glass-bg: rgba(255,255,255,0.03);
  --glass-bg-2: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.06);
  --glass-border-hover: rgba(255,255,255,0.14);
  /* Surface (compat) */
  --surface: var(--glass-bg);
  --surface-2: var(--glass-bg-2);
  --brd: var(--glass-border);
  --brd-hover: var(--glass-border-hover);
  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-full: 100px;
  /* Font & Motion */
  --font: 'Sora', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

/* Hide default cursor on desktop (custom cursor via JS) */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-ready { cursor: none; }
  body.custom-cursor-ready * { cursor: none !important; }
}

::selection {
  background: var(--acc-dim);
  color: var(--acc-light);
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--acc-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(129,140,248,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
  transform: translate(-50%, -50%);
}

.cursor-dot.cursor-hover {
  width: 48px; height: 48px;
  background: rgba(129,140,248,0.12);
}

.cursor-ring.cursor-hover {
  width: 56px; height: 56px;
  border-color: rgba(129,140,248,0.2);
}

/* --- Noise Texture Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--cyan), var(--lime));
  z-index: 9999;
  width: 0%;
  transition: width 0.08s linear;
}

/* --- Particle Canvas --- */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Aurora Canvas --- */
#auroraCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section { position: relative; z-index: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 580px;
  padding: 10px 6px 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(40px) saturate(1.6);
  -webkit-backdrop-filter: blur(40px) saturate(1.6);
  background: rgba(8, 8, 14, 0.55);
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
  background: rgba(8, 8, 14, 0.88);
  border-color: var(--brd-hover);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--t1);
}

.nav-logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--acc), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--acc), #6366f1);
  opacity: 0.25;
  filter: blur(10px);
  z-index: -1;
}

.nav-logo svg { width: 16px; height: 16px; }

.nav-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--acc), #6366f1);
  color: white;
  border: none;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  font-family: var(--font);
}

.nav-cta:hover { box-shadow: 0 4px 28px var(--acc-glow); }
.nav-cta:active { transform: scale(0.96); }

/* --- Hero Section --- */
.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 120px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--acc-dim);
  border: 1px solid rgba(129,140,248,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--acc-light);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
  position: relative;
  overflow: hidden;
}

/* Animated shimmer on badge border */
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--badge-angle, 0deg), transparent 30%, var(--acc) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: badgeRotate 4s linear infinite;
}

@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes badgeRotate {
  to { --badge-angle: 360deg; }
}

.hero-badge .pulse-dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(163,230,53,0.5);
  position: relative;
  z-index: 1;
}

.hero-badge span { position: relative; z-index: 1; }

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-title .line2 {
  display: block;
  background: linear-gradient(135deg, var(--acc) 0%, var(--cyan) 50%, var(--lime) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--t2);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.65s forwards;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: linear-gradient(135deg, var(--acc), #6366f1);
  color: white;
  border: none;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
  box-shadow: 0 4px 24px rgba(129,140,248,0.15);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: btnSweep 5s ease-in-out infinite;
}

@keyframes btnSweep {
  0% { left: -100%; }
  30% { left: 100%; }
  100% { left: 100%; }
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 48px rgba(129,140,248,0.35);
}

.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--t1);
  border: 1px solid var(--brd);
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font);
}

.btn-secondary:hover {
  background: var(--glass-bg-2);
  border-color: var(--brd-hover);
}

.btn-secondary:active { transform: scale(0.97); }

/* Magnetic button wrapper */
.magnetic-wrap {
  display: inline-block;
  position: relative;
  transition: transform 0.4s var(--ease-out);
}

/* --- Phone Mockup (Hero Right) --- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.8s forwards;
  perspective: 1400px;
}

.hero-phone-wrapper {
  position: relative;
  width: 260px;
}

/* Phone glow ring */
.hero-phone-wrapper::before {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 70px;
  background: radial-gradient(ellipse, rgba(129,140,248,0.15), rgba(99,102,241,0.06) 60%, transparent 80%);
  filter: blur(24px);
  animation: phoneGlow 5s ease-in-out infinite;
}

@keyframes phoneGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Floating orbit elements around phone */
.phone-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.phone-orbit-1 {
  width: 8px; height: 8px;
  background: var(--acc);
  box-shadow: 0 0 16px var(--acc-glow);
  top: -20px; right: -30px;
  animation: orbitFloat1 6s ease-in-out infinite;
}

.phone-orbit-2 {
  width: 6px; height: 6px;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime-glow);
  bottom: 30px; left: -35px;
  animation: orbitFloat2 7s ease-in-out infinite;
}

.phone-orbit-3 {
  width: 10px; height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
  bottom: -15px; right: -20px;
  animation: orbitFloat3 5s ease-in-out infinite;
}

@keyframes orbitFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, 15px); }
  50% { transform: translate(-5px, 25px); }
  75% { transform: translate(-15px, 10px); }
}

@keyframes orbitFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -10px); }
  66% { transform: translate(5px, -20px); }
}

@keyframes orbitFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, -18px); }
}

.hero-phone {
  width: 100%;
  aspect-ratio: 9/18;
  background: var(--bg2);
  border-radius: 36px;
  border: 1.5px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 32px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transform: rotateY(-3deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-3deg) rotateX(2deg) translateY(0); }
  50% { transform: rotateY(-1deg) rotateX(1deg) translateY(-12px); }
}

.hero-phone:hover {
  animation-play-state: paused;
  transform: rotateY(0deg) rotateX(0deg) scale(1.03);
}

/* Dynamic Island style notch */
.phone-notch {
  width: 100px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-notch::after {
  content: '';
  width: 8px; height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
}

.hero-phone-screen {
  width: 100%;
  height: calc(100% - 28px);
  background: linear-gradient(180deg, #06060a 0%, #0a0a12 50%, #06060a 100%);
  display: flex;
  flex-direction: column;
  padding: 14px 16px 18px;
  gap: 10px;
}

.phone-header { display: flex; align-items: center; justify-content: space-between; }

.phone-greeting { font-size: 11px; color: var(--t3); font-weight: 500; }

.phone-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  background: var(--acc-dim);
  border-radius: 6px;
  font-size: 8px;
  color: var(--acc);
  font-weight: 700;
}

.phone-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, var(--t1) 30%, var(--acc));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: -2px;
}

.phone-card {
  background: var(--glass-bg);
  border: 1px solid var(--brd);
  border-radius: 12px;
  padding: 10px;
}

.phone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.phone-card-label {
  font-size: 9px;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.phone-card-value { font-size: 9px; color: var(--lime); font-weight: 700; }

.phone-energy-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.phone-energy-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acc), var(--cyan), var(--lime));
  width: 0%;
  animation: energyGrow 2s var(--ease-out) 1.5s forwards;
}

@keyframes energyGrow {
  to { width: 72%; }
}

.phone-tasks { display: flex; flex-direction: column; gap: 5px; }

.phone-task {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--t2);
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.phone-task:nth-child(1) { animation-delay: 1.8s; }
.phone-task:nth-child(2) { animation-delay: 2s; }
.phone-task:nth-child(3) { animation-delay: 2.2s; }

.phone-task-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phone-task-dot.blue { background: var(--acc); box-shadow: 0 0 8px var(--acc-glow); }
.phone-task-dot.purple { background: #a78bfa; box-shadow: 0 0 8px rgba(167,139,250,0.5); }
.phone-task-dot.green { background: var(--lime); box-shadow: 0 0 8px var(--lime-glow); }

.phone-ai-insight {
  background: linear-gradient(135deg, var(--acc-dim), rgba(99,102,241,0.06));
  border: 1px solid rgba(129,140,248,0.1);
  border-radius: 12px;
  padding: 8px 10px;
}

.phone-ai-label {
  font-size: 8px;
  color: var(--acc);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.phone-ai-text {
  font-size: 10px;
  color: var(--t2);
  line-height: 1.4;
}

/* --- Features - Bento Grid --- */
.features { padding: 120px 24px 100px; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title .gradient {
  background: linear-gradient(135deg, var(--acc), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--t2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
  will-change: transform;
}

/* Animated gradient border on hover */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 25%,
    var(--acc) 40%,
    var(--cyan) 55%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  animation: borderRotate 4s linear infinite;
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  to { --border-angle: 360deg; }
}

/* Spotlight cursor effect */
.bento-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(129,140,248,0.07),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.bento-card:hover {
  border-color: rgba(129,140,248,0.12);
}

.bento-card:hover::before { opacity: 1; }
.bento-card:hover::after { opacity: 1; }

/* Large featured card */
.bento-card.featured {
  grid-column: span 2;
  grid-row: span 1;
  padding: 32px;
}

.bento-card.featured .bento-visual {
  margin-top: 20px;
  height: 120px;
  background: linear-gradient(135deg, var(--acc-dim), rgba(99,102,241,0.04));
  border: 1px solid var(--brd);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.bento-card.featured .bento-visual::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--acc-dim), transparent, var(--cyan-dim), transparent);
  animation: rotateConic 12s linear infinite;
}

@keyframes rotateConic {
  to { transform: rotate(360deg); }
}

.insight-bar {
  width: 40px;
  height: 60px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.insight-bar-bg {
  position: absolute;
  bottom: 0;
  width: 100%;
  border-radius: 8px;
  transition: height 1.2s var(--ease-out);
}

.bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

/* Icon floating animation */
.bento-icon svg {
  width: 22px; height: 22px;
  position: relative; z-index: 1;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.bi-blue { background: var(--acc-dim); color: var(--acc); }
.bi-blue::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, rgba(129,140,248,0.12), transparent 70%); }
.bi-purple { background: rgba(167,139,250,0.1); color: #a78bfa; }
.bi-purple::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, rgba(167,139,250,0.12), transparent 70%); }
.bi-green { background: var(--lime-dim); color: var(--lime); }
.bi-green::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, var(--lime-glow), transparent 70%); opacity: 0.5; }
.bi-orange { background: rgba(251,146,60,0.1); color: #fb923c; }
.bi-orange::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, rgba(251,146,60,0.12), transparent 70%); }
.bi-pink { background: var(--pink-dim); color: var(--pink); }
.bi-pink::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, rgba(244,114,182,0.12), transparent 70%); }
.bi-teal { background: var(--cyan-dim); color: var(--cyan); }
.bi-teal::after { content:''; position:absolute; inset:0; border-radius:inherit; background:radial-gradient(circle, var(--cyan-glow), transparent 70%); opacity: 0.5; }

.bento-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.bento-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.65;
}

.bento-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 12px;
}

.tag-ai { background: var(--acc-dim); color: var(--acc-light); }
.tag-auto { background: rgba(167,139,250,0.1); color: #a78bfa; }
.tag-top { background: var(--lime-dim); color: var(--lime); }

/* --- Testimonials Section --- */
.testimonials { padding: 100px 24px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.testimonial-card:hover {
  border-color: var(--brd-hover);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.testimonial-card:hover::before { opacity: 0.6; }

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px; height: 16px;
  fill: #fbbf24;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-avatar.ta-1 { background: var(--acc-dim); color: var(--acc); }
.testimonial-avatar.ta-2 { background: var(--lime-dim); color: var(--lime); }
.testimonial-avatar.ta-3 { background: var(--cyan-dim); color: var(--cyan); }

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}

.testimonial-role {
  font-size: 12px;
  color: var(--t3);
}

/* --- How It Works --- */
.how-it-works { padding: 100px 24px; }

.steps {
  display: flex;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(33.33% / 2);
  right: calc(33.33% / 2);
  height: 1px;
  background: linear-gradient(90deg, var(--acc), var(--cyan), var(--lime));
  opacity: 0.2;
  z-index: 0;
}

.step {
  flex: 1;
  padding: 32px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--acc), var(--cyan));
  opacity: 0;
  transition: opacity 0.4s;
}

.step:hover {
  border-color: rgba(129,140,248,0.15);
}

.step:hover::before { opacity: 1; }

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--acc-dim);
  border: 1px solid rgba(129,140,248,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--acc);
  margin: 0 auto 20px;
  transition: all 0.4s var(--ease-out);
}

.step:hover .step-num {
  background: linear-gradient(135deg, var(--acc), #6366f1);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.step-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.65;
}

/* --- FAQ Section --- */
.faq-section { padding: 100px 24px; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--brd);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover { border-color: var(--brd-hover); }
.faq-item.active { border-color: rgba(129,140,248,0.15); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--t1);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover { color: var(--acc-light); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--acc-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}

.faq-icon svg {
  width: 12px; height: 12px;
  transition: transform 0.3s var(--ease-out);
}

.faq-item.active .faq-icon {
  background: linear-gradient(135deg, var(--acc), #6366f1);
}

.faq-item.active .faq-icon svg {
  transform: rotate(45deg);
}

.faq-item.active .faq-icon svg path { stroke: white; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--t2);
  line-height: 1.7;
}

/* --- Stats --- */
.stats { padding: 80px 24px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--brd);
  border-radius: var(--r-lg);
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.stat-item:hover {
  border-color: rgba(129,140,248,0.15);
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--t1) 20%, var(--acc));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--t3);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section { padding: 100px 24px; text-align: center; }

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(129,140,248,0.1);
  border-radius: var(--r-xl);
  padding: 64px 48px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    var(--acc-dim) 60deg,
    transparent 120deg,
    var(--cyan-dim) 180deg,
    transparent 240deg,
    var(--lime-dim) 300deg,
    transparent 360deg
  );
  animation: rotateConic 20s linear infinite;
}

/* Outer glow */
.cta-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--border-angle, 0deg), transparent, var(--acc), var(--cyan), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.3;
  animation: borderRotate 6s linear infinite;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--t2);
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: var(--t1);
  color: var(--bg);
  border: none;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 24px rgba(255,255,255,0.06);
  position: relative;
  font-family: var(--font);
  overflow: hidden;
}

.btn-appstore::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-appstore:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255,255,255,0.15);
}

.btn-appstore:hover::before { left: 100%; }
.btn-appstore:active { transform: scale(0.97); }
.btn-appstore svg { width: 24px; height: 24px; }

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--t3);
  position: relative;
}

/* --- Footer --- */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--brd);
  text-align: center;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--acc), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo svg { width: 16px; height: 16px; }
.footer-name { font-size: 16px; font-weight: 700; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--t3);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--t1); }
.footer-copy { font-size: 13px; color: var(--t3); }

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* Stagger children animation */
.stagger-children .bento-card,
.stagger-children .step,
.stagger-children .stat-item,
.stagger-children .testimonial-card,
.stagger-children .faq-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.stagger-children.visible .bento-card,
.stagger-children.visible .step,
.stagger-children.visible .stat-item,
.stagger-children.visible .testimonial-card,
.stagger-children.visible .faq-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > :nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > :nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > :nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > :nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > :nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > :nth-child(6) { transition-delay: 0.4s; }

/* --- Section Divider Gradient --- */
.section-glow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc-dim), var(--cyan-dim), transparent);
  pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:nth-child(3) { grid-column: span 2; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 110px 24px 60px;
    gap: 32px;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card.featured { grid-column: span 2; }
  .steps { flex-direction: column; max-width: 400px; }
  .steps::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:nth-child(3) { grid-column: span 1; }
}

@media (max-width: 640px) {
  .nav { top: 8px; width: calc(100% - 16px); padding: 8px 6px 8px 14px; }
  .hero { padding: 100px 20px 50px; gap: 24px; }
  .hero-title { letter-spacing: -1.5px; }
  .features { padding: 72px 16px; }
  .how-it-works { padding: 60px 16px; }
  .testimonials { padding: 60px 16px; }
  .faq-section { padding: 60px 16px; }
  .stats { padding: 48px 16px; }
  .cta-section { padding: 60px 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta-card { padding: 40px 24px; border-radius: var(--r-lg); }
  .bento-card { padding: 22px 18px; }
  .step { padding: 24px 18px; }
  .hero-phone-wrapper { width: 220px; }
  .faq-question { padding: 16px 18px; font-size: 14px; }
  .faq-answer-inner { padding: 0 18px 16px; }
}

/* Hide cursor on touch devices */
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-badge, .hero-title, .hero-subtitle, .hero-actions, .hero-visual {
    opacity: 1 !important;
  }
}
