/* Krypton Defence Solutions: one stylesheet, mobile-first, no build step. */

:root {
  /* Palette sampled from the lion emblem artwork */
  --bg: #05080d;              /* carbon black */
  --bg-raised: #0c141c;
  --bg-sunk: #030508;
  --line: #1a2833;
  --text: #edf6f8;            /* light steel */
  --text-muted: #a3b3bc;      /* steel */
  --accent: #46c4df;          /* electric cyan glow */
  --accent-strong: #63f9fd;
  --accent-deep: #2d6d8c;
  --accent-ink: #021117;
  --radius: 12px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }
.eyebrow {
  display: block; margin-bottom: .75rem; font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(5 8 13 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: auto; height: 40px; flex: none; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { color: var(--text); background: var(--bg-raised); }
.site-nav .btn { color: var(--accent-ink); padding: 8px 16px; }
@media (max-width: 760px) {
  .site-nav li:not(:last-child) { display: none; }  /* one-page site: keep just the contact button on phones */
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-raised); color: var(--text); }

/* Hero: carbon-fibre weave, a cyan glow behind the emblem, and the emblem itself */
.hero {
  position: relative; overflow: hidden; padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(ellipse 45% 60% at 78% 45%, rgb(70 196 223 / .22), transparent 70%),
    radial-gradient(ellipse 30% 40% at 78% 45%, rgb(99 249 253 / .10), transparent 70%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / .018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(0 0 0 / .35) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #0a1118, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-emblem { width: min(260px, 70vw); margin: 0 auto; filter: drop-shadow(0 0 28px rgb(70 196 223 / .35)); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; }
  .hero-emblem { order: 2; width: 100%; max-width: 480px; }
}
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-muted); max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .points { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 36px 0 0; color: var(--text-muted); font-size: .95rem; }
.hero .points li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }

/* Sections */
section { padding: clamp(56px, 9vw, 104px) 0; }
section.alt { background: var(--bg-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
/* Four packages read best as a 2×2 grid, never 3 + 1. */
.grid--packages { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid--packages { grid-template-columns: repeat(2, 1fr); } }

/* Service packages */
.package {
  display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.package .price { font-family: var(--font-mono); color: var(--accent); font-size: .95rem; margin-bottom: 12px; }
.package p { color: var(--text-muted); }
.package ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: .95rem; }
.package li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.package li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.package .btn { margin-top: auto; align-self: flex-start; }
.package--featured { border-color: rgb(70 196 223 / .55); box-shadow: 0 0 0 1px rgb(70 196 223 / .2), 0 20px 50px -30px rgb(70 196 223 / .55); }
.note { font-size: .9rem; color: var(--text-muted); margin-top: 24px; }

/* Process */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); color: var(--accent); margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--text-muted); font-size: .95rem; }

/* About */
.split { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .split { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.facts b { color: var(--text); }
.facts span { color: var(--text-muted); display: block; font-size: .95rem; }

/* Contact */
.contact-box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); max-width: 720px; }
.contact-box .email { font-family: var(--font-mono); font-size: clamp(1rem, 2.6vw, 1.25rem); word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--text-muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { color: var(--text-muted); }

/* Phones: keep the header on one line */
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .brand { font-size: .95rem; gap: 8px; }
  .brand img { height: 34px; }
  .site-nav .btn { padding: 8px 12px; font-size: .9rem; }
}

/* Contact form */
.contact-box { max-width: 760px; }
.contact-form { display: grid; gap: 18px; margin-top: 24px; }
.row-2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt, .field .hint { color: var(--text-muted); font-weight: 400; font-size: .85rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-sunk);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(70 196 223 / .2); }
textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; }
.form-status.ok { display: block; background: rgb(70 196 223 / .1); border: 1px solid rgb(70 196 223 / .45); }
.form-status.err { display: block; background: rgb(232 88 74 / .12); border: 1px solid rgb(232 88 74 / .45); }
.alt-contact { margin-top: 20px; font-size: .95rem; }
