:root {
  --ink: #0b1d38;
  --navy: #10284b;
  --blue: #2d62ad;
  --green: #147c68;
  --rose: #b84b63;
  --paper: #ffffff;
  --page: #f2f5f8;
  --mist: #f3f6fa;
  --line: #d7e0eb;
  --muted: #5d6b7d;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  border: 2px solid var(--navy);
}
.skip-link:focus { top: 12px; }

.site-header {
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--navy); color: white; border-radius: 7px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a { text-decoration: none; color: #31425b; font-weight: 650; font-size: 14px; }
nav a:hover, nav a:focus-visible { color: var(--blue); }
.menu-button { display: none; min-height: 44px; border: 1px solid var(--line); background: white; color: var(--ink); padding: 8px 12px; font-weight: 750; }

.hero {
  min-height: 620px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 24, 46, .58);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/ksef-hero-2026.png") center / cover no-repeat;
  z-index: -2;
}
.hero-content {
  width: min(760px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 72px clamp(22px, 7vw, 100px);
  color: white;
}
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hero .eyebrow { color: #8ee0ca; }
.hero h1 { margin: 0; max-width: 100%; font-size: 58px; line-height: 1.04; letter-spacing: 0; overflow-wrap: anywhere; }
.hero-lead { max-width: 690px; margin: 20px 0 0; font-size: 21px; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 19px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 800; }
.button.primary { background: var(--green); color: white; }
.button.secondary { background: white; color: var(--navy); border-color: white; }
.button:hover, .button:focus-visible { outline: 3px solid rgba(255,255,255,.45); outline-offset: 2px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: #d8e5f2; }

section { padding: clamp(66px, 8vw, 112px) clamp(20px, 6vw, 88px); }
.section-heading { max-width: 820px; }
.section-heading h2, .security h2, .contact h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.55; }
.product { padding-bottom: 0; background: #f7f9fb; }
.product-shot { margin: 42px 0 0; border-top: 1px solid var(--line); }
.product-shot img { width: 100%; height: auto; }
.product-shot figcaption { padding: 10px 0; color: var(--muted); font-size: 13px; }
.band { background: #eaf0f6; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 42px; }
.feature-grid article { min-height: 245px; padding: 26px; background: white; }
.feature-no { color: var(--rose); font-weight: 850; font-size: 13px; }
.feature-grid h3 { margin: 36px 0 10px; font-size: 21px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.security { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: clamp(36px, 8vw, 120px); align-items: start; background: #f7f9fb; }
.security-copy p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; }
.security-list { margin: 0; border-top: 3px solid var(--green); }
.security-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.security-list dt { font-weight: 850; margin-bottom: 6px; }
.security-list dd { margin: 0; color: var(--muted); line-height: 1.5; }

.market { background: #f1f4f8; border-top: 1px solid var(--line); }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 38px 0 26px; background: var(--line); border: 1px solid var(--line); }
.market-grid article { padding: 24px; background: var(--paper); }
.market-grid h3 { margin: 0 0 10px; font-size: 19px; }
.market-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.timeline-list { list-style: none; padding: 0; margin: 42px 0 28px; border-top: 1px solid var(--line); }
.timeline-list li { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-list time { font-weight: 900; color: var(--blue); }
.timeline-list span { line-height: 1.5; }
.official-link { display: inline-block; color: var(--blue); font-weight: 800; }

.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 50px; align-items: end; border-top: 6px solid var(--rose); background: #f7f9fb; }
.contact-actions p { color: var(--muted); line-height: 1.5; }
footer { padding: 30px clamp(20px, 6vw, 88px); background: var(--ink); color: white; display: flex; justify-content: space-between; gap: 30px; }
footer div { display: grid; gap: 5px; }
footer span, footer p { color: #bfc9d7; font-size: 13px; }
footer p { max-width: 620px; margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
  .menu-button { display: inline-flex; align-items: center; }
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 12px 20px 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  nav.open { display: flex; }
  nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security, .contact { grid-template-columns: 1fr; }
  .timeline-list li { grid-template-columns: 170px 1fr; }
}

@media (max-width: 600px) {
  .site-header { min-height: 62px; gap: 10px; padding-left: 16px; padding-right: 16px; }
  .brand { min-width: 0; }
  .brand span:last-child { max-width: 176px; font-size: 15px; line-height: 1.15; }
  .hero { min-height: 610px; }
  .hero-bg { background-position: 64% center; }
  .hero::before { background: rgba(7, 24, 46, .7); }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 18px; overflow-wrap: anywhere; }
  .hero-content { width: 100%; padding: 50px 20px 62px; }
  .hero-actions .button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 0; }
  .timeline-list li { grid-template-columns: 1fr; gap: 8px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
