/* Nivaaso public website */
:root {
  --navy: #0B1E5B;
  --navy-2: #12297A;
  --brand: #1C3FAA;
  --brand-2: #3D63D8;
  --brand-tint: #EDF1FC;
  --gold: #D9A441;
  --gold-tint: #FBF3E1;
  --leaf: #3FA65B;
  --leaf-tint: #EAF6EE;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --danger: #DC2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(11, 30, 91, .18);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
}

*, *::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.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .98rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(28, 63, 170, .28); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px rgba(217, 164, 65, .35); }
.btn-gold:hover { background: #E4B358; color: var(--navy); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.25rem var(--font-display); letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem;
  background: none; border: 0; cursor: pointer; font-family: var(--font);
}
.nav-links a:hover, .nav-links a.active, .nav-drop > button:hover { color: var(--brand); background: var(--brand-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-drop { position: relative; }
.nav-drop-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 290px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.nav-drop-menu a:hover { background: var(--bg-soft); }
.nav-drop-menu i { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.nav-drop-menu small { display: block; color: var(--muted); font-size: .8rem; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.1rem; cursor: pointer; }

.mobile-menu { display: none; }
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 0; z-index: 49; overflow-y: auto;
    background: #fff; padding: 16px 20px 32px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
  .mobile-menu .menu-label { margin: 22px 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 99, 216, .55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(63, 166, 91, .25), transparent 60%),
    linear-gradient(160deg, #0B1E5B 0%, #12297A 55%, #0B1E5B 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: clamp(40px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 500;
}
.hero-badge i { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0 0 48px; list-style: none; font-size: .92rem; color: rgba(255, 255, 255, .85); }
.hero-points i { color: var(--leaf); margin-right: 6px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.phone {
  position: relative; width: 270px; aspect-ratio: 9 / 18.7; border-radius: 40px; padding: 10px;
  background: #0A0F1F; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3350;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; }
.phone::before { content: ''; position: absolute; top: 4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; background: #1E2640; border-radius: 50%; z-index: 2; }
.hero-visual .phone-main { z-index: 2; transform: translateY(40px); }
.hero-visual .phone-back { position: absolute; width: 215px; right: 0; bottom: 150px; transform: rotate(9deg); opacity: .85; }
.hero-visual .phone-back-2 { position: absolute; width: 215px; left: 0; bottom: 140px; transform: rotate(-9deg); opacity: .85; }
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 600;
}
.float-chip i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.float-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.chip-1 { top: 70px; left: 0; }
.chip-1 i { background: var(--leaf-tint); color: var(--leaf); }
.chip-2 { bottom: 130px; right: -6px; }
.chip-2 i { background: var(--gold-tint); color: #B07A16; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero .lead { margin: 0 auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { min-height: 0; padding-top: 10px; }
  .hero-visual .phone-back, .hero-visual .phone-back-2 { display: none; }
  .float-chip { display: none; }
  .phone { width: 240px; }
  .hero-points { margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- trust strip */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 20px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item i { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font-size: 1.1rem; }
.trust-item strong { display: block; color: var(--ink); font-size: .98rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .trust-item { padding: 18px 4px; }
}

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 20px; }
.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: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .09); border-color: #CBD5E1; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card h3 { margin-top: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem;
  background: var(--brand-tint); color: var(--brand);
}
.icon.gold { background: var(--gold-tint); color: #B07A16; }
.icon.leaf { background: var(--leaf-tint); color: var(--leaf); }
.icon.rose { background: #FDECEF; color: #BE185D; }
.icon.sky { background: #E6F4FB; color: #0284C7; }
.icon.violet { background: #F1ECFE; color: #7C3AED; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .78rem; font-weight: 500; color: var(--ink-2); }

/* ---------------------------------------------------------------- feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.reverse .split-media { order: -1; }
.split-media {
  position: relative; display: flex; justify-content: center; padding: 36px 0;
  border-radius: 28px; background: linear-gradient(160deg, var(--brand-tint), #fff 70%);
}
.split-media.gold { background: linear-gradient(160deg, var(--gold-tint), #fff 70%); }
.split-media.leaf { background: linear-gradient(160deg, var(--leaf-tint), #fff 70%); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks i { color: var(--leaf); margin-top: 5px; }
.checks strong { color: var(--ink); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font: 800 1rem var(--font-display);
}
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------------------------------------------------------------- band / cta */
.band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 5vw, 56px); color: #fff;
  background: radial-gradient(600px 300px at 100% 0, rgba(217, 164, 65, .3), transparent 60%), linear-gradient(135deg, var(--navy), var(--brand));
}
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); }
.band-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.qr { background: #fff; border-radius: 18px; padding: 14px; text-align: center; color: var(--ink); font-size: .8rem; font-weight: 600; }
.qr img { width: 140px; height: 140px; margin: 0 auto 6px; }
@media (max-width: 760px) {
  .band-grid { grid-template-columns: 1fr; text-align: center; }
  .band .hero-actions { justify-content: center; }
  .qr { display: none; }
}

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .price { font: 800 2rem var(--font-display); color: var(--ink); margin: 6px 0 2px; }
.plan .price small { font-size: .9rem; font-weight: 500; color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form-card { background: #fff; border-radius: 24px; padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: 400 .97rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(28, 63, 170, .12); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-msg { display: none; margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: .9rem; }
.form-msg.ok { display: block; background: #ECFDF5; color: #065F46; }
.form-msg.err { display: block; background: #FEF2F2; color: #991B1B; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------------------------------------------------------------- faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 30, 91, .55); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal .form-card { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg-soft); cursor: pointer; font-size: 1rem; color: var(--ink); }

/* ---------------------------------------------------------------- page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero .lead { max-width: 680px; margin: 0 auto; }
.page-hero .hero-actions { justify-content: center; margin-bottom: 0; }
.prose { max-width: 760px; margin: 0 auto; font-size: 1.04rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #0A1640; color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
