/* KW Technologies — site styles. No external resources: fonts are served from /assets/fonts. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0B0F0D;
  --surface: #121915;
  --surface-2: #18211C;
  --surface-3: #141C17;
  --inset: #0F1512;
  --line: #1E2621;
  --line-2: #26302A;
  --line-3: #34403A;
  --input-border: #5E6A61;
  --text: #EEF2EA;
  --text-soft: #C9CFC5;
  --muted: #A2AC9F;
  --faint: #8C9689;
  --sage: #C6C9B5;
  --accent: #D4F36B;
  --accent-ink: #0B0F0D;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--pad); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 12px; border: 0;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn svg { flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-3); font-weight: 550; }
.btn-ghost:hover { background: rgba(238, 242, 234, 0.07); color: var(--text); }
.btn-small { min-height: 44px; padding: 0 18px; border-radius: 11px; font-size: 15px; white-space: nowrap; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content;
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.link-arrow:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 13, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--text); border: 1px solid var(--line-3); border-radius: 11px; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { border-top: 1px solid var(--line); }
.mobile-menu ul { display: flex; flex-direction: column; padding-block: 4px 16px; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line);
  color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none;
}
.mobile-menu li:last-child a { border-bottom: 0; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 400px) {
  .header-inner { gap: 10px; padding-block: 12px; }
  .brand { gap: 10px; font-size: 15px; }
  .brand img { width: 36px; height: 36px; }
  .btn-small { padding: 0 14px; font-size: 14px; }
}

/* ---------- Shared section parts ---------- */
.section { border-bottom: 1px solid var(--line); }
.section-inner { padding-block: 112px; }
.kicker {
  margin-bottom: 18px; font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.h2 {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.03em;
  font-weight: 700; font-stretch: 110%; text-wrap: balance;
}
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 64px; margin-bottom: 56px; }
.section-head > div { flex: 1 1 520px; min-width: 0; }
.section-head .h2 { max-width: 14em; }
.section-inner > .h2 { margin-bottom: 56px; max-width: 15em; }
.section-head > p { flex: 1 1 320px; min-width: 0; max-width: 420px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238, 242, 234, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 242, 234, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 78% 30%, #000 20%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 80% at 78% 30%, #000 20%, transparent 82%);
}
.hero-inner { position: relative; padding-block: 88px 112px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 32px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: #111814;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--sage);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero h1 {
  font-size: clamp(42px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.035em;
  font-weight: 700; font-stretch: 112%; text-wrap: balance;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--accent); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 72px; margin-top: 52px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.lead { max-width: 32em; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.reassure { margin-top: 22px; font-size: 14.5px; color: var(--faint); }
.fluent { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.fluent ul { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 17px; font-weight: 600; font-stretch: 106%; letter-spacing: -0.01em; color: var(--sage); }

.status { flex: 1 1 380px; min-width: 0; max-width: 460px; }
.status-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 10px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 16px; }
.status-head div { display: flex; align-items: center; gap: 10px; }
.status-head p { font-weight: 600; font-size: 15px; }
.status-head .label { font-size: 11px; }
.status-list { background: var(--inset); border: 1px solid var(--line); border-radius: 14px; }
.status-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.status-list li:last-child { border-bottom: 0; }
.status-list .ico { color: var(--accent); flex: none; }
.status-list .what { flex: 1 1 auto; font-size: 15px; }
.status-list .state { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: right; }
.status-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 14px 6px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.toast {
  display: flex; align-items: center; gap: 14px; width: fit-content; max-width: 100%;
  margin: 18px 0 0 -40px; padding: 14px 20px 14px 14px;
  background: var(--surface-2); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.toast-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.toast p { display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4; }
.toast strong { font-weight: 600; }
.toast span { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.card h3 { margin-top: 8px; font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 650; font-stretch: 106%; }
.card p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.icon-box.solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags li { padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 12px; color: var(--sage); }
.card-feature { grid-column: span 2; flex-direction: row; flex-wrap: wrap; gap: 32px 40px; padding: 32px; background: var(--surface-3); border-color: #2C3730; }
.card-feature > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card-feature h3, .card-wide h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; font-stretch: 108%; }
.card-feature p, .card-wide p { font-size: 16px; }
.checklist { flex: 1 1 260px; min-width: 0; padding: 22px 24px; background: var(--inset); border: 1px solid var(--line); border-radius: 16px; }
.checklist ul { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; font-size: 15px; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist svg { color: var(--accent); flex: none; }
.card-wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 32px; }
.card-wide > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.card-wide p { max-width: 34em; }
.questions li { padding: 14px 0; border-top: 1px solid var(--line-2); font-size: 18px; font-weight: 550; letter-spacing: -0.01em; }
.questions li:last-child { border-bottom: 1px solid var(--line-2); }
@media (max-width: 980px) {
  .card-feature { grid-column: auto; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-3); }
.steps .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.steps h3 { font-size: 26px; letter-spacing: -0.02em; font-weight: 700; font-stretch: 108%; }
.steps p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- Ways to work together ---------- */
.plan { gap: 14px; padding: 32px; }
.plan .label { color: var(--sage); font-size: 12.5px; }
.plan h3 { margin-top: 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; font-stretch: 108%; }
.plan .p { font-size: 16px; }
.plan .terms { margin-top: auto; padding-top: 20px; font-size: 15px; color: var(--sage); }

/* ---------- About ---------- */
.about-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.creds { flex: 0 1 420px; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 32px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; }
.creds img { width: 72px; height: 72px; }
.creds ul { display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { padding: 7px 12px; border: 1px solid var(--line-3); border-radius: 999px; font-size: 14px; }
.about-copy { flex: 1 1 480px; min-width: 0; }
.about-copy p:not(.kicker) { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.about-copy p:not(.kicker) + p { margin-top: 16px; color: var(--text); }

/* ---------- Contact ---------- */
.contact-panel { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; padding: clamp(24px, 4vw, 56px); background: var(--surface); border: 1px solid var(--line-2); border-radius: 28px; }
.contact-intro { flex: 1 1 360px; min-width: 0; }
.contact-intro > p:not(.kicker) { margin-top: 20px; max-width: 26em; font-size: 18px; line-height: 1.6; color: var(--muted); }
.contact-ways { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 420px; }
.contact-way { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 0 20px; border: 1px solid var(--line-3); border-radius: 14px; color: var(--text); text-decoration: none; }
.contact-way:hover { background: rgba(238, 242, 234, 0.07); color: var(--text); }
.contact-way svg { color: var(--accent); flex: none; }
.contact-way span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-way small { font-size: 13px; color: var(--faint); }
.contact-way strong { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.contact-form-wrap { flex: 1 1 420px; min-width: 0; }

.form { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--inset); border: 1px solid var(--line-2); border-radius: 20px; }
.form h3 { font-size: 21px; letter-spacing: -0.015em; font-weight: 650; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg); color: var(--text);
  border: 1px solid var(--input-border); border-radius: 12px; font-size: 16px; line-height: 1.5;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { border-color: var(--text); }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); }
.check label { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.privacy-line { font-size: 13.5px; line-height: 1.55; color: var(--faint); }
.form .btn { align-self: flex-start; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border: 1px solid #6E5120; border-radius: 12px; background: #2A2012; color: #F3D9A8; font-size: 14.5px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; background: var(--inset); border: 1px solid var(--line-2); border-radius: 20px; }
.form-done:focus { outline: none; }
.form-done .big { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.form-done p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.form-done .btn { align-self: flex-start; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-block: 56px 32px; }
.footer-brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand img { width: 36px; height: 36px; }
.footer-brand p { max-width: 320px; font-size: 15px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 28px; align-items: center; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); }
.footer-base .container { padding-block: 24px 40px; gap: 12px 24px; font-size: 13.5px; color: var(--faint); }
.footer-base a { color: var(--muted); }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding-block: 88px 112px; }
.page-body { max-width: 760px; }
.page h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; font-stretch: 110%; }
.page .updated { margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.page .intro { margin-top: 28px; font-size: 20px; line-height: 1.6; color: var(--text-soft); }
.page section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.page h2 { font-size: 24px; letter-spacing: -0.015em; font-weight: 650; font-stretch: 106%; }
.page section p { margin-top: 14px; font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.page .cta-row { margin-top: 32px; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .section-inner { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-inner > .h2 { margin-bottom: 32px; }
  .hero-inner { padding-block: 40px 56px; }
  .chip { margin-bottom: 24px; gap: 8px; padding: 6px 12px 6px 10px; font-size: 11.5px; letter-spacing: 0; }
  .hero-row { margin-top: 28px; gap: 40px; }
  .cta-row .btn { width: 100%; }
  .toast { margin-left: 12px; }
  .card, .card-feature, .card-wide, .plan { padding: 22px; }
  .checklist { padding: 18px; }
  .questions li { font-size: 16.5px; }
  .creds { padding: 24px; }
  .about-copy p:not(.kicker) { font-size: 16.5px; }
  .form { padding: 20px 18px; }
  .form .btn { align-self: stretch; }
  .page { padding-block: 48px 64px; }
}

@media print {
  .site-header, .hero::before, .menu-toggle, .mobile-menu, .contact-form-wrap { display: none !important; }
  body { background: #fff; color: #000; }
}
