/* ── FONTS
   Before uploading rename these two files in /fonts/ on the server:
   Inter-VariableFont_opsz,wght.ttf        rename to Inter-Variable.ttf
   Inter-Italic-VariableFont_opsz,wght.ttf rename to Inter-Variable-Italic.ttf
   The comma in the original filename breaks CSS parsing.
─────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu Mono';
  src: url('fonts/UbuntuMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --white:      #ffffff;
  --off-white:  #f8f8fa;
  --surface:    #f2f2f5;
  --border:     #e4e4ea;
  --border-mid: #d0d0d8;
  --muted:      #9898a8;
  --soft:       #58586a;
  --body:       #28283a;
  --heading:    #0c0c1a;
  --accent:     #e8533a;
  --accent-dk:  #c94428;
  --accent-lt:  #fdf1ee;
  --green:      #2a9e68;
  --green-lt:   #edf7f3;
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-head:  'Lato', system-ui, sans-serif;
  --font-mono:  'Ubuntu Mono', 'Courier New', monospace;
  --r:          4px;
  --r-lg:       12px;
  --pad:        clamp(4.5rem, 9vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  --w:          1100px;
}

/* ── BASE ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--white);
  color: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.15; }
code, pre, kbd { font-family: var(--font-mono); }

/* ── COOKIE BANNER ───────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.06);
}
#cookie-banner p {
  font-size: 0.84rem;
  color: var(--soft);
  max-width: 62ch;
  line-height: 1.6;
}
#cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-actions button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--soft);
  transition: all 0.18s;
}
.cookie-actions button:hover { border-color: var(--soft); color: var(--heading); }
.cookie-btn-accept {
  background: var(--heading) !important;
  color: var(--white) !important;
  border-color: var(--heading) !important;
}
.cookie-btn-accept:hover { opacity: 0.82 !important; }

/* ── COOKIE MODAL ────────────────────────────────────────── */
#cookie-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(12,12,26,0.5);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#cookie-modal.open { display: flex; }
.cookie-modal-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2.25rem;
  max-width: 460px;
  width: 100%;
}
.cookie-modal-box h3 { font-size: 1rem; margin-bottom: 1.25rem; }
.cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-row .toggle-label { font-size: 0.88rem; font-weight: 500; color: var(--heading); }
.cookie-toggle-row span { font-size: 0.78rem; color: var(--muted); display: block; margin-top: 2px; }
.cookie-modal-actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; justify-content: flex-end; }
.cookie-modal-actions button {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--soft);
  transition: all 0.18s;
}
.cookie-modal-actions button:hover { border-color: var(--soft); color: var(--heading); }
.cookie-modal-save { background: var(--heading) !important; color: var(--white) !important; border-color: var(--heading) !important; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--soft);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r);
  transition: color 0.18s, background 0.18s;
  display: block;
}
.nav-links a:hover { color: var(--heading); background: var(--surface); }
.nav-links a.active { color: var(--heading); font-weight: 500; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--heading); margin: 5px 0; transition: transform 0.25s, opacity 0.25s; }

/* ── MAIN ────────────────────────────────────────────────── */
main { padding-top: 64px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, black 20%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--w);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 18px; height: 1px; background: var(--accent); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--heading);
  max-width: 16ch;
  margin-bottom: 1.1rem;
  line-height: 1.1;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--soft);
  max-width: 50ch;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-logo img { width: clamp(180px, 22vw, 300px); height: auto; opacity: 0.9; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--r);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--heading); color: var(--white); border-color: var(--heading); }
.btn-primary:hover { opacity: 0.8; transform: translateY(-1px); }
.btn-outline { background: var(--white); color: var(--soft); border-color: var(--border-mid); }
.btn-outline:hover { color: var(--heading); border-color: var(--soft); }
.btn-accent { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { padding: var(--pad); }
.section-alt { background: var(--off-white); }
.section-inner { max-width: var(--w); margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); font-weight: 500; display: block; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 0.75rem; }
.section-header p { color: var(--soft); font-weight: 300; max-width: 54ch; font-size: 1rem; }

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { padding: 3rem clamp(1.5rem, 6vw, 5rem) 2.5rem; border-bottom: 1px solid var(--border); background: var(--off-white); }
.page-header-inner { max-width: var(--w); margin: 0 auto; }
.page-header .eyebrow { margin-bottom: 0.6rem; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.65rem; }
.page-header p { font-size: 1rem; color: var(--soft); font-weight: 300; max-width: 56ch; line-height: 1.7; }

/* ── SOFTWARE CARDS ──────────────────────────────────────── */
.software-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.software-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.software-card:hover { border-color: var(--border-mid); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.software-card-badge { display: inline-block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; padding: 0.25rem 0.65rem; border-radius: 2px; margin-bottom: 1rem; }
.badge-live { background: var(--green-lt); color: var(--green); }
.badge-soon { background: var(--surface); color: var(--muted); }
.software-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.software-card .tagline { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }
.software-card p { font-size: 0.92rem; color: var(--soft); line-height: 1.7; margin-bottom: 1rem; }
.card-footer { display: flex; gap: 0.6rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ── FEATURE TABLE ───────────────────────────────────────── */
.feature-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1.5rem; }
.feature-table th { text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 0.6rem 1rem; border-bottom: 2px solid var(--border); }
.feature-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--body); vertical-align: top; }
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: var(--off-white); }
.feature-table td:first-child { font-weight: 500; color: var(--heading); white-space: nowrap; }

/* ── FEATURE LIST ────────────────────────────────────────── */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; }
.feature-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.92rem; color: var(--soft); line-height: 1.55; padding: 0.75rem 1rem; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r); }
.feature-list li::before { content: ''; display: block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; margin-top: 0.45rem; }

/* ── INSTALL TABS ────────────────────────────────────────── */
.install-tabs { display: flex; border: 1px solid var(--border); border-radius: var(--r) var(--r) 0 0; overflow: hidden; border-bottom: none; }
.install-tab { flex: 1; padding: 0.65rem 1rem; font-size: 0.84rem; font-weight: 500; font-family: var(--font-sans); text-align: center; cursor: pointer; background: var(--surface); color: var(--soft); border: none; border-right: 1px solid var(--border); transition: background 0.18s, color 0.18s; }
.install-tab:last-child { border-right: none; }
.install-tab.active { background: var(--white); color: var(--heading); }
.install-tab:hover:not(.active) { background: var(--off-white); }
.install-panel { display: none; border: 1px solid var(--border); border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.install-panel.active { display: block; }
.install-panel pre { background: var(--heading); color: #e8e8f0; padding: 1.25rem 1.5rem; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.7; overflow-x: auto; }
.install-note { padding: 1rem 1.5rem; font-size: 0.86rem; color: var(--soft); background: var(--off-white); border-top: 1px solid var(--border); }
.install-note code { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0.1rem 0.4rem; font-size: 0.84rem; }

/* ── SYSTEM REQUIREMENTS ─────────────────────────────────── */
.sysreq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.sysreq-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; background: var(--white); }
.sysreq-card .os-name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--heading); margin-bottom: 0.75rem; }
.sysreq-card ul { list-style: none; font-size: 0.86rem; color: var(--soft); line-height: 1.8; }

/* ── KEY BLOCK ───────────────────────────────────────────── */
.key-block { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.key-block-header { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.key-block-header span { font-size: 0.78rem; font-weight: 500; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.key-block-header button { font-family: var(--font-sans); font-size: 0.78rem; font-weight: 500; padding: 0.3rem 0.8rem; border-radius: var(--r); border: 1px solid var(--border-mid); background: var(--white); color: var(--soft); cursor: pointer; transition: all 0.18s; }
.key-block-header button:hover { color: var(--heading); border-color: var(--soft); }
.key-block pre { padding: 1.5rem; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; color: var(--body); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ── DOWNLOAD TABLE ──────────────────────────────────────── */
.download-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.download-table th { text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 0.65rem 1rem; border-bottom: 2px solid var(--border); background: var(--off-white); }
.download-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--body); vertical-align: middle; }
.download-table tr:last-child td { border-bottom: none; }
.download-table tr:hover td { background: var(--off-white); }
.version-badge { display: inline-block; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.5rem; border-radius: 2px; background: var(--green-lt); color: var(--green); margin-left: 0.5rem; }
.download-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.84rem; font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.download-link:hover { color: var(--accent-dk); }

/* ── DOC CARDS ───────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.doc-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem; background: var(--white); transition: border-color 0.2s; }
.doc-card:hover { border-color: var(--border-mid); }
.doc-card .doc-type { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 0.6rem; }
.doc-card h4 { font-size: 0.98rem; font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.doc-card p { font-size: 0.84rem; color: var(--soft); line-height: 1.6; margin-bottom: 1.1rem; }
.doc-card .doc-links { display: flex; gap: 0.6rem; }
.doc-link { font-size: 0.8rem; font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc-link:hover { color: var(--accent-dk); }

/* ── CONTACT FORM ────────────────────────────────────────── */
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 0.45rem; }
.form-group input,
.form-group textarea { width: 100%; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r); color: var(--heading); font-family: var(--font-sans); font-size: 0.95rem; padding: 0.75rem 1rem; outline: none; transition: border-color 0.18s, background 0.18s; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }

/* ── LEGAL ───────────────────────────────────────────────── */
.legal-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.84rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-link:hover { color: var(--accent-dk); }
.legal-body h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.75rem; }
.legal-body h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.legal-body p { font-size: 0.95rem; color: var(--soft); line-height: 1.8; margin-bottom: 1rem; }
.legal-body ul { margin: 0.75rem 0 1rem 1.25rem; font-size: 0.95rem; color: var(--soft); line-height: 1.8; }

/* ── NOTICES ─────────────────────────────────────────────── */
.notice { padding: 1rem 1.25rem; border-radius: var(--r); font-size: 0.88rem; line-height: 1.65; margin-bottom: 1.5rem; }
.notice-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.notice-warn { background: var(--accent-lt); border: 1px solid #fcc9be; color: var(--accent-dk); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: var(--off-white); border-top: 1px solid var(--border); padding: 2.5rem clamp(1.5rem, 6vw, 5rem); }
.footer-inner { max-width: var(--w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; color: var(--muted); transition: color 0.18s; }
.footer-links a:hover { color: var(--heading); }
.footer-copy { font-size: 0.78rem; color: var(--muted); width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 1rem clamp(1.5rem, 6vw, 5rem); gap: 0.25rem; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo { display: none; }
}
@media (max-width: 600px) {
  .install-tabs { flex-direction: column; border-radius: var(--r); border-bottom: 1px solid var(--border); }
  .install-tab { border-right: none; border-bottom: 1px solid var(--border); }
  .install-tab:last-child { border-bottom: none; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── UTILITY ─────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
::placeholder { color: var(--border-mid); }
::selection { background: var(--accent); color: var(--white); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.55s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
