/* X-Ray Agency — global styles */
:root {
  --bg: #07080a;
  --bg-2: #0b0d11;
  --panel: #0e1116;
  --panel-2: #11151b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #e8edf2;
  --ink-2: #aab4c0;
  --ink-3: #6c7785;
  --accent: oklch(0.85 0.15 200);   /* cyan */
  --accent-2: oklch(0.7 0.18 290);  /* violet */
  --signal: oklch(0.85 0.18 150);   /* green */
  --warn: oklch(0.78 0.18 60);
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Golos Text", "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background:
    radial-gradient(1200px 700px at 80% -10%, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 20%, color-mix(in oklab, var(--accent-2) 8%, transparent) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle dot grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Selection */
::selection { background: color-mix(in oklab, var(--accent) 50%, transparent); color: #fff; }

/* Container */
.container { width: min(1240px, 92vw); margin: 0 auto; position: relative; z-index: 2; }

/* Mono label */
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.02);
  color: var(--ink);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .35s ease, color .25s ease;
  position: relative; isolation: isolate;
}
.btn:hover { border-color: color-mix(in oklab, var(--accent) 60%, var(--line-2)); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent), 0 0 30px color-mix(in oklab, var(--accent) 20%, transparent); }
.btn .arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 22%, transparent), color-mix(in oklab, var(--accent) 8%, transparent));
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line-2));
  color: #eaf8ff;
  box-shadow: inset 0 1px 0 color-mix(in oklab, var(--accent) 40%, transparent), 0 0 30px color-mix(in oklab, var(--accent) 18%, transparent);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 color-mix(in oklab, var(--accent) 50%, transparent), 0 0 40px color-mix(in oklab, var(--accent) 30%, transparent); }
.btn--ghost { background: transparent; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(7,8,10,0.78), rgba(7,8,10,0.55));
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; }
.brand__mark {
  width: 28px; height: 28px; position: relative;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, var(--line-2));
  border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 70%);
  display: grid; place-items: center;
}
.brand__mark::before, .brand__mark::after {
  content: ""; position: absolute; background: color-mix(in oklab, var(--accent) 90%, white);
}
.brand__mark::before { width: 14px; height: 1px; transform: rotate(45deg); }
.brand__mark::after  { width: 14px; height: 1px; transform: rotate(-45deg); }
.brand__name { font-size: 15px; }
.brand__name span { color: var(--accent); }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

.header__right { display: flex; align-items: center; gap: 12px; }

/* Lang switch */
.lang {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink-3);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  padding: 6px 10px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.lang button.is-active { color: #07080a; background: var(--accent); box-shadow: 0 0 18px color-mix(in oklab, var(--accent) 35%, transparent); }
.lang button:not(.is-active):hover { color: var(--ink); }

/* Section frame */
section { padding: 120px 0; position: relative; z-index: 2; scroll-margin-top: 70px; }
@media (max-width: 720px) { section { padding: 80px 0; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 1px; background: color-mix(in oklab, var(--accent) 80%, white); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(48px, 7.6vw, 110px); font-weight: 500; }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h3 { font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -0.01em; }

p { color: var(--ink-2); }

/* Glow card */
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .35s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

/* Hairline divider */
.hr { height: 1px; background: var(--line); }

/* Scanline animation */
@keyframes scan { 0% { transform: translateY(-110%); } 100% { transform: translateY(110%); } }
@keyframes blink { 50% { opacity: 0.25; } }
@keyframes drift { from { background-position: 0 0; } to { background-position: 0 32px; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Footer */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer__row { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 500; }
.footer__col a { display: block; color: var(--ink-2); padding: 4px 0; transition: color .2s; font-size: 14px; }
.footer__col a:hover { color: var(--ink); }
.footer__legal { display: flex; gap: 18px; align-items: center; color: var(--ink-3); font-size: 12.5px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__legal a { color: var(--ink-3); }
.footer__legal a:hover { color: var(--ink-2); }

/* Mobile nav hide */
@media (max-width: 920px) {
  .nav { display: none; }
}

/* Section heading row */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 48ch; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }
