/* Kryptiva.se. Layout: plain descriptive hero beside a hex dump of the company line; services as a ruled index; a numbered process; founders with monograms; contact as a deep pink closing band. */
:root {
  color-scheme: dark;
  --bg: #0c0a10;
  --surface: #15121b;
  --surface-2: #1d1925;
  --border: #352e40;
  --text: #f1eef5;
  --muted: #b7b0c3;
  --dim: #8f879c;           /* decorative hex bytes only, never body text */
  --accent: #e0458f;        /* pink for text and outlines; 4.9:1 on --bg */
  --accent-strong: #9c0f52; /* deep pink for filled areas with white text; 8:1 */
  --accent-strong-hover: #b5145f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --max: 70rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-text-size-adjust: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: #f07fb4; }
:focus-visible { outline: 3px solid #f07fb4; outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent-strong); color: #fff; padding: 0.75rem 1rem; border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 10, 16, 0.96); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.brand:hover { color: var(--text); }
.site-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: 0.6rem 0.7rem; min-height: 2.75rem; color: var(--text); text-decoration: none; border-radius: 6px; }
.site-nav a:hover { background: var(--surface-2); text-decoration: underline; }
.site-nav .lang-switch { border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
p { margin: 0 0 1rem; max-width: 62ch; }
.label { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.section { padding: 5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

/* Hero */
.hero { padding: 5.5rem 0 5rem; border-bottom: 1px solid var(--border); background: radial-gradient(55rem 28rem at 90% 0%, rgba(156, 15, 82, 0.3), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-block; padding: 0.8rem 1.3rem; min-height: 2.75rem; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--accent-strong); color: #fff; }
.btn-primary:hover { background: var(--accent-strong-hover); color: #fff; }
.btn-secondary { border-color: var(--accent); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.hexdump { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hexdump figcaption { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.hexdump pre { margin: 0; padding: 1rem; font-family: var(--mono); font-size: 0.8rem; line-height: 1.9; color: var(--dim); overflow-x: auto; }
.hexdump .hl { color: var(--accent); font-weight: 600; }
.hexdump .off { color: var(--muted); }

/* Services index */
.group { margin-top: 3.5rem; }
.group > h3 { font-family: var(--mono); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.5rem; }
.index { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--accent-strong); }
.index li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.4rem 2.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--border); }
.index h4 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.index p { margin: 0; color: var(--muted); max-width: none; }

/* Process */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.4rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 0.9rem; color: var(--accent); margin-bottom: 0.9rem; }
.steps h3 { font-size: 1.15rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); }

/* About */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; list-style: none; margin: 2.5rem 0 0; padding: 0; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.6rem; }
.person-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.mono-mark { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--accent-strong); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.person h3 { margin: 0; font-size: 1.25rem; }
.person .role { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.98rem; }
.person p:last-child { margin-bottom: 0; }

/* Contact band */
.contact { background: var(--accent-strong); color: #fff; border-top: 0; }
.section + .contact { border-top: 0; }
.contact .lead { color: #fff; }
.contact a { color: #fff; }
.contact a:hover { color: #ffd9ea; }
.contact :focus-visible { outline-color: #fff; }
.contact-list { display: flex; flex-wrap: wrap; gap: 1.25rem 3.5rem; margin: 2rem 0 0; padding: 0; }
.contact-list dt { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: #ffd9ea; }
.contact-list dd { margin: 0.25rem 0 0; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }

.site-footer { padding: 2rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer p { margin: 0; }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .index li { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
}
@media (max-width: 26rem) { .hexdump .asc { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
