/* KrimSoft website. Colours follow Branding/README.md. */
:root {
  --navy: #0B2545;
  --sky: #1FA5D6;
  --link: #1677A3;
  --ink: #2A3B4F;
  --slate: #5B6B7F;
  --mist: #EEF2F6;
  --wash: #EAF6FC;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --line: #DCE3EB;
  --heading: var(--navy);
  --hero-bg: linear-gradient(160deg, #0B2545 0%, #12345F 60%, #1A4A7E 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --link: #5CCBF2;
    --ink: #D5DEE8;
    --slate: #93A3B6;
    --mist: #0E1D33;
    --wash: #10213A;
    --bg: #0A1626;
    --card: #10213A;
    --line: #1E3352;
    --heading: #FFFFFF;
    --hero-bg: linear-gradient(160deg, #071225 0%, #0B2545 70%, #12345F 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.top .logo img { height: 40px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--link); }
.lang select {
  font: inherit; font-size: .9rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
}

/* Hero */
.hero { background: var(--hero-bg); color: #fff; padding: 96px 0 104px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -80px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(31,165,214,.35), transparent 65%);
  pointer-events: none;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); max-width: 14em; letter-spacing: -.02em; }
.hero p { font-size: 1.2rem; max-width: 36em; color: #D7E6F5; }
.button {
  display: inline-block; margin-top: 12px; padding: 12px 22px; border-radius: 10px;
  background: var(--sky); color: #04203A; font-weight: 600; text-decoration: none;
}
.button:hover { background: #5CCBF2; }

section { padding: 88px 0; }
section.alt { background: var(--mist); }
.lead { font-size: 1.15rem; max-width: 40em; }

/* FlightLog */
.status {
  border-left: 4px solid var(--sky); background: var(--wash);
  padding: 12px 16px; border-radius: 0 8px 8px 0; max-width: 40em;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { margin: 0; color: var(--slate); }
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 48px 0 0; padding: 4px 0 16px;
}
.shots figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(11,37,69,.15); }
.shots figcaption { font-size: .85rem; color: var(--slate); margin-top: 10px; text-align: center; }

/* Values */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; margin-top: 32px; }
.values h3::before {
  content: ""; display: block; width: 32px; height: 4px; border-radius: 2px;
  background: var(--sky); margin-bottom: 14px;
}
.values p { color: var(--slate); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: .9rem; color: var(--slate); }
footer .wrap { display: grid; gap: 24px; grid-template-columns: 1fr auto; }
footer .legal a { margin-right: 14px; white-space: nowrap; }
footer p { margin: 0 0 .4em; }

/* Legal pages */
.doc { max-width: 760px; padding: 64px 20px 88px; }
.doc h2 { font-size: 1.25rem; margin-top: 2em; }
.doc .meta { color: var(--slate); }
.doc nav a { margin-right: 14px; }

@media (max-width: 720px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 64px 0 72px; }
  section { padding: 64px 0; }
  footer .wrap { grid-template-columns: 1fr; }
}
