/* NanoSoft Inc — NanoSchool marketing site */
:root {
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --ink-3: #6b7890;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-tint: #eaf2fd;
  --brand: #1565c0;
  --brand-dark: #0d3f86;
  --brand-ink: #ffffff;
  --accent: #f5a524;
  --ok: #1f9d55;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .08);
  --max: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--bg-tint);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: currentColor; }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--bg-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.logo:hover { text-decoration: none; }
.logo small { display: block; font-size: .7rem; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; margin-top: -2px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--bg-tint); }
.nav-links .btn { padding: 9px 16px; margin-left: 8px; font-size: .95rem; color: #fff; }
.nav-links .btn:hover { background: var(--brand-dark); color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, #dbe9fd 0%, transparent 60%),
    radial-gradient(700px 380px at -10% 110%, #fff3dc 0%, transparent 60%),
    var(--bg);
  padding: 72px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero .btn-row { margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; color: var(--ok); flex: none; }

.page-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--bg-tint), var(--bg)); text-align: center; }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.1rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
}

/* ── Product mockups (pure HTML/CSS, no screenshots) ─────── */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 60px -20px rgba(13, 63, 134, .28), var(--shadow);
  overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5dce7; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { background: #10305f; padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-side span { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mock-side span.on { background: var(--accent); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mock-tile b { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 600; }
.mock-tile em { font-style: normal; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.mock-chart { border: 1px solid var(--line); border-radius: 10px; padding: 12px; height: 120px; display: flex; align-items: flex-end; gap: 6%; }
.mock-chart span { flex: 1; background: linear-gradient(180deg, #5b9bec, var(--brand)); border-radius: 4px 4px 0 0; }
.mock-rows { display: grid; gap: 6px; }
.mock-rows span { height: 10px; border-radius: 5px; background: var(--bg-soft); }
.hero-visual { position: relative; }
.hero-phone { position: absolute; right: -14px; bottom: -36px; width: 150px; }
.mock-tile b, .mock-tile em { white-space: nowrap; overflow: hidden; text-overflow: clip; }
@media (max-width: 520px) {
  .mock-body { grid-template-columns: 56px 1fr; }
  .mock-main { padding: 10px; }
  .mock-tiles { gap: 6px; }
  .mock-tile { padding: 8px 6px; }
  .mock-tile em { font-size: .9rem; }
  .hero-phone { width: 110px; right: -6px; }
}

.phone {
  background: #0f1b2d; border-radius: 28px; padding: 9px;
  box-shadow: 0 24px 48px -16px rgba(15, 27, 45, .45);
}
.phone-screen { background: #fff; border-radius: 21px; overflow: hidden; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.phone-top { background: var(--brand); color: #fff; padding: 14px 12px 12px; font-size: .62rem; font-weight: 700; }
.phone-top small { display: block; opacity: .8; font-weight: 500; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; }
.phone-grid span { aspect-ratio: 1.15; border-radius: 9px; background: var(--bg-tint); position: relative; }
.phone-grid span::after { content: ""; position: absolute; left: 50%; top: 42%; width: 32%; aspect-ratio: 1; border-radius: 7px; transform: translate(-50%, -50%); background: var(--brand); opacity: .75; }
.phone-grid span:nth-child(2)::after { background: var(--accent); }
.phone-grid span:nth-child(3)::after { background: var(--ok); }
.phone-grid span:nth-child(5)::after { background: #8e44ad; }

/* ── Cards / grids ───────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d3dceb; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--bg-tint); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }
.icon.amber { background: #fff3dc; color: #b86e00; }
.icon.green { background: #e3f6ec; color: var(--ok); }
.icon.purple { background: #f1e8f8; color: #7b3fa0; }
.icon.red { background: #fde8e8; color: #c0392b; }
.icon.teal { background: #e0f5f5; color: #12817f; }

.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; color: var(--ink-2); font-size: .97rem; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px;
  background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Feature module blocks (features page) */
.module { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
.module h2 { font-size: 1.6rem; }
.module .checklist { grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin: 0; }
@media (max-width: 860px) {
  .module { grid-template-columns: 1fr; gap: 16px; }
  .module .checklist { grid-template-columns: 1fr; }
}

/* Jump links */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chips a {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: .9rem;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800;
}

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}
.phones { display: flex; justify-content: center; gap: 18px; }
.phones .phone { width: 170px; }
.phones .phone:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 520px) { .phones .phone { width: 128px; } .phones .phone:nth-child(3) { display: none; } }

/* Role tabs (app page) */
.role-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.role-tabs button {
  font: inherit; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
}
.role-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.role-panel[hidden] { display: none; }

/* Stats strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip b { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.strip span { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 22px; padding: 52px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 40px 24px; } }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1px solid #cfd8e6; border-radius: var(--radius-sm); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 3px solid #bcd6fa; border-color: var(--brand); }
textarea { min-height: 120px; resize: vertical; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-item b { display: block; }
.note { font-size: .88rem; color: var(--ink-3); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: #0b1626; color: #b8c3d6; padding: 56px 0 28px; margin-top: 0; }
.site-footer a { color: #dbe4f2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #8d9ab0; }
.footer-bottom { border-top: 1px solid #1f2d44; margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .4);
}
.wa-float svg { width: 30px; height: 30px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Real screenshots ── */
.mock-shot, .module-shot, .shot a { display: block; }
.mock-shot img, .module-shot img, .shot img { display: block; width: 100%; height: auto; }
.module-shot { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 48, 95, .10); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 48, 95, .08); }
.shot a { border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 14px 16px 18px; font-size: .95rem; color: var(--ink-2); }
.shot figcaption b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ── Legal pages ── */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.legal code { font-size: .9em; background: var(--bg-soft); padding: 1px 6px; border-radius: 6px; }
.legal a { color: var(--brand); }

/* ── Real app screenshots in phone frames ── */
.phone-real .phone-screen { aspect-ratio: 720 / 1450; display: block; }
.phone-real .phone-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.app-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.app-gallery figure { margin: 0; text-align: center; }
.app-gallery .phone { width: 100%; max-width: 230px; margin: 0 auto 16px; }
.app-gallery figcaption { color: var(--ink-2); font-size: .95rem; }
.app-gallery figcaption b { display: block; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 760px) { .app-gallery { grid-template-columns: 1fr; max-width: 280px; } }
