/* ===========================================================
   AnswerNotebook AI — Promo site styles
   Sakura Premium palette (from app theme)
   =========================================================== */

:root {
  /* Brand colors — matched to app's Sakura palette */
  --primary: #FF5C9F;
  --primary-dark: #E75480;
  --primary-light: #FF7DB4;
  --secondary: #FFB7D5;

  --bg: #FFF7FA;
  --bg-alt: #FFE9F1;
  --surface: #FFFFFF;
  --surface-alt: #FFF1F6;

  --text: #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;

  --border: rgba(231, 84, 128, 0.14);
  --shadow-tint: rgba(231, 84, 128, 0.18);

  --hero-grad: linear-gradient(180deg, #FFE3EE 0%, #FFF1F6 45%, #FFF7FA 100%);
  --primary-grad: linear-gradient(135deg, #FF7DB4 0%, #FF5C9F 50%, #E75480 100%);

  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1140px;

  --shadow-sm: 0 4px 16px rgba(231, 84, 128, 0.10);
  --shadow-md: 0 12px 32px rgba(231, 84, 128, 0.14);
  --shadow-lg: 0 24px 60px rgba(231, 84, 128, 0.20);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }

.btn-primary {
  background: var(--primary-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 92, 159, 0.36);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 92, 159, 0.46); }

.btn-ghost {
  background: var(--surface);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 8px 0;
}
.nav.scrolled {
  background: rgba(255, 247, 250, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(231, 84, 128, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.4px; }
.brand-mark { font-size: 22px; }
.brand-ai {
  background: var(--primary-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-left: 2px;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary-grad);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 92, 159, 0.32);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  background: var(--hero-grad);
  padding: 150px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.pill {
  display: inline-block;
  background: var(--surface);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.4px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.5px; }
.stat span { font-size: 13.5px; color: var(--text-muted); font-weight: 500; }

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 92, 159, 0.32), transparent 60%);
  filter: blur(30px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 570px;
  background: #1A1A1A;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #1A1A1A;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--hero-grad);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* Screenshot placeholder (swap for real asset) */
.screen-placeholder { padding: 44px 18px 18px; height: 100%; position: relative; }
.sp-bar { width: 40%; height: 6px; background: var(--secondary); border-radius: 6px; margin: 0 auto 22px; }
.sp-title { font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.sp-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.sp-card-2 { animation-delay: .3s; }
.sp-q { font-weight: 700; font-size: 13px; margin-bottom: 10px; color: var(--primary-dark); }
.sp-line { height: 7px; background: var(--surface-alt); border-radius: 6px; margin-bottom: 7px; }
.sp-line.short { width: 60%; }
.sp-fab {
  position: absolute;
  bottom: 22px; right: 22px;
  width: 52px; height: 52px;
  background: var(--primary-grad);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 300;
  box-shadow: 0 10px 22px rgba(255, 92, 159, 0.5);
}

/* ===========================================================
   MARQUEE / CHIPS
   =========================================================== */
.marquee-wrap { padding: 44px 0; background: var(--surface); }
.marquee-label { text-align: center; color: var(--text-muted); font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
}

/* ===========================================================
   SECTIONS
   =========================================================== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.section-head p { color: var(--text-secondary); margin-top: 14px; font-size: 16.5px; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.21,.6,.35,1), box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(255, 92, 159, 0.22);
  border-color: var(--secondary);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--surface-alt);
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--primary-grad);
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; }

/* Steps */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 18px; flex-wrap: wrap; }
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  flex: 1 1 240px;
  max-width: 300px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s cubic-bezier(.21,.6,.35,1), box-shadow .3s ease, border-color .3s ease;
}
.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(255, 92, 159, 0.22);
  border-color: var(--secondary);
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary-grad);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 18px rgba(255, 92, 159, 0.4);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.step:hover .step-num {
  transform: scale(1.12);
  box-shadow: 0 12px 26px rgba(255, 92, 159, 0.55);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 15px; }
.step-arrow { display: flex; align-items: center; font-size: 28px; color: var(--secondary); font-weight: 700; }

/* Apps showcase */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.21,.6,.35,1), box-shadow .3s ease, border-color .3s ease;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--primary-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.app-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(255, 92, 159, 0.24);
  border-color: var(--secondary);
}
.app-card:hover::before { transform: scaleX(1); }
.app-card .app-logo { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.app-card:hover .app-logo { transform: scale(1.08) rotate(-4deg); }
.app-card-featured {
  background: linear-gradient(160deg, #FFFFFF 0%, #FFF1F6 100%);
  border: 1.5px solid var(--secondary);
}
.app-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--primary-grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.app-badge-soon { background: var(--text-muted); }
.app-badge-live { background: #34C759; }
.app-logo {
  width: 64px; height: 64px;
  background: var(--surface-alt);
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 34px;
  margin-bottom: 18px;
}
.app-logo-jp { background: #FFE6E6; }
.app-logo-kr { background: #E6EEFF; }
.app-logo-img {
  padding: 0;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(231, 84, 128, 0.18);
}
.app-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.app-card p { color: var(--text-secondary); font-size: 15px; margin-bottom: 16px; }
.app-feats {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-feats li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.app-feats li::before {
  content: '🌸';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
}
.app-status {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.app-more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-dark);
  border-bottom: 1.5px solid var(--secondary);
  transition: color .2s ease, border-color .2s ease;
}
.app-more:hover { color: var(--primary); border-color: var(--primary); }

/* ===========================================================
   CTA
   =========================================================== */
.cta {
  background: var(--primary-grad);
  margin: 0 24px;
  border-radius: 36px;
  padding: 70px 24px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12), transparent 50%);
}
.cta-inner { position: relative; z-index: 1; max-width: 620px; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta p { font-size: 17px; opacity: 0.95; margin-bottom: 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1A1A1A;
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  transition: transform .2s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn-alt { background: #fff; color: #1A1A1A; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn-text small { font-size: 11px; opacity: 0.8; }
.store-btn-text strong { font-size: 17px; font-weight: 700; }

.cta-note { font-size: 14.5px; opacity: 0.92; margin-bottom: 0; }
.cta-note a { text-decoration: underline; font-weight: 700; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 92, 159, 0.18);
  border-color: var(--secondary);
}
.faq-item[open] { border-color: var(--secondary); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  font-weight: 400;
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--text-secondary); padding: 0 0 18px; font-size: 15px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: #1A1018; color: #fff; padding: 56px 0 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { flex: 1 1 260px; min-width: 240px; }
.footer-cols {
  flex: 2 1 460px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-logo-link { display: inline-block; margin-bottom: 16px; }
.footer-logo {
  width: 190px;
  max-width: 75%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.footer-logo:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(255, 92, 159, 0.28); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14.5px; max-width: 240px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); font-size: 14.5px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
}

/* ===========================================================
   PETALS (decorative)
   =========================================================== */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal {
  position: absolute;
  top: -30px;
  width: 14px; height: 14px;
  background: var(--secondary);
  border-radius: 0 100% 0 100%;
  opacity: 0.55;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(420deg); opacity: 0; }
}

/* ===========================================================
   REVEAL ANIMATION
   =========================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .steps { flex-direction: column; align-items: center; }
  .step { flex: none; width: 100%; max-width: 360px; }
  .step-arrow { transform: rotate(90deg); }
  .footer-brand { flex-basis: 100%; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 72px; right: 16px; left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 10px 6px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
  .nav.scrolled { background: rgba(255, 247, 250, 0.95); }

  .hero { padding: 120px 0 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-inner { gap: 28px; }
  .footer-cols { gap: 14px; }
  .cta { margin: 0 16px; padding: 54px 20px; }

  /* Mobile alignment polish */
  .container { padding: 0 18px; }
  .hero-copy { width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { width: 100%; }
  .hero-stats { gap: 14px; width: 100%; justify-content: space-between; }
  .stat { flex: 1; align-items: center; text-align: center; }
  .stat strong { font-size: 24px; }
  .stat span { font-size: 12.5px; }
  .section-head { margin-bottom: 40px; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; gap: 6px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 29px; letter-spacing: -0.8px; }
  .phone { width: 232px; height: 472px; }
  .hero-stats { gap: 10px; }
  .stat strong { font-size: 21px; }
  .btn { padding: 13px 20px; font-size: 14.5px; }
  .footer-logo { max-width: 88%; }
}

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


/* ===========================================================
   PREMIUM ENHANCEMENTS (Sakura theme — additive)
   =========================================================== */

/* Animated gradient text shimmer */
.gradient-text { background-size: 220% auto; animation: grad-shift 7s ease-in-out infinite; }
@keyframes grad-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Staggered reveal inside grids */
.feature-grid .feature-card:nth-child(3n+2),
.apps-grid .app-card:nth-child(3n+2),
.values-grid .value-card:nth-child(4n+2) { transition-delay: .08s; }
.feature-grid .feature-card:nth-child(3n),
.apps-grid .app-card:nth-child(3n),
.values-grid .value-card:nth-child(4n+3) { transition-delay: .16s; }
.values-grid .value-card:nth-child(4n) { transition-delay: .24s; }

/* ---------- Animated stats band ---------- */
.stats-band {
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.stats-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.sb-item { position: relative; }
.sb-item:not(:last-child)::after {
  content: '';
  position: absolute; right: -11px; top: 50%; transform: translateY(-50%);
  height: 46px; width: 1px; background: var(--border);
}
.sb-num {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1;
  background: var(--primary-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sb-label { color: var(--text-secondary); font-weight: 600; font-size: 14px; margin-top: 10px; }

/* ---------- "Why our apps" value cards ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.21,.6,.35,1), box-shadow .3s ease, border-color .3s ease;
}
.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(255, 92, 159, 0.22);
  border-color: var(--secondary);
}
.value-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--surface-alt);
  display: grid; place-items: center; font-size: 28px; margin-bottom: 16px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.value-card:hover .value-icon { transform: scale(1.08) rotate(-4deg); }
.value-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.value-card p { color: var(--text-secondary); font-size: 14.5px; }

/* ---------- Education chip marquee ---------- */
.chip-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.chip-track { display: flex; gap: 12px; width: max-content; animation: chip-scroll 34s linear infinite; }
.chip-track .chip { flex-shrink: 0; }
.chip-marquee:hover .chip-track { animation-play-state: paused; }
@keyframes chip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 940px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stats-band-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .sb-item:nth-child(2)::after { display: none; }
}
@media (max-width: 520px) {
  .values-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .chip-track { animation: none; }
}
