/* ============================================
   Arc AI — Sider.ai-inspired Premium Redesign
   Liquid glass, Inter typography, iPhone frames
   ============================================ */

:root {
  /* Brand */
  --brand: #6C31FF;
  --brand-dark: #5520D9;
  --brand-light: #8B5FFF;
  --brand-lighter: #B4A0FF;
  --brand-bg: #F5F3FF;

  /* Surface */
  --bg: #FFFFFF;
  --bg-soft: #FAFAFB;
  --bg-gray: #F5F5F7;
  --bg-dark: #0B0B0F;
  --bg-dark-2: #12121A;
  --bg-card: #FFFFFF;

  /* Text */
  --text: #0A0A0A;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --text-light: #6B7280;
  --text-inverse: #FFFFFF;
  --text-muted-inverse: rgba(255,255,255,0.65);

  /* Borders */
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.05);
  --border-hover: rgba(0,0,0,0.14);
  --border-inverse: rgba(255,255,255,0.10);

  /* Gradients */
  --grad-hero-bg: radial-gradient(ellipse 85% 70% at 50% 0%, rgba(108,49,255,0.10) 0%, rgba(139,95,255,0.05) 45%, transparent 75%);
  --grad-spotlight: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(139,95,255,0.55) 0%, rgba(108,49,255,0.25) 35%, transparent 75%);

  /* Spacing */
  --xs: 0.5rem; --sm: 0.75rem; --md: 1rem; --lg: 1.5rem; --xl: 2rem; --2xl: 3rem; --3xl: 4rem; --4xl: 6rem; --5xl: 8rem;

  /* Radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 24px; --r-3xl: 32px; --r-full: 9999px;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Transitions */
  --t-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  --t-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.03);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.05);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.07);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.10);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.12);
  --shadow-mockup: 0 48px 100px rgba(0,0,0,0.18), 0 24px 48px rgba(0,0,0,0.12);

  /* Layout */
  --max-w: 840px;
  --max-w-wide: 1160px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.04em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); letter-spacing: -0.035em; margin-top: var(--2xl); margin-bottom: var(--md); }
h3 { font-size: 1.25rem; margin-bottom: var(--xs); letter-spacing: -0.02em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }
p { color: var(--text-2); margin-bottom: var(--md); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); text-decoration: none; }
em { font-style: italic; }

/* ============================================
   Layout
   ============================================ */
.container { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 var(--lg); }
.main-content { padding-top: var(--nav-h); min-height: 100vh; }

/* ============================================
   Navigation — Liquid-glass floating pill
   ============================================ */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: 58px;
  width: calc(100% - 32px);
  max-width: 900px;
  background: linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(248,248,252,0.68) 100%);
  backdrop-filter: blur(48px) saturate(240%);
  -webkit-backdrop-filter: blur(48px) saturate(240%);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: var(--r-full);
  box-shadow:
    0 4px 30px rgba(0,0,0,0.10),
    0 1px 0 rgba(255,255,255,0.85) inset,
    inset 0 0 0 1px rgba(255,255,255,0.65),
    0 0 0 1px rgba(0,0,0,0.06);
  transition: all var(--t);
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.3) 100%);
  pointer-events: none;
  z-index: -1;
}
.navbar.scrolled {
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(248,248,252,0.82) 100%);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.14),
    0 1px 0 rgba(255,255,255,0.9) inset,
    inset 0 0 0 1px rgba(255,255,255,0.75),
    0 0 0 1px rgba(0,0,0,0.08);
  border-color: rgba(255,255,255,0.9);
}
.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px 0 var(--lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
}
.nav-brand a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.logo-image { height: 34px; width: auto; transition: transform var(--t-bounce); }
.nav-brand a:hover .logo-image { transform: scale(1.08); }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--r-full);
  position: relative;
  white-space: nowrap;
  transition: all var(--t-fast);
  background: transparent;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.55);
  text-decoration: none;
}
.nav-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.75);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
.nav-cta {
  background: rgba(10,10,10,0.92);
  color: var(--text-inverse) !important;
  padding: 9px 18px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--t);
  margin-left: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-cta:hover {
  background: var(--text-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.nav-cta.active {
  background: var(--text);
  box-shadow: 0 0 0 2px var(--brand-lighter);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: rgba(0,0,0,0.04); }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--t); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Progress Bar */
.progress-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--brand); z-index: 1001; transition: width 0.1s; width: 0; }

/* ============================================
   Apps dropdown — Sider.ai style expanding panel
   ============================================ */
.nav-item.dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
  opacity: 0.7;
}
.nav-item.dropdown.open .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,248,252,0.95) 100%);
  backdrop-filter: blur(40px) saturate(220%);
  -webkit-backdrop-filter: blur(40px) saturate(220%);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--r-xl);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.12),
    0 1px 0 rgba(255,255,255,0.9) inset,
    inset 0 0 0 1px rgba(255,255,255,0.75),
    0 0 0 1px rgba(0,0,0,0.06);
  padding: var(--md);
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 6px;
  min-width: 430px;
  z-index: 1002;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu,
.nav-item.dropdown:has(.dropdown-menu:hover) .dropdown-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.nav-item.dropdown:hover .dropdown-chevron,
.nav-item.dropdown.open .dropdown-chevron,
.nav-item.dropdown:has(.dropdown-menu:hover) .dropdown-chevron { transform: rotate(180deg); }
.nav-item.dropdown:hover .dropdown-toggle,
.nav-item.dropdown.open .dropdown-toggle,
.nav-item.dropdown:has(.dropdown-menu:hover) .dropdown-toggle { color: var(--text); }
.dropdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--md) var(--sm);
  border-radius: var(--r-lg);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--t-fast);
  position: relative;
}
.dropdown-card:hover {
  background: rgba(255,255,255,0.65);
  color: var(--text);
  transform: translateY(-3px);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.dropdown-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-bounce);
}
.dropdown-icon svg { width: 22px; height: 22px; }
.dropdown-card:hover .dropdown-icon { transform: scale(1.1); }
.icon-android { color: #3DDC84; background: linear-gradient(135deg, #E8F9EE 0%, #D1F3DC 100%); }
.icon-macos { color: #555; background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%); }
.icon-ios { color: #007AFF; background: linear-gradient(135deg, #E6F2FF 0%, #CCE4FF 100%); }
.icon-windows { color: #0078D4; background: linear-gradient(135deg, #E6F4FC 0%, #CDE9F7 100%); }
.dropdown-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  line-height: 1;
}
.status-live { background: #D1FAE5; color: #059669; }
.status-soon { background: #F3E8FF; color: #7C3AED; }

/* Android icon inside nav/footer CTAs and small platform links */
.nav-cta svg,
.footer-cta svg,
.cta-button svg,
.platform-links a svg {
  width: 16px;
  height: 16px;
}
.nav-cta { display: inline-flex; align-items: center; gap: 6px; }
.footer-cta { display: inline-flex; align-items: center; gap: 6px; }
.cta-button svg { color: #3DDC84; }
.nav-cta svg,
.footer-cta svg { color: #3DDC84; }

/* ============================================
   Coming Soon pages — macOS, iOS, Windows
   ============================================ */
.coming-soon-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--2xl) + 20px) var(--lg) var(--3xl);
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  width: 100vw;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.coming-soon-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--grad-hero-bg);
  pointer-events: none;
}
.coming-soon-hero > * { position: relative; z-index: 1; }
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-bg);
  color: var(--brand);
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--sm);
  border: 1px solid rgba(108,49,255,0.10);
}
.coming-soon-icon {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--xl);
  margin-bottom: var(--xl);
  position: relative;
  animation: floatPhone 6s ease-in-out infinite;
}
.coming-soon-icon svg { width: 48px; height: 48px; }
.coming-soon-icon::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  border: 2px solid var(--brand-lighter);
  opacity: 0;
  animation: pulseRing 2.4s ease-out infinite;
}
.coming-soon-hero h1 {
  max-width: 720px;
  margin: 0 auto var(--md);
}
.coming-soon-hero .hero-subtitle {
  max-width: 560px;
  margin: 0 auto var(--2xl);
  color: var(--text-light);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.coming-soon-hero .notify-form,
.coming-soon-hero .hero-cta-group {
  margin-top: var(--md);
}
.android-hero-download {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: calc(-1 * var(--xl));
  margin-bottom: var(--2xl);
  position: relative;
  z-index: 2;
}
.android-hero-download .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.coming-soon-features {
  margin: var(--2xl) 0 var(--4xl);
}
.coming-soon-features .features-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.coming-soon-section {
  max-width: 680px;
  margin: var(--4xl) auto;
  text-align: center;
  padding: 0 var(--lg);
}
.coming-soon-section h2 { margin-top: 0; }
.coming-soon-section p { color: var(--text-light); }
.notify-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.notify-form input[type="email"] {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  min-width: 220px;
  padding: 8px 0;
}
.notify-form input[type="email"]::placeholder { color: var(--text-3); }
.notify-form .cta-button {
  padding: 11px 22px;
  font-size: 0.9rem;
}
.platform-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--md);
  flex-wrap: wrap;
  margin-top: var(--xl);
}
.platform-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--t-fast);
}
.platform-links a:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================
   Animations for coming-soon pages
   ============================================ */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ============================================
   Hero — Sider.ai style
   ============================================ */
.hero-section {
  position: relative;
  padding: calc(var(--2xl) + 20px) var(--lg) var(--3xl);
  background: var(--bg);
  text-align: center;
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  width: 100vw;
  overflow: hidden;
}
.hero-with-live-demo { padding-bottom: var(--4xl); overflow: visible; }
.hero-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xl);
  align-items: center;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  text-align: left;
}
.hero-text-col { max-width: 520px; }
.hero-demo-col { justify-content: flex-end; padding-right: var(--xl); }
.hero-with-live-demo .hero-badge,
.hero-with-live-demo h1,
.hero-with-live-demo .hero-subtitle,
.hero-with-live-demo .hero-cta-group {
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start;
}
.hero-with-live-demo .hero-section h1 { margin-bottom: var(--md); }
.hero-with-live-demo .social-proof {
  margin: var(--2xl) 0 0 0;
  justify-content: flex-start;
  gap: var(--lg);
}
.hero-with-live-demo .social-proof-item { padding: 0 var(--lg) 0 0; }
.hero-with-live-demo .social-proof-item:not(:last-child)::after { right: auto; left: 100%; }
.hero-demo-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 460px;
}
.hero-video-single {
  max-width: 260px;
  margin: 0;
}
.hero-video-single .video-frame {
  max-width: 260px;
  padding: 12px;
  border-radius: 44px;
}
.hero-video-single .video-frame video { border-radius: 34px; }
.hero-video-single .iphone-frame-video .iphone-notch { top: 14px; width: 76px; height: 22px; }
.hero-video-single .iphone-frame-video .iphone-button { right: -2px; top: 100px; }
.hero-video-single .iphone-frame-video .iphone-button.bottom { top: 140px; }
.hero-video-single .iphone-frame-video .iphone-button.left { left: -2px; top: 110px; }
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background: var(--grad-hero-bg);
  pointer-events: none;
}
.hero-section > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-bg);
  color: var(--brand);
  padding: 7px 15px;
  border-radius: var(--r-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--xl);
  border: 1px solid rgba(108,49,255,0.10);
  animation: fadeInUp 0.7s ease-out both;
}

.hero-section h1 {
  margin-bottom: var(--md);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease-out 0.08s both;
}
.hero-section .hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--text-light);
  margin: 0 auto var(--2xl);
  letter-spacing: -0.01em;
  max-width: 560px;
  line-height: 1.5;
  animation: fadeInUp 0.7s ease-out 0.16s both;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--md);
  flex-wrap: wrap;
  margin-bottom: var(--2xl);
  animation: fadeInUp 0.7s ease-out 0.24s both;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--text);
  color: var(--text-inverse);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--t);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cta-button:hover {
  color: var(--text-inverse);
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  text-decoration: none;
}
.cta-button svg { width: 18px; height: 18px; }
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t);
}
.cta-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Social proof */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto var(--3xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease-out 0.32s both;
}
.social-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 var(--xl);
  position: relative;
}
.social-proof-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--border);
}
.social-proof-item .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.social-proof-item .stat-label { font-size: 0.78rem; color: var(--text-light); }

/* ============================================
   iPhone Frame — CSS-only realistic bezel
   ============================================ */
.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.18),
    inset 0 -1px 1px rgba(0,0,0,0.8),
    0 32px 64px rgba(0,0,0,0.18),
    0 12px 24px rgba(0,0,0,0.12);
  transform-style: preserve-3d;
  animation: floatPhone 6s ease-in-out infinite, fadeInUp 0.9s ease-out 0.4s both;
}
.iphone-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 38px;
  border: 1.5px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 2;
}
.iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0d0d0d;
  border-radius: 0 0 18px 18px;
  z-index: 5;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.08);
}
.iphone-screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/19.5;
}
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.iphone-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 35%, transparent 65%, rgba(255,255,255,0.03) 100%);
  pointer-events: none;
  z-index: 3;
}
.iphone-button {
  position: absolute;
  right: -2px;
  top: 110px;
  width: 3px;
  height: 28px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}
.iphone-button.bottom { top: 150px; height: 60px; }
.iphone-button.left { right: auto; left: -2px; top: 120px; height: 34px; border-radius: 2px 0 0 2px; }

/* Hero mockup */
.hero-mockup-wrap {
  max-width: 320px;
  margin: 0 auto;
  perspective: 1200px;
}
.hero-media-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--3xl);
  flex-wrap: wrap;
  margin-top: var(--xl);
}
.hero-video-wrap {
  max-width: 340px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.video-frame {
  width: 100%;
  max-width: 300px;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: none;
  padding: 11px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.18),
    inset 0 -1px 1px rgba(0,0,0,0.8),
    0 32px 64px rgba(0,0,0,0.18),
    0 12px 24px rgba(0,0,0,0.12);
  animation: fadeInUp 0.9s ease-out 0.4s both;
}
.video-frame img,
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 9/19.5;
  object-fit: cover;
  border-radius: 34px;
}
.iphone-frame-video {
  position: relative;
  border-radius: 44px;
}
.iphone-frame-video .iphone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0d0d0d;
  border-radius: 0 0 16px 16px;
  z-index: 5;
  box-shadow: inset 0 -1px 2px rgba(255,255,255,0.08);
}
.iphone-frame-video .iphone-button {
  position: absolute;
  right: -2px;
  top: 110px;
  width: 3px;
  height: 28px;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}
.iphone-frame-video .iphone-button.bottom { top: 150px; height: 60px; }
.iphone-frame-video .iphone-button.left { right: auto; left: -2px; top: 120px; height: 34px; border-radius: 2px 0 0 2px; }
.hero-with-mockup { padding-top: calc(var(--2xl) + 10px); }
.hero-with-mockup h1 { margin-top: var(--2xl); }
.hero-mockup-small { max-width: 220px; }
.hero-mockup-small .iphone-frame { max-width: 220px; }
.hero-mockup-small .iphone-frame::before { inset: 8px; border-radius: 32px; }
.hero-mockup-small .iphone-screen { border-radius: 30px; }
.hero-mockup-small .iphone-notch { width: 70px; height: 18px; top: 10px; }
.hero-simple .hero-mockup-wrap .iphone-frame { animation: fadeInUp 0.9s ease-out 0.2s both; }

/* ============================================
   Section headers
   ============================================ */
.section-header {
  text-align: center;
  margin: var(--4xl) 0 var(--2xl);
}
.section-header h2 { margin-top: 0; }
.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Feature Highlights — Alternating layout
   ============================================ */
.feature-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--3xl);
  align-items: center;
  margin: var(--4xl) 0;
}
.feature-highlights.reverse { direction: rtl; }
.feature-highlights.reverse > * { direction: ltr; }
.highlight-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--md);
}
.highlight-text h2 {
  margin-top: 0;
  margin-bottom: var(--md);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.highlight-text p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: var(--lg);
}
.highlight-text .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--t);
}
.highlight-text .learn-more::after {
  content: '→';
  transition: transform var(--t);
}
.highlight-text .learn-more:hover {
  color: var(--brand);
  text-decoration: none;
}
.highlight-text .learn-more:hover::after { transform: translateX(4px); }
.highlight-media {
  display: flex;
  justify-content: center;
  align-items: center;
}
.highlight-media .iphone-frame { max-width: 280px; }

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--lg);
  margin: var(--2xl) 0;
}
.feature-card {
  background: var(--bg-card);
  padding: var(--xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: var(--md);
  position: relative;
  transition: all var(--t-bounce);
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
  transition: transform var(--t-bounce);
}

/* Feature icon gradient backgrounds — Sider.ai style soft color blobs */
.icon-summary { color: #7C3AED; background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); }
.icon-reader { color: #2563EB; background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); }
.icon-chat { color: #4F46E5; background: linear-gradient(135deg, #E0E7FF 0%, #C7D2FE 100%); }
.icon-writer { color: #DB2777; background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%); }
.icon-actions { color: #D97706; background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
.icon-community { color: #0D9488; background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%); }
.icon-privacy { color: #059669; background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); }
.icon-languages { color: #0284C7; background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); }
.icon-free { color: #7C3AED; background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%); }

/* Hover animations — each icon gets a distinct playful Sider-style motion */
.feature-card:hover .feature-icon { transform: scale(1.08); }
.feature-card:hover .icon-summary svg { animation: iconSpin 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .icon-reader .wave-1 { animation: wavePulse 0.55s ease-in-out infinite; }
.feature-card:hover .icon-reader .wave-2 { animation: wavePulse 0.55s ease-in-out 0.15s infinite; }
.feature-card:hover .icon-chat svg { animation: iconBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .icon-writer svg { animation: iconWiggle 0.55s ease-in-out; }
.feature-card:hover .icon-actions svg { animation: iconFlash 0.5s ease-in-out; }
.feature-card:hover .icon-community svg { animation: iconPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .icon-privacy svg { animation: iconShield 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.feature-card:hover .icon-languages svg { animation: iconSpinSoft 0.8s ease-in-out; }
.feature-card:hover .icon-free svg { animation: iconWiggle 0.6s ease-in-out; }
.feature-title { font-size: 1.08rem; color: var(--text); margin-bottom: var(--xs); font-weight: 700; }
.feature-description { font-size: 0.92rem; color: var(--text-light); line-height: 1.6; margin-bottom: 0; }
.feature-description a { font-weight: 500; }

/* ============================================
   Steps
   ============================================ */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--xl);
  margin: var(--2xl) 0;
}
.step { text-align: center; padding: var(--lg); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--text-inverse);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--md);
  transition: all var(--t-bounce);
}
.step:hover .step-number { transform: scale(1.1); }
.step-title { font-weight: 700; margin-bottom: var(--xs); color: var(--text); font-size: 1rem; }
.step-description { color: var(--text-light); font-size: 0.88rem; line-height: 1.55; }

/* ============================================
   Section highlight / callout
   ============================================ */
.section-highlight {
  background: var(--bg-gray);
  padding: var(--2xl);
  border-radius: var(--r-2xl);
  border: none;
  margin: var(--2xl) 0;
}
.section-highlight h2 { margin-top: 0; }
.section-highlight ul { margin: var(--md) 0 0 1.2rem; }
.section-highlight li { margin-bottom: var(--xs); color: var(--text-2); }

.accessibility-section { margin: var(--2xl) 0; padding: var(--2xl); }
.accessibility-section h2 { margin-top: 0; }

/* Audience cards */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--lg);
  margin: var(--xl) 0;
}
.audience-card {
  text-align: center;
  padding: var(--xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: all var(--t);
}
.audience-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.audience-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin: 0 auto var(--md);
  transition: all var(--t-bounce);
  transform-style: preserve-3d;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
}
.audience-icon svg {
  width: 24px;
  height: 24px;
  transition: transform var(--t-bounce);
}
.icon-professionals { color: #3B82F6; background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%); }
.icon-students { color: #8B5CF6; background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%); }
.icon-accessibility { color: #059669; background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%); }
.icon-multilingual { color: #0284C7; background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); }
.audience-card:hover .audience-icon { transform: scale(1.08); }
.audience-card:hover .icon-professionals svg { animation: iconBuilding 0.6s ease-in-out; }
.audience-card:hover .icon-students svg { animation: iconGraduate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.audience-card:hover .icon-accessibility svg { animation: iconReach 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
.audience-card:hover .icon-multilingual svg { animation: iconSpinSoft 0.8s ease-in-out; }
.audience-card h3 { font-size: 1.1rem; margin-bottom: var(--xs); color: var(--text); }
.audience-card p { font-size: 0.88rem; color: var(--text-light); margin: 0; }

/* ============================================
   Cross-device CTA — Dark spotlight section
   ============================================ */
.cross-device-cta {
  position: relative;
  text-align: center;
  padding: calc(var(--4xl) + 40px) var(--lg);
  margin: var(--4xl) calc(-1 * (100vw - 100%) / 2) 0;
  width: 100vw;
  background: var(--bg-dark);
  color: var(--text-inverse);
  overflow: hidden;
}
.cross-device-cta::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 120%;
  background: var(--grad-spotlight);
  pointer-events: none;
  animation: spotlightPulse 8s ease-in-out infinite;
}
.cross-device-cta > * { position: relative; z-index: 1; }
.cross-device-cta h2 {
  color: var(--text-inverse);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 720px;
  margin: 0 auto var(--2xl);
}
.cross-device-cta .cta-button {
  background: var(--text-inverse);
  color: var(--text);
  box-shadow: 0 8px 32px rgba(108,49,255,0.25);
}
.cross-device-cta .cta-button:hover {
  background: #f2f2f2;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(108,49,255,0.35);
}
.platform-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--2xl);
  flex-wrap: wrap;
  margin-top: var(--3xl);
}
.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-inverse);
  font-size: 0.85rem;
  font-weight: 500;
}
.platform-item svg {
  width: 32px;
  height: 32px;
  opacity: 0.8;
}

/* ============================================
   Download section
   ============================================ */
.download-section {
  text-align: center;
  padding: var(--3xl) var(--lg);
  margin: var(--2xl) 0;
  background: var(--bg-gray);
  border-radius: var(--r-2xl);
}
.download-section h2 { margin-top: 0; }
.download-section img { transition: transform var(--t-bounce); }
.download-section img:hover { transform: scale(1.05); }

/* ============================================
   FAQ
   ============================================ */
details {
  margin: var(--sm) auto;
  max-width: 720px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-fast);
  background: var(--bg-card);
}
details:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
details summary {
  padding: var(--md) var(--lg);
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-3);
  font-weight: 300;
  transition: transform var(--t-bounce);
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid var(--border); }
details p { padding: var(--md) var(--lg); margin: 0; color: var(--text-2); font-size: 0.92rem; }

/* ============================================
   Privacy/Terms
   ============================================ */
.privacy-nav { margin-bottom: var(--xl); }
.privacy-nav a { color: var(--brand); font-weight: 600; }
.privacy-header { margin-bottom: var(--xl); }
.privacy-header h1 { margin-bottom: var(--xs); }
.privacy-header p { color: var(--text-3); font-size: 0.9rem; }

/* ============================================
   Footer — Sider.ai dark multi-column
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: var(--3xl) 0 var(--2xl);
  margin-top: 0;
}
.footer-content {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--lg) var(--2xl);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--3xl);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--lg); }
.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}
.footer-logo-link:hover { color: var(--text-inverse); text-decoration: none; }
.footer-logo { height: 28px; width: auto; }
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text-inverse);
  transition: all var(--t);
}
.social-icon:hover {
  background: rgba(255,255,255,0.16);
  color: var(--text-inverse);
  transform: translateY(-2px);
  text-decoration: none;
}
.footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xl);
}
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col h4 {
  color: var(--text-inverse);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.footer-links-col a {
  color: var(--text-muted-inverse);
  font-size: 0.9rem;
  transition: all var(--t-fast);
}
.footer-links-col a:hover {
  color: var(--text-inverse);
  text-decoration: none;
}
.footer-tagline {
  color: var(--text-muted-inverse);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
}
.footer-cta {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--text-inverse);
  color: var(--text) !important;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t);
  width: fit-content;
}
.footer-cta:hover {
  background: #f2f2f2;
  transform: translateY(-1px);
  text-decoration: none;
}
.footer-bottom {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: var(--md) var(--lg) 0;
  border-top: 1px solid var(--border-inverse);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--md);
  color: var(--text-muted-inverse);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-made-with { margin: 0; }

/* In-page footer (legacy) */
.footer-section { text-align: center; padding: var(--2xl) var(--lg); margin-top: var(--2xl); border-top: 1px solid var(--border); }
.footer-links { margin: var(--lg) 0; }
.footer-links a { margin: 0 var(--md); color: var(--brand); font-weight: 500; }

/* ============================================
   Back to top
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--text-inverse);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-bounce);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px) scale(1.08); box-shadow: var(--shadow-lg); }

/* ============================================
   Tables, code, lists
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--xl) 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
th {
  background: var(--bg-gray);
  color: var(--text);
  padding: var(--md) var(--lg);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
td { padding: var(--md) var(--lg); border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 0.9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-gray); }
code { background: var(--bg-gray); padding: 0.15em 0.4em; border-radius: 4px; font-family: var(--font-mono); font-size: 0.88em; color: var(--brand-dark); }
pre { background: var(--bg-gray); padding: var(--lg); border-radius: var(--r-md); border: 1px solid var(--border); overflow-x: auto; }
pre code { background: none; padding: 0; border: none; }
ul, ol { margin-bottom: var(--md); padding-left: 1.5rem; }
li { margin-bottom: var(--xs); line-height: 1.6; color: var(--text-2); }
hr { border: none; height: 1px; background: var(--border); margin: var(--3xl) 0; }
blockquote { border-left: 3px solid var(--brand); padding: 0.5rem 1rem; margin: var(--lg) 0; background: var(--brand-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
blockquote p { margin: 0; color: var(--text); }

/* Selection & scrollbar */
::selection { background: var(--brand); color: white; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
a:focus, button:focus { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Print & reduced motion */
@media print { .navbar, .nav-toggle, .back-to-top, .progress-bar, .footer-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotateX(0); }
  50% { transform: translateY(-14px) rotateX(2deg); }
}
@keyframes spotlightPulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* Feature icon hover animations — Sider.ai playful micro-interactions */
@keyframes iconSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes iconSpinSoft {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(375deg); }
  100% { transform: rotate(360deg); }
}
@keyframes wavePulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(1.35) translateX(1px); opacity: 0.7; }
}
@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(2px); }
  80% { transform: translateY(-2px); }
}
@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(3deg); }
}
@keyframes iconFlash {
  0%, 100% { transform: scale(1); opacity: 1; }
  25% { transform: scale(1.2) rotate(-5deg); opacity: 0.85; }
  50% { transform: scale(0.95) rotate(3deg); opacity: 1; }
  75% { transform: scale(1.1) rotate(-2deg); opacity: 0.9; }
}
@keyframes iconPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  60% { transform: scale(0.96); }
  80% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes iconShield {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.12) translateY(-3px); }
  50% { transform: scale(1.05) translateY(1px); }
  70% { transform: scale(1.1) translateY(-2px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes iconBuilding {
  0% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
  60% { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
@keyframes iconGraduate {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(4deg); }
  75% { transform: translateY(-3px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes iconReach {
  0% { transform: scale(1); }
  25% { transform: scale(1.15) translateY(-2px); }
  45% { transform: scale(0.96) translateY(1px); }
  65% { transform: scale(1.1) translateY(-1px); }
  100% { transform: scale(1); }
}

.animate-in { animation: fadeInUp var(--t-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

.features-grid .feature-card:nth-child(1).animate-in { animation-delay: 0.05s; }
.features-grid .feature-card:nth-child(2).animate-in { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(3).animate-in { animation-delay: 0.15s; }
.features-grid .feature-card:nth-child(4).animate-in { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(5).animate-in { animation-delay: 0.25s; }
.features-grid .feature-card:nth-child(6).animate-in { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(7).animate-in { animation-delay: 0.35s; }
.features-grid .feature-card:nth-child(8).animate-in { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(9).animate-in { animation-delay: 0.45s; }
.features-grid .feature-card:nth-child(10).animate-in { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(11).animate-in { animation-delay: 0.55s; }
.features-grid .feature-card:nth-child(12).animate-in { animation-delay: 0.6s; }
.features-grid .feature-card:nth-child(13).animate-in { animation-delay: 0.65s; }
.features-grid .feature-card:nth-child(14).animate-in { animation-delay: 0.7s; }
.features-grid .feature-card:nth-child(15).animate-in { animation-delay: 0.75s; }

.steps-container .step:nth-child(1).animate-in { animation-delay: 0.1s; }
.steps-container .step:nth-child(2).animate-in { animation-delay: 0.2s; }
.steps-container .step:nth-child(3).animate-in { animation-delay: 0.3s; }
.steps-container .step:nth-child(4).animate-in { animation-delay: 0.4s; }

/* ============================================
   Blog Styles
   ============================================ */
.blog-index { max-width: var(--max-w); margin: 0 auto; }
.blog-index-header { text-align: center; padding: var(--3xl) var(--lg) var(--lg); }
.blog-index-header h1 { margin-bottom: var(--xs); }
.blog-index-header p { color: var(--text-light); font-size: 1.05rem; }
.blog-list { display: flex; flex-direction: column; gap: var(--md); margin-top: var(--xl); }
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card {
  background: var(--bg-card);
  padding: var(--xl);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.blog-card-link:hover .blog-card { border-color: var(--border-hover); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card h2 { font-size: 1.2rem; margin-top: 0; margin-bottom: var(--xs); color: var(--text); }
.blog-card-link:hover .blog-card h2 { color: var(--brand); }
.blog-excerpt { color: var(--text-light); font-size: 0.92rem; line-height: 1.6; margin-bottom: var(--sm); }
.blog-meta { font-size: 0.82rem; color: var(--text-3); }

.blog-post { max-width: var(--max-w); margin: 0 auto; }
.blog-header { text-align: center; padding: var(--3xl) var(--lg) var(--md); }
.blog-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: var(--sm); }
.blog-header .blog-meta { display: flex; justify-content: center; gap: 0.5rem; color: var(--text-3); font-size: 0.88rem; margin-bottom: var(--lg); }
.blog-content { padding: 0 var(--lg) var(--lg); line-height: 1.75; }
.blog-content h2 { margin-top: var(--2xl); }
.blog-content h3 { margin-top: var(--xl); }
.blog-content p { color: var(--text-2); margin-bottom: var(--md); }
.blog-content img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
  border-radius: var(--r-md);
  margin: var(--lg) auto;
  display: block;
  box-shadow: var(--shadow);
  object-fit: contain;
}
.blog-content .img-row { display: flex; gap: var(--lg); flex-wrap: wrap; justify-content: center; margin: var(--lg) 0; }
.blog-content .img-row img {
  max-width: 260px;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.blog-content blockquote { border-left: 3px solid var(--brand); padding: 0.5rem 1rem; margin: var(--lg) 0; background: var(--brand-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.blog-content blockquote p { margin: 0; color: var(--text); }
.blog-content ul, .blog-content ol { color: var(--text-2); }
.blog-content strong { color: var(--text); }
.blog-content a { color: var(--brand); }
.blog-nav { text-align: center; padding: var(--2xl) 0; border-top: 1px solid var(--border); margin-top: var(--xl); }
.back-home { color: var(--brand); font-weight: 600; }
.back-home:hover { color: var(--brand-dark); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
  .feature-highlights { grid-template-columns: 1fr; gap: var(--2xl); }
  .feature-highlights.reverse { direction: ltr; }
  .feature-highlights.reverse > * { direction: ltr; }
  .highlight-media { order: -1; }
  .footer-content { grid-template-columns: 1fr; gap: var(--2xl); }
  .footer-links-row { grid-template-columns: repeat(2, 1fr); }
  .hero-content-row { grid-template-columns: 1fr; gap: var(--3xl); text-align: center; }
  .hero-text-col { max-width: 600px; margin: 0 auto; }
  .hero-with-live-demo .hero-badge,
  .hero-with-live-demo h1,
  .hero-with-live-demo .hero-subtitle,
  .hero-with-live-demo .hero-cta-group,
  .hero-with-live-demo .social-proof {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero-with-live-demo .social-proof-item { padding: 0 var(--xl); }
  .hero-with-live-demo .social-proof-item:not(:last-child)::after { left: auto; right: 0; }
  .hero-demo-col { min-height: 420px; }
  .hero-demo-stack { max-width: 300px; height: 400px; }
  .hero-demo-stack .hero-video-wrap { top: 0; right: -10px; max-width: 190px; }
  .hero-demo-stack .hero-mockup-wrap { top: 50px; left: -10px; max-width: 210px; }
  .hero-demo-stack .video-frame { max-width: 190px; }
  .hero-demo-stack .iphone-frame { max-width: 210px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--md);
    gap: 2px;
    transform: translateY(-200%);
    transition: transform var(--t);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav-menu.active { transform: translateY(0); }
  .nav-link { padding: 10px 12px; width: 100%; font-size: 0.95rem; }
  .nav-link:hover { background: rgba(0,0,0,0.05); }
  .nav-cta { width: fit-content; margin-top: var(--sm); }
  .nav-item.dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    min-width: unset;
    grid-template-columns: repeat(2, 1fr);
    background: rgba(0,0,0,0.02);
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-top: 4px;
    padding: var(--sm);
    width: 100%;
  }
  .nav-item.dropdown.open .dropdown-menu { display: grid; }
  .dropdown-card { padding: var(--sm); }
  .coming-soon-icon { width: 80px; height: 80px; }
  .coming-soon-icon svg { width: 40px; height: 40px; }
  .notify-form { width: 100%; padding: 6px; }
  .notify-form input[type="email"] { min-width: 0; width: 100%; text-align: center; }
  .platform-links { gap: var(--sm); }
  .features-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; }
  .footer-links-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--xs); text-align: center; }
  .blog-content .img-row img { max-width: 100%; }
  .hero-section { padding: var(--3xl) var(--lg) var(--2xl); }
  .social-proof { gap: var(--lg); }
  .social-proof-item { padding: 0 var(--lg); }
  .social-proof-item:not(:last-child)::after { display: none; }
  .navbar { max-width: calc(100% - 28px); height: 54px; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-section { padding: var(--2xl) var(--md); }
  .feature-card { padding: var(--lg); }
  .cta-button { padding: 12px 24px; font-size: 0.95rem; }
  .iphone-frame { max-width: 240px; border-radius: 38px; padding: 10px; }
  .iphone-frame::before { inset: 8px; border-radius: 32px; }
  .iphone-screen { border-radius: 30px; }
  .iphone-notch { width: 76px; height: 20px; top: 12px; }
}
/* Ensure all scroll-animated elements retain opacity after animation completes */
.feature-card.animate-in,
.step.animate-in,
.audience-card.animate-in,
.blog-card.animate-in,
details.animate-in,
.feature-highlights.animate-in,
.highlight-text.animate-in,
.iphone-frame.animate-in,
.cross-device-cta.animate-in,
.footer-content.animate-in { opacity: 1 !important; }
