/* KCK Web Co. — brand: Signal (charcoal + electric blue) */
:root {
  --bg: #0E1014;
  --surface: #16181D;
  --surface-2: #13161B;
  --line: #22262E;
  --line-2: #3A404C;
  --text: #F2F4F8;
  --text-2: #C9CFDA;
  --muted: #A3ACBB;
  --blue: #2E5BFF;
  --blue-hover: #1F47E0;
  --blue-light: #6F8FFF;
  --gold: #E0B955;
  --green: #3DDC84;
  --error: #FF8F8F;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: max(24px, calc((100% - 1280px) / 2));
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #9DB3FF; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo b { font-weight: 700; }
.logo .slash { font-weight: 700; color: var(--blue-light); margin: 0 2px; }
.logo .rest { font-weight: 500; }
.logo:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 600 16px var(--body);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }

.text-link {
  font-weight: 500;
  border-bottom: 1px solid #4A5160;
  padding-bottom: 4px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 16, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
}
.nav a:not(.btn) { padding: 8px 0; }
.nav a[aria-current="page"] { color: var(--blue-light); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Shared section bits ---------- */
.section {
  padding: 140px var(--gutter);
}
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.h-display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.dot { color: var(--blue); }

.lead { font-size: 20px; line-height: 1.55; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.hero-slash {
  position: absolute;
  right: 2%;
  top: -60px;
  font-family: var(--display);
  font-weight: 700;
  font-size: min(760px, 70vw);
  line-height: 1;
  color: #151922;
  pointer-events: none;
  user-select: none;
}
.hero > *:not(.hero-slash) { position: relative; }

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.15);
}

.hero h1 { font-size: clamp(56px, 9.4vw, 136px); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-foot .lead { max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }

/* ---------- Services ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 72px;
}
.section-head .title-group { display: flex; flex-direction: column; gap: 20px; }
.section-head h2 { font-size: clamp(48px, 6.2vw, 88px); }
.section-head p { max-width: 460px; font-size: 18px; color: var(--muted); }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 64px;
}

.tile { display: flex; flex-direction: column; gap: 24px; }
.shot {
  height: 340px;
  border-radius: 16px;
  background: var(--tile-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .35s ease;
}
.shot svg { width: 100%; height: 100%; }
.tile:hover .shot { transform: translateY(-8px); }

.tile-text { display: flex; flex-direction: column; gap: 10px; }
.tile-title { display: flex; align-items: baseline; gap: 14px; }
.num { font-family: var(--mono); font-size: 14px; color: var(--blue-light); }
.tile h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tile p { color: var(--muted); }

/* ---------- Process ---------- */
.process-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.process-head h2 { font-size: clamp(40px, 4.5vw, 64px); letter-spacing: -0.04em; line-height: 1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.step {
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; }
.step p { color: var(--muted); }

/* ---------- About ---------- */
.about {
  display: flex;
  gap: 96px;
  align-items: center;
}
.promise-card {
  width: 460px;
  flex-shrink: 0;
  padding: 40px 36px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid #262A33;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.promises li {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid #262A33;
}
.promises li:last-child { border-bottom: 1px solid #262A33; }
.promise-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(46, 91, 255, 0.14);
  color: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.promises strong {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.promises span { font-size: 15px; line-height: 1.5; color: var(--muted); }
.promises a { color: var(--text); border-bottom: 1px solid #4A5160; }

.about-text { flex-grow: 1; display: flex; flex-direction: column; gap: 32px; }
.about-text h2 { font-size: clamp(48px, 6.2vw, 88px); letter-spacing: -0.04em; }
.about-text p { font-size: 20px; line-height: 1.6; color: var(--muted); }
.about-text p:first-of-type { color: var(--text-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fact { padding-top: 20px; border-top: 1px solid var(--line-2); }
.fact strong { display: block; font-family: var(--display); font-weight: 600; font-size: 22px; }
.fact span { font-size: 15px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.cta h2 { font-size: clamp(64px, 11vw, 160px); letter-spacing: -0.05em; line-height: 0.92; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 48px; }
.direct { display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.direct a + a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px var(--gutter) 48px;
  background: var(--surface);
  border-top: 1px solid #2A2F38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .logo { font-size: 20px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #9DB3FF; }

/* ---------- Contact page ---------- */
.contact {
  padding: 96px var(--gutter) 120px;
  display: flex;
  gap: 96px;
  align-items: flex-start;
}
.contact-intro {
  width: 460px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.back-link { font-size: 15px; font-weight: 500; color: var(--muted); }
.contact-intro h1 { font-size: clamp(64px, 7.2vw, 104px); letter-spacing: -0.05em; line-height: 0.92; }
.reach {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.reach > p { font-size: 15px; color: var(--muted); }
.reach-item { display: flex; align-items: center; gap: 14px; font-size: 20px; }
.reach-item svg { flex-shrink: 0; }
.reach-item.static { color: var(--muted); }

.form-card {
  flex-grow: 1;
  min-width: 0;
  padding: 48px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.form { display: flex; flex-direction: column; gap: 24px; }
.form[hidden] { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .fieldset legend { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #2E333D;
  background: var(--bg);
  color: var(--text);
  font: 16px var(--body);
  transition: border-color .2s ease;
}
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #6B7384; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-light); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.fieldset { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fieldset legend { padding: 0; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pill span:hover { border-color: var(--blue-light); }
.pill input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-error { font-size: 15px; color: var(--error); min-height: 1.5em; }

.thanks {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.thanks[hidden] { display: none; }
.check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks h2 { font-family: var(--display); font-weight: 700; font-size: 56px; letter-spacing: -0.04em; line-height: 1; }
.thanks p { max-width: 520px; font-size: 19px; color: var(--muted); }
.thanks-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; padding-top: 8px; }
.link-button {
  padding: 0 0 4px;
  border: none;
  border-bottom: 1px solid #4A5160;
  background: none;
  color: var(--text);
  font: 500 16px var(--body);
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { flex-direction: column; align-items: stretch; gap: 56px; }
  .promise-card { width: 100%; max-width: 560px; order: 2; }
  .contact { flex-direction: column; gap: 56px; }
  .contact-intro { width: 100%; }
  .form-card { width: 100%; }
}

@media (max-width: 820px) {
  :root { --header-h: 68px; }
  .logo { font-size: 22px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 20px; }

  .section { padding: 96px var(--gutter); }
  .hero { padding: 80px var(--gutter); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-wrap: wrap; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: 48px; }
  .services, .steps { grid-template-columns: minmax(0, 1fr); }
  .shot { height: 280px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .promise-card { padding: 28px 20px; }
  .contact { padding: 64px var(--gutter) 96px; }
  .form-card { padding: 28px 20px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .thanks h2 { font-size: 40px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

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