:root {
  --navy: #0b3a82;
  --navy-mid: #0a3274;
  --navy-deep: #082954;
  --navy-ink: #061a3a;
  --blue: #1769d1;
  --sky: #5ba7e8;
  --gold: #f5c518;
  --gold-deep: #c8a227;
  --ink: #172b4d;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --paper: #f6f8fc;
  --white: #ffffff;
  --ok: #15803d;
  --warn: #dc2626;
  --radius: 0;
  --shadow: 0 24px 60px rgba(6, 26, 58, 0.18);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--navy-ink);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 41, 84, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}
.brand img {
  height: 42px;
  width: auto;
  max-width: 180px;
  min-height: 0;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--gold); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-ink);
  box-shadow: 0 8px 20px rgba(245, 197, 24, .28);
}
.btn-gold:hover { background: #ffd34a; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy {
  background: var(--navy-deep);
  color: #fff;
}
.btn-outline {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(91,167,232,.18), transparent 60%),
    linear-gradient(180deg, #082954 0%, #0b3a82 55%, #082954 100%);
  color: #fff;
  padding: 56px 0 88px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px 0;
  height: 90px;
  background: url("../img/sketch-wave.svg") no-repeat bottom / 100% 100%;
  opacity: .85;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-grid > * { min-width: 0; }
.kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero h1 .gold { color: var(--gold); }
.lead {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.aside-slogan {
  text-align: right;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0;
  flex-shrink: 0;
}
.aside-slogan b { color: var(--gold); font-weight: 700; }

.device-stack {
  position: relative;
  min-height: 390px;
  padding: 6px 56px 36px 0;
}
.laptop {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.laptop-lid {
  background: #1c2434;
  padding: 8px 8px 10px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}
.laptop-cam {
  width: 6px;
  height: 6px;
  background: #39455c;
  margin: 0 auto 7px;
}
.screen {
  background: #f8fafc;
  color: var(--ink);
  border-radius: 0;
  min-height: 268px;
  display: grid;
  grid-template-columns: 118px 1fr;
  overflow: hidden;
  font-size: 11px;
}
.mini-side {
  background: var(--navy-deep);
  color: #dbe7f7;
  padding: 12px 8px;
}
.mini-side strong { display: block; font-size: 12px; margin-bottom: 12px; color: #fff; }
.mini-side p {
  margin: 0 0 4px;
  padding: 6px 8px;
  border-radius: 0;
  opacity: .8;
}
.mini-side p.on { background: #061d3c; color: var(--gold); opacity: 1; }
.mini-main { padding: 12px 12px 14px; }
.mini-main h3 { margin: 0 0 2px; font-size: 14px; }
.mini-hello {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0;
  padding-right: 36px;
}
.mini-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 7px;
}
.mini-kpi span { display: block; color: var(--muted); font-size: 8px; }
.mini-kpi b { font-size: 15px; }
.mini-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6px; }
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 9px;
  min-height: 78px;
}
.mini-card div { margin-top: 8px; color: var(--muted); font-size: 10px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 42px; margin-top: 8px; }
.bars b {
  flex: 1;
  background: var(--navy);
  border-radius: 0;
  display: block;
}
.laptop-base {
  height: 14px;
  margin: 0 -14px 0;
  background: linear-gradient(180deg, #2c3648 0%, #171e2b 100%);
  clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
  position: relative;
}
.laptop-base span {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 56px;
  height: 4px;
  margin-left: -28px;
  background: #10151f;
}
.phone {
  position: absolute;
  right: 4px;
  bottom: -8px;
  width: 138px;
  z-index: 2;
  background: #10151f;
  border-radius: 0;
  padding: 8px 7px 8px;
  border: 4px solid #10151f;
  box-shadow: 0 18px 40px rgba(6, 26, 58, 0.35);
  color: var(--ink);
}
.phone-notch {
  width: 42px;
  height: 5px;
  border-radius: 0;
  background: #2a3142;
  margin: 0 auto 7px;
}
.phone-body {
  background: #fff;
  border-radius: 0;
  padding: 12px 10px 10px;
  min-height: 196px;
}
.phone-body h4 { margin: 0 0 2px; font-size: 14px; }
.phone-body small { color: var(--muted); }
.phone-body p {
  font-size: 12px;
  margin: 8px 0 0;
  font-weight: 600;
}
.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0;
}
.phone-grid span {
  background: #eef4ff;
  color: var(--navy);
  border-radius: 0;
  padding: 12px 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.phone-home {
  width: 36px;
  height: 4px;
  background: #2a3142;
  margin: 7px auto 0;
}

/* Sections */
.section { padding: 80px 0; }
.section h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 56ch; }
.center { text-align: center; }
.center .section-lead { margin-inline: auto; }

.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 22px;
}
.module .icon {
  width: 42px; height: 42px;
  border-radius: 0;
  background: #e8f0fc;
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.module .icon svg {
  width: 22px;
  height: 22px;
}
.module h3 { margin: 0 0 8px; font-size: 17px; }
.module p { margin: 0; color: var(--muted); font-size: 14px; }

.strip {
  background: var(--navy-deep);
  color: #fff;
  padding: 28px 0;
}
.strip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.strip-row b { color: var(--gold); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 26px;
  background: #fff;
}
.plan.featured {
  background: var(--navy-deep);
  color: #fff;
  border-color: var(--navy-deep);
  transform: translateY(-6px);
}
.plan .tag {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.plan.featured .tag { color: var(--gold); }
.plan h3 { margin: 8px 0 6px; font-size: 24px; }
.plan .price { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.plan.featured .price { color: rgba(255,255,255,.75); }
.plan ul { margin: 0 0 22px; padding: 0; list-style: none; }
.plan li { padding: 7px 0 7px 22px; position: relative; font-size: 14px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  border-radius: 0;
  background: var(--gold);
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
}
.contact-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 0;
  padding: 28px;
}
.contact-card a { color: var(--gold); }
.contact-card p { color: rgba(255,255,255,.8); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { padding: 8px 0; font-size: 15px; }

form {
  display: grid;
  gap: 12px;
}
label { font-size: 13px; font-weight: 600; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }

.site-footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,.7);
  padding: 36px 0 22px;
  font-size: 14px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.site-footer img { height: 38px; }
.footer-meta {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.side-demo {
  position: fixed;
  right: 0;
  top: 72%;
  z-index: 50;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--gold);
  color: var(--navy-ink);
  font-weight: 800;
  letter-spacing: .08em;
  padding: 16px 10px;
  border-radius: 0;
  box-shadow: var(--shadow);
}
.side-demo:hover { background: #ffd34a; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #061a3a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid rgba(245, 197, 24, .45);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
  z-index: 80;
  max-width: min(520px, calc(100% - 32px));
  text-align: center;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Demo app */
.demo-banner {
  background: var(--gold);
  color: var(--navy-ink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
}
.demo-banner a { text-decoration: underline; }
.demo-app {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: calc(100vh - 42px);
  background: var(--paper);
}
.demo-side {
  background: var(--navy-deep);
  color: #d7e4f7;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.demo-side img {
  height: 36px;
  width: auto;
  max-width: 168px;
  min-height: 0;
  object-fit: contain;
  margin: 4px 8px 22px;
}
.demo-side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.demo-side a,
.demo-side button.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 10px 12px;
  border-radius: 0;
  border-left: 3px solid transparent;
  font-size: 14px;
}
.demo-side a:hover,
.demo-side button.nav-link:hover { background: #0c3569; }
.demo-side .on {
  background: #061d3c;
  border-left-color: #fbbf24;
  color: #fbbf24;
  font-weight: 700;
}
.demo-main { min-width: 0; }
.demo-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.demo-top h1 { font-size: 18px; margin: 0; }
.chip {
  background: #eef4ff;
  color: var(--navy);
  border-radius: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.view { display: none; padding: 22px; }
.view.on { display: block; }
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
}
.kpi span { color: var(--muted); font-size: 12px; }
.kpi b { display: block; font-size: 28px; margin-top: 6px; letter-spacing: -.03em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
}
.card h3 { margin: 0 0 12px; font-size: 15px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; }
.badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf3;
  color: var(--ok);
}
.badge.warn { background: #fef2f2; color: var(--warn); }
.search {
  margin-bottom: 12px;
  max-width: 320px;
}
.notice { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice:last-child { border-bottom: 0; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  padding-top: 8px;
}
.chart i {
  flex: 1;
  background: var(--navy);
  display: block;
  border-radius: 0;
}
.parent-shell {
  max-width: 390px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 16px 12px;
  min-height: 560px;
  box-shadow: var(--shadow);
}
.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}
.parent-grid button {
  border: 0;
  background: #eef4ff;
  color: var(--navy);
  border-radius: 0;
  padding: 22px 10px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid, .modules, .plans, .contact-grid, .demo-app, .kpis, .grid-2, .mini-kpis {
    grid-template-columns: 1fr;
  }
  .nav, .aside-slogan { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 14px;
    z-index: 30;
  }
  .header-actions .btn-ghost,
  .header-actions .btn-gold { display: none; }
  .device-stack { padding: 0 0 8px; min-height: 0; }
  .phone { position: relative; right: 0; bottom: 0; margin: 16px auto 0; }
  .demo-app { display: block; }
  .side-demo { display: none; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .demo-side { overflow: visible; }
  .demo-side nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: none;
    gap: 4px;
  }
  .demo-side button.nav-link { width: auto; flex: 1 1 auto; }
}
