/* NativeLink license server — shared dark/enterprise design tokens.
   Structure & feel inspired by the Unreal Engine download page; original copy,
   colors, and type. */

:root {
  /* NativeLink brand palette (from cloud-platform: dark navy + purple #7247ff) */
  --bg: #11131a;
  --bg-elev: #161823;
  --bg-card: #181a26;
  --border: #2a3140;
  --border-strong: #38404d;
  --text: #fafbfc;
  --text-dim: #979eaa;
  --text-faint: #6b7280;
  --accent: #7247ff;        /* NativeLink primary purple */
  --accent-2: #bd80ff;      /* secondary violet */
  --accent-press: #5b35e0;
  --on-accent: #ffffff;     /* text on the purple button */
  --danger: #ff5c6c;
  --warn: #f2b347;
  --ok: #46d39a;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1100px 600px at 78% -8%, rgba(114, 71, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 8% 0%, rgba(189, 128, 255, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(10, 12, 16, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.01em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.brand-logo { height: 22px; width: auto; display: block; }
.brand .sub { color: var(--text-faint); font-weight: 500; font-size: 14px; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--text-dim); }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 92px 0 36px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(114,71,255,0.07);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 22px 0 18px; font-weight: 800; max-width: 14ch;
}
.hero p.lede { font-size: clamp(17px, 2.1vw, 21px); color: var(--text-dim); max-width: 58ch; margin: 0; }

/* Pricing */
.section { padding: 56px 0; }
.section-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin: 0 0 6px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 0 0 30px; font-weight: 800; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px 28px; display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card.featured { border-color: rgba(114,71,255,0.45); box-shadow: 0 0 0 1px rgba(114,71,255,0.15), 0 30px 80px -40px rgba(114,71,255,0.45); }
.card .tier-tag { font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.02em; }
.card.featured .tier-tag { color: var(--accent); }
.card .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.card .price span { font-size: 16px; font-weight: 500; color: var(--text-faint); letter-spacing: 0; }
.card ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.card li { display: flex; gap: 11px; font-size: 15px; color: var(--text-dim); }
.card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 5px;
  background: rgba(114,71,255,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23bd80ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }
.card .spacer { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 650; font-family: var(--sans);
  padding: 13px 22px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; transition: transform 0.12s, background 0.2s, border-color 0.2s; width: 100%;
}
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-press)); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { width: auto; padding: 9px 15px; font-size: 14px; }

.custom-terms { margin-top: 28px; font-size: 15px; color: var(--text-faint); }
.custom-terms a { color: var(--text-dim); border-bottom: 1px dashed var(--border-strong); padding-bottom: 1px; }
.custom-terms a:hover { color: var(--accent); border-color: var(--accent); }

/* Code / commands */
.code {
  position: relative; font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  background: #0c0f14; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 48px 16px 16px; color: #d7ccff; overflow-x: auto; white-space: pre;
}
.code .copy { position: absolute; top: 8px; right: 8px; }
.copy {
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text-dim);
  border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: var(--sans);
}
.copy:hover { color: var(--accent); border-color: var(--accent); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border-strong); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.pill.active { color: var(--ok); border-color: rgba(70,211,154,0.4); } .pill.active::before { background: var(--ok); }
.pill.expired { color: var(--warn); border-color: rgba(242,179,71,0.4); } .pill.expired::before { background: var(--warn); }
.pill.revoked, .pill.unknown { color: var(--danger); border-color: rgba(255,92,108,0.4); }
.pill.revoked::before, .pill.unknown::before { background: var(--danger); }

/* Forms / tables (admin + customer) */
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
label { display: block; font-size: 13px; color: var(--text-dim); margin: 0 0 6px; font-weight: 600; }
input, select, textarea {
  width: 100%; background: #0c0f14; border: 1px solid var(--border-strong); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: var(--sans); margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
td .mono { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }

.notice { padding: 12px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 16px; }
.notice.err { background: rgba(255,92,108,0.1); border: 1px solid rgba(255,92,108,0.35); color: #ffb7bf; }
.notice.ok { background: rgba(70,211,154,0.1); border: 1px solid rgba(70,211,154,0.35); color: #a9efce; }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 32px 0; color: var(--text-faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.muted { color: var(--text-faint); }
.center { text-align: center; }
h3 { letter-spacing: -0.01em; }
