:root {
  --navy: #071b46;
  --blue: #2f6fff;
  --blue-2: #1f55d8;
  --ink: #101826;
  --muted: #69758b;
  --gray: #b8c2d6;
  --line: #e5eaf2;
  --bg: #f4f7fb;
  --white: #fff;
  --green: #16a36a;
  --warning: #d98b16;
  --error: #d84545;
  --radius: 16px;
  --control: 10px;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(7, 27, 70, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 16px/1.5 Inter, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .brand-type { font-family: Sora, Inter, Arial, sans-serif; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--control);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
}
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--blue-2); }
.btn-secondary { background: white; color: var(--navy); border-color: #cbd5e1; }
.btn-ghost { color: white; border-color: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.nav-links .btn-primary:hover { color: white; }

.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 111, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #061735, #071b46 58%, #0c2864);
  color: white;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 80px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -1.8px;
  font-weight: 700;
}
.hero .lead { color: #c5d2e8; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: #9fb0cb; font-size: 13px; }

.product-frame {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.product-frame-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.product-frame-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}
.app-mock {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 320px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 14px;
  overflow: hidden;
}
.mock-side { background: var(--navy); color: white; padding: 16px 12px; }
.mock-side strong { display: block; font-family: Sora, Inter, sans-serif; font-size: 13px; margin-bottom: 14px; }
.mock-side strong b { color: #74a0ff; }
.mock-side span {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #c5d2e8;
}
.mock-side span.on { background: var(--blue); color: white; font-weight: 700; }
.mock-main { padding: 16px; }
.mock-main h3 { margin: 0 0 12px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.kpi small { color: var(--muted); font-size: 11px; }
.kpi b { display: block; font-family: Sora, Inter, sans-serif; font-size: 20px; margin-top: 2px; }
.mock-empty {
  margin-top: 10px;
  background: white;
  border: 1px dashed #c9d4e4;
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head h2, .hero h1 { letter-spacing: -1px; }
.section-head h2 { margin: 0 0 8px; font-size: 36px; line-height: 1.15; }

.soft { background: var(--bg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 8px 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.price {
  font-family: Sora, Inter, sans-serif;
  font-size: 28px;
  letter-spacing: -0.8px;
  color: var(--blue);
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf3ff;
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.step { padding: 16px; border-top: 3px solid var(--blue); background: white; border-radius: 0 0 12px 12px; }
.step b { display: block; font-family: Sora, Inter, sans-serif; margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 13px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.panel {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 28px;
}
.panel .kicker { color: #9dbdff; }
.panel li { margin: 8px 0; }
.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li::before { content: "✓"; color: #9dbdff; margin-right: 8px; }

.site-footer {
  background: var(--navy);
  color: #c5d2e8;
  padding: 36px 0;
  font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-family: Sora, Inter, sans-serif; font-weight: 700; }
.footer-mark {
  background: white;
  border-radius: 10px;
  padding: 6px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.footer-mark img { width: 28px; height: auto; }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: white; }

.page-hero { padding: 56px 0 20px; }
.page-hero h1 { margin: 0 0 12px; font-size: 48px; letter-spacing: -1.4px; line-height: 1.05; }

table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: #eef3f8; }
td:last-child, th:last-child { text-align: right; }

.calc { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.control {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.control label, .check {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 650;
}
.control input[type="number"] {
  width: 96px;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: right;
  padding: 0 10px;
}
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.checks label { font-weight: 500; font-size: 14px; justify-content: flex-start; }
.summary {
  background: var(--navy);
  color: white;
  border-radius: 16px;
  padding: 22px;
  position: sticky;
  top: 92px;
}
.summary h2 { margin: 0 0 12px; font-size: 22px; }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: #c7d5e7; font-size: 14px; }
.row strong { color: white; }
.total { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 10px; padding-top: 14px; }
.total strong { display: block; font-family: Sora, Inter, sans-serif; font-size: 40px; letter-spacing: -1px; }
.note {
  margin-top: 16px;
  background: #edf3ff;
  border-left: 3px solid var(--blue);
  padding: 12px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 111, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #061735, #071b46 58%, #0c2864);
}
.login-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 12px;
}
.login-card img { height: 40px; width: auto; }
.login-card h1 { margin: 0; font-size: 32px; letter-spacing: -0.8px; }
.login-card .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.login-card input {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0 12px;
}
.login-error { min-height: 1.2em; margin: 0; color: var(--error); font-size: 14px; }
.login-hint { margin: 0; color: var(--muted); font-size: 14px; }

input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 111, 255, 0.35);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero-grid, .split, .calc, .grid-4, .workflow { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero h1, .page-hero h1 { font-size: 40px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .hero-grid, .split, .calc, .grid-4, .grid-2, .workflow, .checks { grid-template-columns: 1fr; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .summary { position: static; }
  .app-mock { grid-template-columns: 1fr; }
  .mock-side { display: flex; gap: 6px; overflow: auto; }
  .mock-side strong { margin: 0 8px 0 0; align-self: center; }
}
