/* ClassCue — marketing site
   Navy brand, WhatsApp-accented demo mockups. Self-contained, no build step. */

:root {
  --navy-900: #0a1a33;
  --navy-800: #0e2242;
  --navy-700: #143059;
  --navy-600: #1d4173;
  --ink: #0b1f3a;
  --slate: #55607a;
  --mist: #eef2f8;
  --line: #dde5f0;
  --white: #ffffff;
  --accent: #2bd07a;      /* fresh green — nods to WhatsApp without copying it */
  --accent-600: #17a862;
  --amber: #ffb703;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(10, 26, 51, 0.08), 0 1px 2px rgba(10, 26, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(10, 26, 51, 0.14);
  --shadow-lg: 0 30px 70px rgba(10, 26, 51, 0.28);

  /* WhatsApp UI palette (for the demo phones only) */
  --wa-header: #075e54;
  --wa-bg: #e5ddd5;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-tick: #34b7f1;
  --wa-meta: #667781;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }

.container { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.5em; border-radius: 999px; font-weight: 700;
  text-decoration: none; font-size: 1rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: #06331e; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #34dd85; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 51, 0.92); backdrop-filter: blur(10px);
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; color: var(--white); }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: 0.55em 1.1em; font-size: 0.9rem; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,208,122,0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(29,65,115,0.5), transparent 55%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  background: rgba(43,208,122,0.14); color: #9defc2; border: 1px solid rgba(43,208,122,0.3);
  padding: 0.35em 0.9em; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.02em; margin-bottom: 1.2rem;
}
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,0.86); max-width: 34ch; }
@media (max-width: 900px) { .hero p.lead { max-width: none; margin-inline: auto; } }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-trust { margin-top: 1.6rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-trust { justify-content: center; } }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4em; }

.hero-phones { display: flex; justify-content: center; gap: 1.2rem; position: relative; }
.hero-phones .phone:nth-child(2) { transform: translateY(28px) rotate(2deg); }
@media (max-width: 560px) { .hero-phones .phone:nth-child(2) { display: none; } }

/* ---------- Phone / WhatsApp mockup ---------- */
.phone {
  width: 300px; max-width: 78vw; background: #111b21; border-radius: 34px;
  padding: 11px; box-shadow: var(--shadow-lg); flex-shrink: 0; border: 1px solid rgba(255,255,255,0.06);
}
.phone-screen { border-radius: 26px; overflow: hidden; background: var(--wa-bg); }
.wa-header {
  background: var(--wa-header); color: #fff; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.85rem;
}
.wa-back { font-size: 1.2rem; opacity: 0.9; }
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #128c7e; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 0.95rem; flex-shrink: 0;
}
.wa-title { display: flex; flex-direction: column; line-height: 1.1; }
.wa-title strong { font-size: 0.95rem; }
.wa-title small { font-size: 0.72rem; opacity: 0.85; }
.wa-header .wa-icons { margin-left: auto; opacity: 0.85; letter-spacing: 0.3rem; }

.wa-body {
  background-color: var(--wa-bg);
  background-image:
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
  padding: 0.9rem 0.7rem; display: flex; flex-direction: column; gap: 0.5rem;
  min-height: 360px;
}
.wa-day { align-self: center; background: #d0e8f2; color: #4a6572; font-size: 0.68rem; font-weight: 600;
  padding: 0.2em 0.8em; border-radius: 8px; margin-bottom: 0.2rem; box-shadow: var(--shadow-sm); }
.bubble {
  max-width: 82%; padding: 0.5rem 0.7rem 0.42rem; border-radius: 10px; font-size: 0.86rem;
  position: relative; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); color: #111b21;
}
.bubble .time { display: block; text-align: right; font-size: 0.62rem; color: var(--wa-meta); margin-top: 0.15rem; }
.bubble.in { background: var(--wa-in); align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 2px; }
.bubble.out .time::after { content: " ✓✓"; color: var(--wa-tick); }
.bubble strong { font-weight: 700; }
.bubble ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.bubble li { margin-bottom: 0.1rem; }
.wa-input {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.6rem; background: #f0f2f5;
}
.wa-input .field { flex: 1; background: #fff; border-radius: 999px; padding: 0.5rem 0.9rem; color: #8696a0; font-size: 0.82rem; }
.wa-input .mic { width: 34px; height: 34px; border-radius: 50%; background: var(--wa-header); color: #fff; display: grid; place-items: center; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 3rem; }
.section-head .kicker { color: var(--accent-600); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.section-head p { color: var(--slate); font-size: 1.08rem; }

.bg-mist { background: var(--mist); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(43,208,122,0.14); display: grid; place-items: center; margin-bottom: 1rem; }
.card p { color: var(--slate); margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 1.4rem; width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy-800); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.step h3 { margin-top: 0.6rem; }
.step p { color: var(--slate); margin: 0; }

/* Demo gallery */
.demo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; justify-items: center; align-items: start; }
@media (max-width: 900px) { .demo-gallery { grid-template-columns: 1fr; } }
.demo-item { text-align: center; }
.demo-item .caption { margin-top: 1rem; font-weight: 700; color: var(--ink); }
.demo-item .sub { color: var(--slate); font-size: 0.9rem; }

/* Coming soon */
.soon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .soon-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .soon-grid { grid-template-columns: 1fr; } }
.pill-card { background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 1.3rem; border: 1px solid rgba(255,255,255,0.08); }
.pill-card .tag { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.5rem; }
.pill-card p { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.9rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust-item .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; }
.trust-item h3 { margin-bottom: 0.2rem; }
.trust-item p { color: var(--slate); margin: 0; font-size: 0.95rem; }

/* CTA */
.cta {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-600));
  color: #fff; border-radius: 28px; padding: clamp(2.5rem, 5vw, 4rem); text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta p { color: rgba(255,255,255,0.85); max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta form { display: flex; flex-direction: column; gap: 0.7rem; max-width: 440px; margin: 0 auto; align-items: stretch; }
.cta input, .cta textarea {
  width: 100%; padding: 0.85em 1.1em; border-radius: 14px; border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 1rem; font-family: inherit; resize: vertical;
}
.cta input::placeholder, .cta textarea::placeholder { color: rgba(255,255,255,0.55); }
.cta input:focus, .cta textarea:focus { outline: none; border-color: var(--accent); }
.cta .btn-primary { justify-content: center; padding-block: 0.9em; }
.cta .cf-turnstile { display: flex; justify-content: center; min-height: 65px; }
.cta small { display: block; margin-top: 1rem; color: rgba(255,255,255,0.55); font-size: 0.82rem; }
/* Honeypot — off-screen, never shown, bots fill it. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cta .status { margin-top: 0.8rem; font-weight: 600; }
.cta .status.ok { color: var(--accent); }
.cta .status.err { color: #ffb0b0; }

/* Footer */
footer.site {
  background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; font-size: 0.9rem;
}
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.8rem; }
.footer-cols a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.5rem; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: rgba(255,255,255,0.5); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
