/* KNKMS Web lander. Warm paper, ink, and the KNKMS flag red.
   Display type is Barlow Condensed, same family as knkms.inc. */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/shared/fonts/barlow-condensed-800.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/shared/fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/shared/fonts/barlow-600.woff2") format("woff2");
}

:root {
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --paper: #f3eee6;
  --paper-2: #e8e0d4;
  --card: #fffaf3;
  --ink: #16181d;
  --ink-soft: #3b4048;
  --muted: #5c6370;
  --line: #d9d0c4;
  --red: #bf0a30;
  --red-deep: #8f0824;
  --cream: #f6f1e8;
  --hero: #12141a;
  --max: 1160px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(18, 20, 26, 0.18);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; color: var(--ink); margin: 0 0 0.6rem; }
h1 { font-size: clamp(3.1rem, 9vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1rem; }
a { color: var(--red-deep); }
a:hover { color: var(--red); }

.skip {
  position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff;
  padding: 0.5rem 0.8rem; z-index: 100; border-radius: 4px;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  position: relative; display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem;
}
.brand { display: flex; align-items: center; margin-right: auto; color: inherit; text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem 1.15rem; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav-links a[aria-current="page"],
.nav-links a:hover { border-bottom-color: var(--red); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 0.7rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.85rem; padding: 0.55rem 1.15rem;
  border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-fill { background: var(--ink); color: var(--cream); }
.btn-fill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { min-height: 3.2rem; padding: 0.75rem 1.4rem; font-size: 1.08rem; }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer;
  font-family: var(--font); font-weight: 600; color: var(--ink);
}
.nav-toggle-bars {
  display: block; width: 1.25rem; height: 2px; background: currentColor; position: relative; margin: 0 auto 0.3rem;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-header.is-nav-open .nav-toggle-bars { background: transparent; }
.site-header.is-nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.site-header.is-nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 80% 10%, rgba(191, 10, 48, 0.22), transparent 55%),
    linear-gradient(160deg, #12141a 0%, #1b1e26 55%, #161318 100%);
  color: var(--cream);
  overflow: hidden;
  padding: 3.5rem 0 5.5rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.8rem;
  align-items: center;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}
.eyebrow {
  display: inline-block;
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #f0b3bf; margin-bottom: 0.9rem;
}
.hero h1 { color: #fff; max-width: 10ch; }
.hero h1 em { font-style: normal; color: #f6d5db; }
.rule {
  display: block; width: 3.6rem; height: 5px; background: var(--red); border-radius: 2px; margin: 1rem 0 1.15rem;
}
.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: rgba(246, 241, 232, 0.88);
  max-width: 34rem;
  line-height: 1.55;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.hero .btn-fill { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-fill:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.chips li {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2); color: #fff; background: rgba(255,255,255,0.08);
}

/* Browser mock */
.mock {
  position: relative;
  background: #2a2e36;
  border-radius: 16px 16px 12px 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(1.6deg) translateY(0.4rem);
  animation: float 6.5s ease-in-out infinite;
}
.mock-bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 0.85rem 0.55rem;
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #5c6370; }
.mock-dot:nth-child(1) { background: #e24b4b; }
.mock-dot:nth-child(2) { background: #e0b044; }
.mock-dot:nth-child(3) { background: #3ea35a; }
.mock-url {
  flex: 1; margin-left: 0.4rem; background: #1a1d23; color: #c8cdd6;
  border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.72rem; letter-spacing: 0.02em;
}
.mock-page {
  background: var(--cream);
  color: var(--ink);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
  padding: 0.85rem 0.9rem 1rem;
}
.mock-nav {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.68rem; font-weight: 600; margin-bottom: 0.85rem; color: var(--ink-soft);
}
.mock-mark {
  width: 1.15rem; height: 1.15rem; border-radius: 4px; background: var(--ink); flex: 0 0 auto;
}
.mock-nav span { display: none; }
.mock-cta {
  margin-left: auto; background: var(--red); color: #fff;
  border-radius: 999px; padding: 0.18rem 0.5rem; font-size: 0.64rem;
}
.mock-hero-copy { margin-bottom: 0.85rem; }
.mock-kicker { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.mock-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: -0.03em; line-height: 0.95; margin: 0.25rem 0 0.45rem; max-width: 12ch;
}
.mock-lines { display: grid; gap: 0.28rem; }
.mock-lines i { display: block; height: 6px; background: #d4cdc2; border-radius: 4px; }
.mock-lines i:nth-child(1) { width: 92%; }
.mock-lines i:nth-child(2) { width: 70%; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin: 0.85rem 0; }
.mock-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem;
}
.mock-ico { width: 1.1rem; height: 1.1rem; border-radius: 4px; background: #f0d5d9; margin-bottom: 0.3rem; }
.mock-card b { display: block; font-size: 0.62rem; font-weight: 600; }
.mock-form {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 8px; padding: 0.55rem;
}
.mock-form b { display: block; font-size: 0.7rem; margin-bottom: 0.35rem; }
.mock-field { height: 0.55rem; background: var(--paper-2); border-radius: 3px; margin-bottom: 0.28rem; }
.mock-field.short { width: 38%; height: 0.7rem; background: var(--ink); }

@keyframes float {
  0%, 100% { transform: rotate(1.6deg) translateY(0.4rem); }
  50% { transform: rotate(0.4deg) translateY(-0.35rem); }
}

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: #efe8dc; }
.section-head { max-width: 36rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

.page-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .page-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .page-grid { grid-template-columns: repeat(3, 1fr); } }

.page-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.15rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) {
  .page-card:hover { transform: translateY(-5px); box-shadow: 0 12px 28px rgba(18, 20, 26, 0.08); border-color: #c9b8a8; }
}
.mini {
  height: 92px; border-radius: 10px; background: #ece5da; margin-bottom: 0.9rem;
  position: relative; overflow: hidden; border: 1px solid #e0d6c8;
}
.mini-bar { position: absolute; left: 8px; right: 8px; top: 8px; height: 6px; border-radius: 3px; background: #d3c7b8; }
.mini-bar::after { content: ""; position: absolute; right: 0; top: -1px; width: 22%; height: 8px; border-radius: 4px; background: var(--red); }
.mini-hero { position: absolute; left: 8px; top: 22px; width: 55%; height: 28px; border-radius: 4px; background: var(--ink); }
.mini-cols, .mini-tiles { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; gap: 4px; }
.mini-cols { grid-template-columns: repeat(3, 1fr); }
.mini-cols i, .mini-tiles i { display: block; height: 22px; background: #fff; border-radius: 3px; border: 1px solid #ddd3c6; }
.mini.map .mini-hero { width: 36%; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); top: 28px; left: 42%; opacity: 0.9; }
.mini.form .mini-hero { width: auto; right: 8px; height: 52px; background: #fff; border: 1px solid #ddd3c6; }
.mini.blog .mini-hero { width: 70%; height: 10px; background: var(--ink); }
.mini.blog .mini-tiles { grid-template-columns: 1fr; }
.mini.blog .mini-tiles i { height: 10px; }
.mini.careers .mini-hero { width: 40%; }
.mini.launch .mini-hero { width: 18px; height: 18px; border-radius: 50%; background: var(--red); }
.page-card h3 { margin-bottom: 0.35rem; }
.page-card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem 1.3rem;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 100%;
}
.step-n {
  font-family: var(--display);
  font-size: 5.2rem;
  line-height: 0.7;
  color: var(--red);
  opacity: 0.18;
  letter-spacing: -0.06em;
  display: block;
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.hosting p { max-width: 40rem; color: var(--ink-soft); font-size: 1.12rem; }

/* CTA band */
.cta-band {
  background: var(--hero);
  color: var(--cream);
  padding: 4.5rem 0;
  text-align: left;
}
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band .rule { background: var(--red); }
.cta-band p { color: rgba(246, 241, 232, 0.86); max-width: 34rem; font-size: 1.12rem; }
.cta-band .btn-fill { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-fill:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Footer */
.site-foot {
  background: #0f1115;
  color: #c5c0b8;
  padding: 2.75rem 0 2.4rem;
  font-size: 0.95rem;
}
.foot-grid { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.site-foot .brand-logo { height: 38px; margin-bottom: 0.7rem; }
.foot-brand { font-family: var(--display); font-size: 1.5rem; color: #fff; letter-spacing: -0.03em; margin-bottom: 0.3rem; }
.site-foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); }
.site-foot a:hover { border-bottom-color: var(--red); color: #fff; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; margin-bottom: 1rem; }
.legal { color: #9b968e; margin: 0; line-height: 1.55; }
.site-foot p { margin: 0 0 0.45rem; }

/* Motion */
.reveal { opacity: 0; transform: translateY(1.15rem); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .mock { animation: none; }
  .page-card, .btn { transition: none; }
}

/* Mobile nav */
@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; }
  .site-header-inner > nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.75rem 1.2rem 1.1rem;
  }
  .site-header.is-nav-open > .site-header-inner > nav { display: block; }
  .nav-links { flex-direction: column; gap: 0.35rem; }
  .nav-links a { display: block; padding: 0.55rem 0; font-size: 1.05rem; }
  body.nav-lock { overflow: hidden; }
  .hero { padding: 2.4rem 0 3.4rem; }
  .mock { transform: none; }
  .section { padding: 3.2rem 0; }
  .cta-band { padding: 3.2rem 0; }
}
@media (min-width: 880px) {
  .mock-nav span { display: inline; }
}

@media (max-width: 420px) {
  .header-actions .btn-fill { display: none; }
}
