/* =====================================================================
   NUKEY DESIGN DNA — base stylesheet  (v1 · 2026-11-27)
   Copy this file into a new brand / product site as assets/dna.css.
   Change ONLY --ac (the brand colour). Everything else stays the same.
   Read NUKEY-DESIGN-DNA.md for the rules behind every value.
   ===================================================================== */

/* 1. TOKENS ----------------------------------------------------------- */
:root {
  /* dark values (used only when the visitor switches to dark) */
  --bg: #0A0B0D; --fg: #FFFFFF; --pt: #C4CBD2;
  --ac: #7C5CFF;                 /* ← THE ONLY LINE A NEW BRAND CHANGES */
  --ok: #19B37A; --warn: #C2410C; --err: #E5484D;
  /* derived: never hard-code these, they follow bg / pt */
  --panel: color-mix(in srgb, var(--bg) 92%, var(--pt));
  --panel-2: color-mix(in srgb, var(--bg) 86%, var(--pt));
  --line: color-mix(in srgb, var(--pt) 14%, transparent);
  --line-2: color-mix(in srgb, var(--pt) 26%, transparent);
  --muted: color-mix(in srgb, var(--pt) 72%, var(--bg));
  /* type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* space + shape + motion */
  --pad: clamp(16px, 4vw, 56px);
  --max: 1180px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
/* light is the DEFAULT (html has data-theme="light") */
[data-theme="light"] { --bg: #F2F3F5; --fg: #0B0E12; --pt: #3A414B; --panel: #FFFFFF; --panel-2: #F7F8FA; color-scheme: light; }

/* 2. BASE ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 15px/1.55 var(--display); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--ac); color: #fff; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* 3. TICKER (brand colour strip at the very top) ---------------------- */
.ticker { overflow: hidden; background: var(--ac); color: #fff; }
.ticker-track { white-space: nowrap; display: inline-block; padding: 7px 0; animation: dna-tick 30s linear infinite; }
.ticker-track span { padding: 0 30px; }
@keyframes dna-tick { to { transform: translateX(-50%); } }

/* 4. TOP BAR ---------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; border-radius: 10px; flex: none; display: block; object-fit: cover; background: var(--ac); }
.wm { font-weight: 800; font-stretch: 125%; letter-spacing: .04em; font-size: 15px; }
.wm em, .name2 { font-style: normal; color: var(--ac); }
.wm-sub { color: var(--muted); font-size: 10px; display: block; margin-top: -2px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sys { display: flex; align-items: center; gap: 8px; color: var(--muted); padding-right: 14px; border-right: 1px solid var(--line); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ac); animation: dna-pulse 2.4s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 60%, transparent); }
@keyframes dna-pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { background: var(--line); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
[data-theme="light"] .theme-btn .ic-sun, :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }

/* 5. HERO (grid + brand glow) ----------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 30%, #000 20%, transparent 75%); }
.hero::after { content: ''; position: absolute; width: 44vw; aspect-ratio: 1; right: -12vw; top: -16vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--ac) 20%, transparent), transparent 62%); }
.hero-in { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--pad) clamp(32px, 4vw, 60px);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-in.solo { grid-template-columns: 1fr; }
.eyebrow { color: var(--ac); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--ac); }
.hero h1 { font-size: clamp(38px, 6.2vw, 76px); line-height: .98; font-weight: 900; font-stretch: 112%; letter-spacing: -.03em; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--ac); }
.hero p { margin-top: 18px; color: var(--muted); font-size: 16.5px; max-width: 600px; }
.steps-mini { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.steps-mini span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); font-weight: 600; font-size: 13.5px; }
.steps-mini b { font-family: var(--mono); font-size: 11px; color: var(--ac); }

/* 6. LAYOUT + SECTION HEADS ------------------------------------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 36px var(--pad) 80px; }
.sec { padding-top: clamp(48px, 7vw, 96px); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.sec-head .mono { color: var(--ac); }
.sec-head h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* 7. CARD ------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; min-width: 0; }
.card-h { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.card-h .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; background: var(--fg); color: var(--bg); flex: none; font-family: var(--mono); }
.card-h .ico.ac { background: var(--ac); color: #fff; }
.card-h .no { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .08em; }

/* 8. FORM ------------------------------------------------------------- */
label, .lbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 2px; }
.field { margin-bottom: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=tel], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 18%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
select { appearance: none; cursor: pointer; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 54%, calc(100% - 14px) 54%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

/* 9. BUTTONS ---------------------------------------------------------- */
.btn { border: 1px solid transparent; cursor: pointer; font-weight: 700; font-size: 14.5px; border-radius: 12px; padding: 13px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: transform .12s, background .15s, border-color .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ac); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--ac) 80%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--ac) 88%, #000); }
.btn-dark { background: var(--fg); color: var(--bg); }
.btn-dark:hover { opacity: .9; }
.btn-soft { background: transparent; border-color: var(--line-2); color: var(--fg); }
.btn-soft:hover { background: var(--line); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
/* the NUKEY "unlock" button: mono caps label + square arrow box */
.launch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 22px; border: 1px solid var(--line-2); border-radius: 12px;
  background: transparent; color: var(--fg); text-decoration: none; cursor: pointer; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; }
.btn-arrow { width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ac); color: #fff; }
.btn-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.launch:hover { background: var(--ac); border-color: var(--ac); color: #fff; }
.launch:hover .btn-arrow { background: rgba(255, 255, 255, .2); }
.launch:hover .btn-arrow svg { transform: rotate(45deg); }

/* 10. SMALL PARTS ----------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pt); opacity: .6; }
.pill.live { border-color: color-mix(in srgb, var(--ac) 45%, var(--line-2)); }
.pill.live::before { background: var(--ac); opacity: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; background: var(--line); color: var(--pt); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips em { font-style: normal; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--ac) 10%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--ac) 22%, transparent); }
.facts { display: grid; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); } .facts dd { text-align: right; overflow-wrap: anywhere; }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.howto div { padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px; color: var(--muted); }
.howto b { display: block; color: var(--fg); margin-bottom: 4px; }
.tip { padding: 12px 14px; border-radius: 11px; border-left: 4px solid var(--ac); background: color-mix(in srgb, var(--ac) 8%, var(--panel-2)); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s; z-index: 80;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--fg); color: var(--bg); box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 11. FOOTER ---------------------------------------------------------- */
footer { border-top: 1px solid var(--line); }
.foot { max-width: var(--max); margin: 0 auto; padding: 26px var(--pad) 34px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.foot a { text-decoration: none; color: var(--fg); font-weight: 700; }
.foot a:hover { color: var(--ac); }

/* 12. RESPONSIVE + MOTION --------------------------------------------- */
@media (max-width: 900px) { .hero-in, .grid-2, .grid-side { grid-template-columns: 1fr; } .howto { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .sys { display: none; } .card { padding: 18px; } .btn-lg { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
