:root {
  --ink: #0e1a33; --ink-2: #44506a; --muted: #6b7690; --bg: #f7f5ef; --card: #ffffff; --line: #e4e0d4;
  --brand: #0f766e; --brand-d: #0b5a54; --brand-l: #dff3ef; --gold: #f2a900; --gold-l: #fff3d1; --night: #0b1730;
  --radius: 18px; --shadow: 0 18px 50px -20px rgba(14, 26, 51, .35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.lead { font-size: 1.15rem; max-width: 62ch; }
section { padding: 88px 0; }
.center { text-align: center; } .center .lead { margin-inline: auto; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 239, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.02em; }
.logo span:last-child, .nav .btn { white-space: nowrap; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.logo b { color: var(--brand); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.nav ul a:hover { color: var(--brand); }
.menu-btn { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* hero */
.hero { padding: 70px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 50px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, var(--gold-l) 62%); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.chip::before { content: '✓'; color: var(--brand); margin-right: 6px; font-weight: 800; }
.hero-art { position: relative; }
.hero-art .browser { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
.hero-art .phone { position: absolute; right: -14px; bottom: -34px; width: 31%; transform: rotate(4deg); }

/* frames */
.browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.browser::before { content: ''; display: block; height: 30px; background: #eceae1 radial-gradient(circle at 16px 15px, #ec6a5e 5px, transparent 6px), radial-gradient(circle at 34px 15px, #f4bf4f 5px, transparent 6px), radial-gradient(circle at 52px 15px, #61c554 5px, transparent 6px); }
.browser img { width: 100%; }
.phone { border-radius: 30px; background: #0b1730; padding: 8px; box-shadow: var(--shadow); }
.phone img { border-radius: 23px; width: 100%; }

/* strip */
.strip { background: var(--night); color: #fff; padding: 34px 0; }
.strip .wrap { 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(--gold); letter-spacing: -.02em; }
.strip span { color: #b9c3dc; font-size: .95rem; }

/* feature grid */
.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-l); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; }
.feature p { margin: 0; font-size: .96rem; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); transition: .2s; }

/* showcase rows */
.show { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-top: 70px; }
.show.rev { grid-template-columns: 1.15fr 1fr; } .show.rev .show-text { order: 2; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230f766e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.stack { position: relative; padding-bottom: 40px; }
.stack .browser + .browser { position: absolute; width: 62%; right: -10px; bottom: -10px; }

/* roles */
.roles { background: var(--night); color: #fff; }
.roles h2, .roles h3 { color: #fff; } .roles p, .roles li { color: #c4cde3; }
.role-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 30px; }
.role-tabs button { background: transparent; color: #c4cde3; border: 1.5px solid #2b3a62; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; }
.role-tabs button[aria-selected=true] { background: var(--gold); color: #3a2a00; border-color: var(--gold); }
.role-panel { display: none; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: center; }
.role-panel.on { display: grid; }
.role-panel .ticks li { color: #dbe2f3; }
.role-panel .ticks li::before { background-color: rgba(255,255,255,.12); }

/* websites */
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 42px; }
.tpl figcaption { padding: 14px 4px 0; }
.tpl b { display: block; font-size: 1.05rem; } .tpl span { color: var(--muted); font-size: .92rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.plan { border-radius: var(--radius); padding: 28px; background: #fff; border: 1.5px solid var(--line); }
.plan.hot { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.plan.hot::after { content: 'Most popular'; position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }

/* mobile */
.phones { display: flex; gap: 22px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.phones .phone { width: 220px; }
.phones .phone:nth-child(2) { transform: translateY(-22px); }
.mobile-band { background: linear-gradient(135deg, var(--brand-l), var(--gold-l)); }

/* steps / faq */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: '–'; }
details p { margin: 12px 0 0; }

/* contact */
.cta { background: var(--night); color: #fff; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.cta h2 { color: #fff; } .cta p { color: #c4cde3; }
form { display: grid; gap: 12px; }
input, textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #2b3a62; background: #121f40; color: #fff; font: inherit; }
input::placeholder, textarea::placeholder { color: #8d9ac0; }
input:focus, textarea:focus { outline: 2px solid var(--gold); }
.note { font-size: .85rem; color: #9fb0d6; margin: 0; }
footer { padding: 46px 0 60px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

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

@media (max-width: 980px) {
  section { padding: 64px 0; }
  .hero-grid, .show, .show.rev, .role-panel, .cta { grid-template-columns: 1fr; }
  .show.rev .show-text { order: 0; }
  .g3, .g4, .tpls, .plans, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-art .browser { transform: none; } .hero-art .phone { right: 4px; width: 28%; }
  .nav ul { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  .nav ul.open { display: flex; } .menu-btn { display: block; }
  .cta { padding: 34px 24px; }
}
@media (max-width: 620px) {
  .nav .wrap { gap: 10px; } .logo { font-size: 1.1rem; } .nav .btn-sm { padding: 9px 14px; font-size: .85rem; }
  .g3, .g4, .tpls, .plans, .steps, .g2 { grid-template-columns: 1fr; }
  .phones .phone { width: 42%; } .phones .phone:nth-child(2) { transform: none; }
  .btn { padding: 13px 22px; }
}

/* modules and institution types */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.mod { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.mod b { display: block; margin-bottom: 4px; } .mod span { color: var(--ink-2); font-size: .9rem; }
.insts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.inst { border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; opacity: .6; } .inst.on { opacity: 1; border-color: var(--brand); background: var(--brand-l); }
.inst b { display: block; } .inst span { font-size: .85rem; color: var(--ink-2); }
.browser.crop img { max-height: 520px; object-fit: cover; object-position: top; }
@media (max-width: 980px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mods, .insts { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
@media (max-width: 480px) { .nav a.btn-primary[href="#demo"] { display: none; } }
