/* ============================================================
   Nebula Tech Venture — COTI / Fireflight Node
   Dark theme, plain CSS. No framework.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/Metropolis-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #1b2129;
  --bg-band: #1f2731;
  --surface: #262e3a;
  --surface-2: #2e3845;
  --border: #353f4e;
  --text: #e6e9ef;
  --muted: #9aa6b6;
  --heading: #f4f6fa;

  --accent: #7c5cff;       /* privacy / COTI v2 purple */
  --accent-2: #38bdf8;     /* cyan highlight */
  --accent-soft: rgba(124, 92, 255, 0.14);
  --gradient: linear-gradient(100deg, #7c5cff 0%, #38bdf8 100%);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Metropolis", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #7dd3fc; }

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

img { max-width: 100%; height: auto; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--tight { padding: 2.5rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(27, 33, 41, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
}
.brand:hover { color: var(--heading); }
.brand img { height: 38px; width: auto; display: block; }
.brand__name { font-size: 1.05rem; letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
}
.nav-links a:hover { color: var(--heading); background: var(--surface); }
.nav-links a.active { color: var(--heading); background: var(--accent-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--heading);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: var(--bg-band);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1.25rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.85rem; }
  .brand__name { display: none; }
}

/* ============================================================
   Intro band (slim hero replacement)
   ============================================================ */
.band {
  background:
    radial-gradient(900px 300px at 15% -20%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(700px 300px at 95% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    var(--bg-band);
  border-bottom: 1px solid var(--border);
}
.band__inner {
  padding: 3.25rem 0 3rem;
}
.band h1 { margin-bottom: 0.5rem; }
.band .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}
.band .tagline strong { color: var(--text); font-weight: 600; }

/* page heading (interior pages) */
.page-head { padding: 3rem 0 1rem; }
.page-head p { color: var(--muted); max-width: 65ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(124, 92, 255, 0.45); }
.btn--ghost {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border);
}
.btn--ghost:hover { color: var(--heading); background: var(--surface-2); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* ============================================================
   Cards & grids
   ============================================================ */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

/* highlighted / featured card */
.card--feature {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border-color: #44506180;
}

/* stat tiles */
.stat {
  text-align: center;
  padding: 1.4rem 1rem;
}
.stat__num {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.stat__label {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ---------- Link lists ---------- */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.link-list li {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
}
.link-list i {
  color: var(--accent);
  font-size: 0.55rem;
  position: relative;
  top: -2px;
}
.link-list .desc { color: var(--muted); }

/* notice / coming-soon banner */
.notice {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid #44506180;
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--text);
}
.notice i { color: var(--accent); font-size: 1.1rem; margin-top: 0.2rem; }
.notice strong { color: var(--heading); }

/* ============================================================
   Contact / socials
   ============================================================ */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.5rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
}
.social-link:hover {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}
.contact-line i { color: var(--accent); width: 1.3rem; text-align: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-band);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer__brand { max-width: 320px; }
.footer__brand .brand { margin-bottom: 0.75rem; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; }
.footer .socials { margin-top: 1rem; }
.footer .social-link { width: 44px; height: 44px; font-size: 1.05rem; }

.footer__links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer__links a { color: var(--text); font-weight: 500; }
.footer__links a:hover { color: var(--accent-2); }

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ============================================================
   Forms & calculators
   ============================================================ */
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field .hint { font-weight: 400; color: var(--muted); }

.input,
.select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .addon {
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
}
.input-group .addon + .input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa6b6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

/* read-only result figure */
.result {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  color: var(--heading);
}

.result-hero {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--accent-soft);
  border: 1px solid #44506180;
  border-radius: var(--radius);
}
.result-hero .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.result-hero .value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-top: 0.25rem;
}

/* tables */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table td .unit { color: var(--muted); font-size: 0.9rem; }
.table .num { font-variant-numeric: tabular-nums; }

.small-note { font-size: 0.88rem; color: var(--muted); }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin: 3rem 0; }
