:root {
  --primary: #0878dc;
  --primary-dark: #073e9a;
  --primary-soft: #e7f3ff;
  --ink: #07111f;
  --muted: #5b6778;
  --line: #dce5ef;
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --teal: #00a88f;
  --amber: #c98713;
  --red: #c44e4e;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 229, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand img,
.footer-brand img,
.h5-brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span,
.footer-brand span,
.h5-brand span {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314156;
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 28px rgba(8, 120, 220, 0.28);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--surface-alt);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.55rem, 7vw, 5.2rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin-top: 20px;
  color: #405066;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 74px 0 56px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(6, 56, 117, 0.88)),
    url("https://images.unsplash.com/photo-1518546305927-5a555bb7020d?q=80&w=1600&auto=format&fit=crop") center/cover;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 54px;
  align-items: center;
}

.hero p,
.hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero .btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
  font-weight: 750;
}

.terminal-panel,
.insight-board,
.privacy-panel,
.contact-card,
.feature-card,
.quote-card,
.timeline-item,
.policy-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(7, 17, 31, 0.06);
}

.terminal-panel {
  overflow: hidden;
  color: #d9e8ff;
  background: rgba(4, 18, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  font-weight: 750;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
}

.terminal-dots span:nth-child(2) {
  background: var(--amber);
}

.terminal-dots span:nth-child(3) {
  background: var(--red);
}

.plan-card {
  padding: 24px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.metric {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
}

.metric span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.chart {
  height: 180px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    rgba(255,255,255,0.04);
  background-size: 100% 36px, 54px 100%;
}

.chart-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #62b8ff, var(--amber));
  transform-origin: left center;
}

.chart-line.one {
  top: 42%;
  transform: rotate(-8deg);
}

.chart-line.two {
  top: 61%;
  transform: rotate(5deg);
  opacity: 0.62;
}

.decision-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.decision-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.decision-list b {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.section-heading {
  margin-bottom: 38px;
}

.feature-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.feature-card {
  min-height: 248px;
  padding: 28px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-card:last-child {
  border-right: 0;
}

.feature-card .marker,
.step .marker,
.policy-section .marker {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-weight: 850;
}

.feature-card:nth-child(2) .marker,
.step:nth-child(2) .marker {
  background: var(--teal);
}

.feature-card:nth-child(3) .marker,
.step:nth-child(3) .marker {
  background: var(--amber);
}

.feature-card:nth-child(4) .marker {
  background: #35445d;
}

.feature-card p,
.step p,
.quote-card p,
.timeline-item p,
.policy-section p {
  margin-top: 12px;
}

.insight-board {
  padding: 28px;
}

.board-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.board-row:last-child {
  border-bottom: 0;
}

.status {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.status.ok {
  color: #087866;
  background: #dff8f2;
}

.status.watch {
  color: #8a5d05;
  background: #fff1cf;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value-band {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), #05213f);
}

.value-band p {
  color: rgba(255, 255, 255, 0.78);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.stat {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quote-card {
  padding: 28px;
}

.quote-card strong {
  display: block;
  margin-top: 18px;
}

.page-hero {
  padding: 78px 0;
  background:
    linear-gradient(180deg, #f7fbff, #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  max-width: 780px;
}

.about-photo {
  min-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.principle {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px;
}

.timeline-item time {
  color: var(--primary);
  font-weight: 850;
}

.policy-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
  gap: 34px;
  align-items: start;
}

.privacy-panel {
  position: sticky;
  top: 100px;
  padding: 26px;
  background: #07111f;
}

.privacy-panel h2 {
  color: #fff;
  font-size: 1.6rem;
}

.privacy-panel p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.policy-content {
  display: grid;
  gap: 16px;
}

.policy-section {
  padding: 26px;
}

.policy-section ul,
.clean-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.policy-section li,
.clean-list li {
  margin: 8px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(290px, 0.36fr);
  gap: 28px;
  align-items: start;
}

.contact-card {
  padding: 30px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  color: #26354a;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(8, 120, 220, 0.12);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 550;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-note {
  min-height: 24px;
  color: var(--teal);
  font-weight: 750;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-list a,
.contact-list div {
  display: block;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  text-decoration: none;
}

.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--line);
  background: #07111f;
  color: #fff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: start;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.h5-page {
  background: #fff;
}

.h5-shell {
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.h5-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
}

.h5-hero {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.h5-hero h1 {
  font-size: clamp(2.2rem, 14vw, 3.4rem);
}

.h5-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.h5-block h2 {
  font-size: 1.45rem;
}

@media (max-width: 920px) {
  .hero .container,
  .split,
  .contact-grid,
  .policy-wrap {
    grid-template-columns: 1fr;
  }

  .feature-flow,
  .workflow,
  .stats,
  .quotes,
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .section {
    padding: 58px 0;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 54px 0;
  }

  .hero .container {
    gap: 34px;
  }

  .terminal-panel {
    min-width: 0;
  }

  .metric-strip,
  .feature-flow,
  .workflow,
  .stats,
  .quotes,
  .principles,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: grid;
  }
}
