/* Absolute DB v7.5.2
 * Copyright (c) 2024-2026 D.H.Maree. All rights reserved.
 * Author/Creator: David H Maree | Owner: D.H.Maree (ABN 21 498 105 915)
 * Licensed to: SupportCALL AU | SPDX-License-Identifier: BSL-1.1
 */
/* ─── Reset & Variables ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0d0f14;
  --bg2:      #13161f;
  --bg3:      #1a1e2a;
  --border:   #252a38;
  --accent:   #4f7cff;
  --accent2:  #7c4fff;
  --green:    #22d87a;
  --yellow:   #f5c842;
  --red:      #ff4f4f;
  --text:     #e8eaf0;
  --muted:    #8891a8;
  --code-bg:  #111420;
  --radius:   8px;
  --shadow:   0 4px 24px rgba(0,0,0,.5);
  --font:     'Frutiger', 'Frutiger Next', 'Univers', 'Univers Condensed', 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ───────────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: .875em; background: var(--code-bg); padding: .15em .4em; border-radius: 4px; color: #a8d4ff; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; overflow-x: auto; font-family: var(--mono); font-size: .875rem; line-height: 1.7; color: #c9d8ff; }
pre code { background: none; padding: 0; color: inherit; }

/* ─── Layout ───────────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

/* ─── Navigation ───────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,15,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .925rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { background: var(--accent); color: #fff !important; padding: .45rem 1.1rem; border-radius: 6px; font-weight: 600 !important; transition: opacity .15s !important; }
.nav-cta:hover { opacity: .88; text-decoration: none !important; }

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,124,255,.12) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(79,124,255,.12); border: 1px solid rgba(79,124,255,.3);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 99px; margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3d6aff; text-decoration: none; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); text-decoration: none; }

/* ─── Stats Bar ────────────────────────────────────────────────────────── */
.stats-bar { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--accent); font-family: var(--mono); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .15rem; }

/* ─── Cards ────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s;
}
.card:hover { border-color: rgba(79,124,255,.4); }
.card-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }

/* ─── Section Headers ──────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.tag { display: inline-block; background: rgba(79,124,255,.12); color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 4px; margin-bottom: 1rem; }

/* ─── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 1200px) and (min-width: 901px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.pricing-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.pricing-card.featured { border-color: var(--accent); background: linear-gradient(135deg, rgba(79,124,255,.08), var(--bg2)); position: relative; }
.pricing-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .1em; padding: .25rem .8rem; border-radius: 0 0 6px 6px; }
.plan-name { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .5rem; }
.plan-price { font-size: 2.5rem; font-weight: 800; margin-bottom: .25rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan-desc { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; margin-bottom: .6rem; color: var(--muted); }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: .05em; }
.plan-features li.x::before { content: '—'; color: var(--border); }
.plan-cta { display: block; text-align: center; padding: .75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .15s; }
.plan-cta.primary { background: var(--accent); color: #fff; }
.plan-cta.primary:hover { background: #3d6aff; }
.plan-cta.ghost { border: 1px solid var(--border); color: var(--text); }
.plan-cta.ghost:hover { border-color: var(--muted); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ─── Feature Table ────────────────────────────────────────────────────── */
.feature-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.feature-table th { background: var(--bg3); padding: .85rem 1rem; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--border); }
.feature-table th:not(:first-child) { text-align: center; }
.feature-table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.feature-table td:not(:first-child) { text-align: center; }
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: rgba(255,255,255,.02); }
.feature-table .check { color: var(--green); font-size: 1.1rem; }
.feature-table .cross { color: var(--border); }
.feature-table .section-row td { background: var(--bg3); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: .5rem 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* ─── Code Block with Title ────────────────────────────────────────────── */
.code-block { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; }
.code-title { background: var(--bg3); padding: .6rem 1rem; font-size: .8rem; color: var(--muted); font-family: var(--mono); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.code-title .copy-btn { cursor: pointer; color: var(--muted); font-size: .75rem; background: none; border: none; font-family: var(--font); padding: .2rem .5rem; border-radius: 4px; transition: all .15s; }
.code-title .copy-btn:hover { color: var(--text); background: var(--border); }
.code-block pre { border: none; border-radius: 0; margin: 0; }

/* ─── Tabs ─────────────────────────────────────────────────────────────── */
.tabs { border-bottom: 1px solid var(--border); display: flex; gap: .25rem; margin-bottom: 1.5rem; }
.tab { padding: .6rem 1.1rem; font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─── Docs Page ────────────────────────────────────────────────────────── */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.doc-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; text-decoration: none; transition: border-color .15s; display: block; }
.doc-card:hover { border-color: var(--accent); text-decoration: none; }
.doc-card .doc-num { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: .35rem; }
.doc-card h4 { font-size: .95rem; color: var(--text); margin-bottom: .35rem; }
.doc-card p { font-size: .8rem; color: var(--muted); margin-bottom: 0; }

/* ─── Download Page ────────────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step { display: flex; gap: 1.5rem; margin-bottom: 2rem; }
.step-num { flex-shrink: 0; width: 2rem; height: 2rem; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .875rem; margin-top: .15rem; }
.step-body h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-body p { color: var(--muted); font-size: .9rem; }
.method-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.method-tab { padding: .6rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); font-size: .8rem; font-weight: 600; cursor: pointer; color: var(--muted); background: var(--bg2); transition: all .15s; }
.method-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(79,124,255,.08); }
@media (max-width: 600px) { .method-tabs { grid-template-columns: 1fr 1fr; } }

/* ─── Hero Terminal ────────────────────────────────────────────────────── */
.terminal { background: #0a0c12; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: 640px; margin: 0 auto; }
.terminal-bar { background: var(--bg3); padding: .65rem 1rem; display: flex; align-items: center; gap: .5rem; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.td-r { background: #ff5f57; }
.td-y { background: #febc2e; }
.td-g { background: #28c840; }
.terminal-title { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); font-family: var(--mono); }
.terminal-body { padding: 1.25rem 1.5rem; font-family: var(--mono); font-size: .85rem; line-height: 1.8; }
.t-prompt { color: #4ade80; }
.t-cmd { color: #e2e8ff; }
.t-out { color: var(--muted); }
.t-val { color: #93c5fd; }

/* ─── Performance Section ──────────────────────────────────────────────── */
.perf-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.perf-metric { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.perf-metric:last-child { border-bottom: none; }
.perf-name { color: var(--muted); font-size: .875rem; }
.perf-value { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: .95rem; }
.perf-bar-wrap { margin-top: .4rem; background: var(--bg3); border-radius: 4px; height: 4px; }
.perf-bar { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }

/* ─── Comparison Table ─────────────────────────────────────────────────── */
.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare thead th { background: var(--bg3); padding: 1rem; border-bottom: 2px solid var(--border); font-weight: 700; }
.compare thead th:first-child { text-align: left; }
.compare thead th:not(:first-child) { text-align: center; min-width: 140px; }
.compare tbody td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255,255,255,.04); }
.compare tbody td:not(:first-child) { text-align: center; }
.compare .sec td { background: var(--bg3); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.compare .c-yes { color: var(--green); font-weight: 700; }
.compare .c-no { color: var(--border); }
.compare .c-val { color: var(--accent); font-weight: 700; font-family: var(--mono); }
.compare .highlighted { background: rgba(79,124,255,.05) !important; }

/* ─── Banner / CTA ─────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(79,124,255,.15), rgba(124,79,255,.15));
  border: 1px solid rgba(79,124,255,.3);
  border-radius: 16px; padding: 3.5rem 2rem; text-align: center;
}
.cta-banner h2 { margin-bottom: .75rem; }
.cta-banner p { color: var(--muted); max-width: 500px; margin: 0 auto 2rem; }
.cta-banner .hero-cta { margin-bottom: 0; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; align-items: start; }
.footer-inner > * { min-width: 0; }
.footer-brand { grid-column: 1; grid-row: 1; }
.footer-inner > div:nth-child(2) { grid-column: 2; grid-row: 1; }
.footer-inner > div:nth-child(3) { grid-column: 3; grid-row: 1; }
.footer-inner > div:nth-child(4) { grid-column: 4; grid-row: 1; }
.footer-inner > div:nth-child(5) { grid-column: 5; grid-row: 1; }
.footer-brand p { color: var(--muted); font-size: .875rem; margin-top: .75rem; max-width: 260px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--muted); font-size: .875rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: .8rem; }
.footer-badges { display: flex; gap: .75rem; }
.badge { background: var(--bg3); border: 1px solid var(--border); color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: .25rem .6rem; border-radius: 4px; text-transform: uppercase; }
@media (max-width: 1100px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / 4; grid-row: 1; } .footer-inner > div:nth-child(2) { grid-column: 1; grid-row: 2; } .footer-inner > div:nth-child(3) { grid-column: 2; grid-row: 2; } .footer-inner > div:nth-child(4) { grid-column: 3; grid-row: 2; } .footer-inner > div:nth-child(5) { grid-column: 1; grid-row: 3; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / 3; grid-row: 1; } .footer-inner > div:nth-child(2), .footer-inner > div:nth-child(3), .footer-inner > div:nth-child(4), .footer-inner > div:nth-child(5) { grid-column: auto; grid-row: auto; } .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; } }

/* ─── Changelog ────────────────────────────────────────────────────────── */
.changelog-entry { border-left: 2px solid var(--border); padding-left: 1.5rem; margin-bottom: 2.5rem; position: relative; }
.changelog-entry::before { content: ''; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; position: absolute; left: -6px; top: .4rem; }
.changelog-version { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 700; }
.changelog-date { font-size: .8rem; color: var(--muted); margin-left: .75rem; }
.changelog-title { font-size: 1.1rem; font-weight: 700; margin: .35rem 0 .75rem; }
.changelog-list { list-style: none; padding: 0; }
.changelog-list li { display: block; position: relative; padding-left: 1.1rem; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; line-height: 1.65; }
.changelog-list li::before { content: '•'; color: var(--accent); position: absolute; left: 0; top: 0; }
.changelog-list li strong { color: var(--text); }
.changelog-list li code { font-family: var(--mono); font-size: .82rem; background: var(--code-bg); color: var(--accent); padding: .1rem .35rem; border-radius: 4px; }

/* ─── Utilities ────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.green { color: var(--green); }
.accent { color: var(--accent); }
.mono { font-family: var(--mono); }
