/* ============================================================
   SmartPerfect CBT — Main Stylesheet
   ============================================================ */
:root {
  --green:    #00c16e;
  --green-dk: #00a05a;
  --green-lt: #e4fff3;
  --ink:      #0a0f0d;
  --ink2:     #1a2620;
  --muted:    #6b7f75;
  --surface:  #f4faf7;
  --white:    #ffffff;
  --gold:     #f5a623;
  --red:      #e03e3e;
  --blue:     #3b82f6;
  --radius:   16px;
  --shadow:   0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:0 16px 48px rgba(0,0,0,.14);
}

*   { margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ font-family:'DM Sans',sans-serif; background:var(--white); color:var(--ink); overflow-x:hidden; }
h1,h2,h3,h4,h5 { font-family:'Syne',sans-serif; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; }

/* ── TICKER ─────────────────────────────────────────────────── */
.ticker { background:var(--green); display:flex; align-items:center; gap:14px; padding:9px 5%; overflow:hidden; }
.ticker-label { background:rgba(0,0,0,.18); color:#fff; font-size:.7rem; font-weight:800; padding:4px 10px; border-radius:6px; white-space:nowrap; font-family:'Syne',sans-serif; }
.ticker-scroll { overflow:hidden; flex:1; }
.ticker-track { display:flex; gap:48px; animation:scroll-left 30s linear infinite; white-space:nowrap; }
@keyframes scroll-left { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item { font-size:.83rem; color:#fff; font-weight:500; }
.ticker-item::before { content:'◆'; margin-right:8px; opacity:.65; }

/* ── NAV ────────────────────────────────────────────────────── */
.nav { position:sticky; top:0; z-index:100; background:rgba(255,255,255,.94); backdrop-filter:blur(18px); border-bottom:1px solid rgba(0,0,0,.07); }
.nav-inner { max-width:1240px; margin:0 auto; padding:0 5%; height:66px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.nav-logo-img { height:38px; width:auto; }
.nav-links { display:flex; align-items:center; gap:28px; }
.nav-link { font-size:.88rem; font-weight:600; color:var(--muted); transition:color .2s; }
.nav-link:hover,.nav-link.active { color:var(--green); }
.nav-cta { display:flex; gap:10px; }
.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.nav-toggle span { width:22px; height:2px; background:var(--ink); border-radius:2px; display:block; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn { display:inline-flex; align-items:center; gap:8px; border-radius:10px; font-family:'Syne',sans-serif; font-weight:700; cursor:pointer; text-decoration:none; transition:all .22s; border:none; }
.btn-green  { background:var(--green); color:#fff; }
.btn-green:hover { background:var(--green-dk); transform:translateY(-1px); box-shadow:0 6px 20px rgba(0,193,110,.32); }
.btn-ghost  { background:transparent; border:2px solid var(--ink); color:var(--ink); }
.btn-ghost:hover { background:var(--ink); color:#fff; }
.btn-dark   { background:var(--ink); color:#fff; }
.btn-dark:hover { background:var(--ink2); }
.btn-outline-green { background:transparent; border:2px solid var(--green); color:var(--green); }
.btn-outline-green:hover { background:var(--green); color:#fff; }
.btn-sm  { padding:9px 20px; font-size:.82rem; }
.btn-md  { padding:12px 26px; font-size:.9rem; }
.btn-lg  { padding:15px 34px; font-size:1rem; border-radius:12px; }
.btn-xl  { padding:18px 40px; font-size:1.05rem; border-radius:14px; }

/* ── SECTIONS ───────────────────────────────────────────────── */
section { padding:96px 5%; }
.section-inner { max-width:1200px; margin:0 auto; }
.section-label { font-family:'Syne',sans-serif; font-size:.72rem; font-weight:700; color:var(--green); letter-spacing:.14em; text-transform:uppercase; margin-bottom:12px; display:block; }
.section-title { font-size:clamp(1.9rem,3.2vw,2.8rem); font-weight:800; color:var(--ink); line-height:1.15; margin-bottom:14px; }
.section-sub { color:var(--muted); font-size:1rem; line-height:1.75; max-width:560px; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero { min-height:calc(100vh - 113px); display:flex; align-items:center; padding:80px 5% 60px; background:linear-gradient(135deg,#f0fff8 0%,#fff 55%,#f5fff9 100%); position:relative; overflow:hidden; }
.hero-orb  { position:absolute; width:640px; height:640px; border-radius:50%; background:radial-gradient(circle,rgba(0,193,110,.11) 0%,transparent 70%); right:-120px; top:-80px; pointer-events:none; }
.hero-orb2 { position:absolute; width:420px; height:420px; border-radius:50%; background:radial-gradient(circle,rgba(0,193,110,.07) 0%,transparent 70%); left:-80px; bottom:0; pointer-events:none; }
.hero-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; width:100%; position:relative; z-index:1; }
.hero-tag { display:inline-flex; align-items:center; gap:8px; background:var(--green-lt); color:var(--green-dk); font-size:.78rem; font-weight:700; padding:6px 14px; border-radius:99px; margin-bottom:22px; font-family:'Syne',sans-serif; }
.hero-pulse { width:7px; height:7px; background:var(--green); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.45;transform:scale(1.5)} }
.hero h1 { font-size:clamp(2.4rem,4.2vw,3.8rem); font-weight:800; line-height:1.08; color:var(--ink); margin-bottom:18px; }
.hero h1 .accent { color:var(--green); }
.hero-sub { font-size:1.08rem; color:var(--muted); line-height:1.75; margin-bottom:34px; max-width:500px; }
.hero-btns { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats { display:flex; gap:36px; }
.stat-num { font-family:'Syne',sans-serif; font-size:1.65rem; font-weight:800; color:var(--ink); }
.stat-lbl { font-size:.78rem; color:var(--muted); }

/* APP MOCKUP */
.app-window { background:var(--ink2); border-radius:20px; padding:22px; box-shadow:var(--shadow-lg); transform:perspective(900px) rotateY(-8deg) rotateX(3deg); transition:transform .5s; }
.app-window:hover { transform:perspective(900px) rotateY(-3deg) rotateX(1deg); }
.app-bar { display:flex; align-items:center; gap:7px; margin-bottom:14px; }
.app-dot { width:10px; height:10px; border-radius:50%; }
.score-card { background:linear-gradient(135deg,var(--green),var(--green-dk)); border-radius:14px; padding:18px; margin-bottom:10px; color:#fff; }
.score-num { font-family:'Syne',sans-serif; font-size:2.6rem; font-weight:800; line-height:1; }
.q-row { background:rgba(255,255,255,.06); border-radius:9px; padding:10px 12px; margin-bottom:7px; display:flex; align-items:center; gap:10px; }
.q-ico { width:26px; height:26px; border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:13px; flex-shrink:0; }
.q-text { font-size:.76rem; color:rgba(255,255,255,.72); flex:1; }
.q-badge { font-size:.68rem; font-weight:700; padding:3px 8px; border-radius:5px; }
.badge-g { background:rgba(0,193,110,.2); color:#00c16e; }
.badge-r { background:rgba(224,62,62,.2); color:#e03e3e; }
.sync-bar { background:rgba(0,193,110,.14); border:1px solid rgba(0,193,110,.28); border-radius:9px; padding:9px 13px; display:flex; align-items:center; gap:9px; margin-top:10px; }
.sync-dot { width:7px; height:7px; background:var(--green); border-radius:50%; animation:pulse 1.5s infinite; }
.sync-txt { font-size:.73rem; color:#00c16e; font-weight:600; }

/* ── FEATURES ───────────────────────────────────────────────── */
.features-bg { background:var(--surface); }
.feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:52px; }
.feat-card { background:#fff; border-radius:var(--radius); padding:30px; border:1px solid rgba(0,0,0,.06); transition:all .3s; }
.feat-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.feat-ico { width:50px; height:50px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:18px; }
.feat-card h3 { font-size:1.05rem; font-weight:700; margin-bottom:7px; }
.feat-card p { font-size:.87rem; color:var(--muted); line-height:1.65; }

/* ── EXAMS GRID ─────────────────────────────────────────────── */
.exams-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:48px; }
.exam-card { background:#fff; border-radius:14px; padding:22px 18px; border:2px solid rgba(0,0,0,.07); text-align:center; transition:all .25s; cursor:pointer; }
.exam-card:hover { border-color:var(--green); transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,193,110,.12); }
.exam-card.coming { opacity:.65; }
.exam-emoji { font-size:2rem; margin-bottom:10px; }
.exam-code { font-family:'Syne',sans-serif; font-weight:800; font-size:1.1rem; color:var(--ink); margin-bottom:4px; }
.exam-name { font-size:.76rem; color:var(--muted); line-height:1.4; }
.exam-country { font-size:.68rem; font-weight:700; margin-top:8px; padding:3px 9px; border-radius:99px; display:inline-block; }
.tag-ng { background:#e6fff4; color:var(--green-dk); }
.tag-int { background:#eff6ff; color:var(--blue); }
.coming-badge { font-size:.65rem; font-weight:800; background:#fff8e6; color:var(--gold); padding:2px 8px; border-radius:6px; margin-top:6px; display:inline-block; }

/* ── DOWNLOAD ───────────────────────────────────────────────── */
.download-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:52px; }
.dl-card { border-radius:20px; overflow:hidden; border:2px solid rgba(0,0,0,.08); transition:all .3s; }
.dl-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.dl-header { padding:28px 30px; display:flex; align-items:center; gap:18px; }
.dl-platform-ico { font-size:3rem; }
.dl-platform-name { font-family:'Syne',sans-serif; font-weight:800; font-size:1.3rem; }
.dl-platform-sub { font-size:.83rem; color:var(--muted); }
.dl-body { padding:20px 30px 28px; background:#fff; }
.dl-meta { display:flex; gap:20px; margin-bottom:20px; flex-wrap:wrap; }
.dl-meta-item { font-size:.8rem; color:var(--muted); display:flex; align-items:center; gap:5px; }
.dl-meta-item strong { color:var(--ink); font-weight:700; }
.dl-features { list-style:none; margin-bottom:22px; display:flex; flex-direction:column; gap:7px; }
.dl-features li { font-size:.85rem; color:var(--muted); display:flex; align-items:center; gap:8px; }
.dl-features li::before { content:'✓'; color:var(--green); font-weight:800; flex-shrink:0; }
.coming-soon-overlay { background:var(--surface); border-radius:12px; padding:24px; text-align:center; }
.coming-soon-overlay h4 { font-size:1rem; margin-bottom:6px; }
.coming-soon-overlay p { font-size:.83rem; color:var(--muted); margin-bottom:16px; }
.notify-form { display:flex; gap:8px; }
.notify-form input { flex:1; padding:10px 14px; border:2px solid rgba(0,0,0,.1); border-radius:9px; font-size:.85rem; font-family:'DM Sans',sans-serif; outline:none; }
.notify-form input:focus { border-color:var(--green); }
.notify-form button { padding:10px 18px; background:var(--green); color:#fff; border:none; border-radius:9px; font-weight:700; cursor:pointer; font-size:.82rem; }

/* ── ACTIVATION ─────────────────────────────────────────────── */
.activate-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; margin-top:52px; }
.code-box { background:#fff; border-radius:20px; border:1px solid rgba(0,0,0,.08); padding:36px; box-shadow:var(--shadow); }
.code-segs { display:flex; gap:10px; margin:22px 0; }
.code-seg { width:100%; text-align:center; padding:16px 8px; border:2px solid rgba(0,0,0,.1); border-radius:12px; font-family:'Syne',sans-serif; font-size:1.2rem; font-weight:800; letter-spacing:.1em; background:var(--surface); outline:none; transition:border-color .2s; }
.code-seg:focus { border-color:var(--green); background:#fff; }
.code-dash { color:var(--muted); font-size:1.4rem; display:flex; align-items:center; }
.activate-btn { width:100%; padding:15px; background:var(--green); color:#fff; border:none; border-radius:12px; font-family:'Syne',sans-serif; font-weight:800; font-size:1rem; cursor:pointer; transition:all .22s; }
.activate-btn:hover { background:var(--green-dk); }
.activate-btn:disabled { background:#ccc; cursor:not-allowed; }
.result-box { border-radius:11px; padding:14px 18px; margin-top:16px; display:flex; align-items:flex-start; gap:12px; }
.result-success { background:#e4fff3; border:2px solid var(--green); }
.result-error   { background:#fff0f0; border:2px solid var(--red); }
.plans-stack { display:flex; flex-direction:column; gap:16px; }
.plan-card { border-radius:16px; padding:24px 26px; border:2px solid rgba(0,0,0,.08); background:#fff; position:relative; transition:border-color .25s; }
.plan-card.featured { border-color:var(--green); background:var(--green-lt); }
.plan-badge { position:absolute; top:-12px; right:20px; background:var(--gold); color:#fff; font-size:.68rem; font-weight:800; padding:4px 12px; border-radius:99px; font-family:'Syne',sans-serif; }
.plan-name  { font-family:'Syne',sans-serif; font-weight:800; font-size:1.1rem; margin-bottom:5px; }
.plan-price { font-size:1.9rem; font-weight:800; color:var(--green); font-family:'Syne',sans-serif; }
.plan-price sup { font-size:.95rem; }
.plan-price small { font-size:.78rem; color:var(--muted); font-weight:400; }
.plan-desc  { font-size:.83rem; color:var(--muted); margin:7px 0 14px; line-height:1.55; }

/* ── TEACHER ─────────────────────────────────────────────────── */
.teacher-dark { background:linear-gradient(135deg,var(--ink) 0%,var(--ink2) 100%); }
.teacher-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; margin-top:52px; }
.tf-list { display:flex; flex-direction:column; gap:20px; }
.tf-item { display:flex; gap:14px; }
.tf-ico { width:40px; height:40px; background:rgba(0,193,110,.14); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.tf-txt h4 { font-size:.93rem; font-weight:700; color:#fff; margin-bottom:4px; }
.tf-txt p { font-size:.83rem; color:rgba(255,255,255,.52); line-height:1.55; }
.teacher-preview { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:18px; padding:26px; }
.tp-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px; }
.tp-title { color:#fff; font-family:'Syne',sans-serif; font-weight:700; }
.tp-school { font-size:.76rem; color:var(--green); font-weight:600; margin-top:2px; }
.stu-row { display:flex; align-items:center; gap:12px; padding:9px 12px; background:rgba(255,255,255,.05); border-radius:9px; margin-bottom:7px; }
.stu-ava { width:30px; height:30px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:.68rem; font-weight:800; color:#fff; flex-shrink:0; }
.stu-name { font-size:.82rem; font-weight:600; color:#fff; flex:1; }
.stu-score { font-size:.82rem; font-weight:800; }
.stu-bar { flex:1; height:4px; background:rgba(255,255,255,.1); border-radius:99px; overflow:hidden; }
.stu-fill { height:100%; border-radius:99px; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section { background:linear-gradient(135deg,var(--green),var(--green-dk)); padding:80px 5%; text-align:center; }
.cta-section h2 { font-size:clamp(1.8rem,3vw,2.8rem); font-weight:800; color:#fff; margin-bottom:14px; }
.cta-section p { color:rgba(255,255,255,.82); font-size:1.02rem; margin-bottom:34px; }
.btn-white { background:#fff; color:var(--green); }
.btn-white:hover { background:rgba(255,255,255,.9); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background:var(--ink); padding:64px 5% 30px; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px; }
.footer-brand p { font-size:.86rem; color:rgba(255,255,255,.48); line-height:1.7; max-width:280px; }
.footer-social { display:flex; gap:12px; margin-top:16px; }
.footer-social a { width:34px; height:34px; background:rgba(255,255,255,.07); border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:14px; color:rgba(255,255,255,.55); transition:all .2s; }
.footer-social a:hover { background:var(--green); color:#fff; }
.footer-col h4 { font-family:'Syne',sans-serif; font-weight:700; font-size:.88rem; color:#fff; margin-bottom:16px; }
.footer-col a { display:block; color:rgba(255,255,255,.48); font-size:.84rem; margin-bottom:10px; transition:color .2s; }
.footer-col a:hover { color:var(--green); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:24px; display:flex; justify-content:space-between; font-size:.8rem; color:rgba(255,255,255,.35); }
.footer-love { color:var(--green); }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom:15px; }
.form-group label { display:block; font-size:.8rem; font-weight:600; color:var(--ink); margin-bottom:6px; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:12px 14px; border:2px solid rgba(0,0,0,.1); border-radius:10px; font-size:.9rem; font-family:'DM Sans',sans-serif; outline:none; transition:border-color .2s; background:var(--surface); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--green); background:#fff; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.submit-btn { width:100%; padding:14px; background:var(--green); color:#fff; border:none; border-radius:12px; font-family:'Syne',sans-serif; font-weight:800; font-size:.95rem; cursor:pointer; transition:all .22s; }
.submit-btn:hover { background:var(--green-dk); }
.alert { border-radius:10px; padding:12px 16px; font-size:.88rem; margin-bottom:16px; }
.alert-success { background:#e4fff3; color:var(--green-dk); border:1px solid rgba(0,193,110,.3); }
.alert-error   { background:#fff0f0; color:var(--red);      border:1px solid rgba(224,62,62,.3); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width:900px) {
  .hero-inner, .feat-grid, .exams-grid, .download-grid,
  .activate-grid, .teacher-grid, .footer-grid { grid-template-columns:1fr; }
  .exams-grid { grid-template-columns:repeat(2,1fr); }
  .nav-links { display:none; position:absolute; top:66px; left:0; right:0; background:#fff; border-bottom:1px solid rgba(0,0,0,.08); flex-direction:column; gap:0; padding:12px 0; box-shadow:var(--shadow); }
  .nav-links.open { display:flex; }
  .nav-link { padding:12px 5%; display:block; }
  .nav-toggle { display:flex; }
  .nav-cta { display:none; }
  section { padding:60px 5%; }
  .hero { padding:60px 5% 40px; }
  .hero-stats { gap:24px; }
}
@media (max-width:480px) {
  .exams-grid { grid-template-columns:1fr 1fr; }
  .code-segs { gap:6px; }
  .code-seg { font-size:1rem; padding:13px 6px; }
}
