/* ===================================================================
   TASKFORGE IT — MARKETING SITE v2
   Direction shift: dark "command-center" canvas instead of light SaaS
   default. Grounded in the same navy+ember brand as v1, but pushed much
   further — this is deliberately how a sysadmin's own dashboard already
   feels (dark mode, glowing status, monospace data), turned up for a
   marketing moment instead of daily-use restraint.

   Signature: a live, animated hexagon core in the hero (slow rotation +
   pulse), echoing the mark itself, plus a faint circuit-grid texture
   throughout — both literal to "forged" hardware/network imagery, not
   generic sci-fi decoration.
   =================================================================== */

@font-face {
  font-family: 'Cascadia Code';
  font-weight: bold;
  src: url('/assets/cascadia-code-bold.ttf') format('truetype');
  font-display: swap;
}

:root {
  --void: #050b18;
  --deep: #0a1930;
  --surface: #0f2340;
  --surface-2: #14294a;
  --navy: #0a3c77;
  --navy-bright: #0c549f;
  --ember: #ff6b35;
  --ember-glow: #ff9466;
  --white: #ffffff;
  --mist: #93a8c9;
  --mist-dim: #5c6f8f;
  --line: rgba(255,255,255,.08);
  --green: #3ddc84;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--white);
  background: var(--void);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

.display { font-family: 'Cascadia Code', 'Consolas', monospace; font-weight: bold; letter-spacing: -0.01em; }
.mono { font-family: 'Cascadia Code', 'Consolas', monospace; }
.eyebrow {
  font-family: 'Cascadia Code', 'Consolas', monospace; font-weight: bold; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* circuit-grid texture, used as a repeating background on dark sections */
.grid-tex {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ---------- preview chrome ---------- */
.preview-banner {
  background: #000; color: white; text-align: center; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; padding: 7px; position: sticky; top: 0; z-index: 999; border-bottom: 1px solid var(--ember);
}
.preview-banner b { color: var(--ember); }

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 28px;
  max-width: 1180px; margin: 0 auto; position: sticky; top: 0; z-index: 100;
  background: rgba(5,11,24,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 10px; }
.nav .brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--mist); }
.nav-links a:hover { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 8px;
  padding: 13px 24px; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.btn-ember { background: var(--ember); color: white; box-shadow: 0 0 24px rgba(255,107,53,.5), 0 4px 14px rgba(255,107,53,.35); }
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255,107,53,.7), 0 8px 22px rgba(255,107,53,.45); }
.btn-ghost { background: rgba(255,255,255,.04); border: 1.5px solid var(--line); color: white; }
.btn-ghost:hover { border-color: var(--ember); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 28px 60px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 500px at 78% 15%, rgba(255,107,53,.14), transparent 60%),
              radial-gradient(ellipse 700px 600px at 10% 60%, rgba(12,84,159,.25), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.1; margin: 18px 0 20px; }
.hero h1 .ember-word { color: var(--ember); text-shadow: 0 0 30px rgba(255,107,53,.5); }
.hero p.lede { font-size: 17px; color: var(--mist); max-width: 500px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: 13px; color: var(--mist-dim); }
.hero-trust b { color: var(--mist); }

/* animated hex core */
.hex-stage { position: relative; display: flex; align-items: center; justify-content: center; height: 380px; }
.hex-ring { position: absolute; width: 340px; height: 340px; animation: spin 40s linear infinite; opacity: .5; }
.hex-ring.r2 { width: 260px; height: 260px; animation-duration: 28s; animation-direction: reverse; opacity: .35; }
@keyframes spin { to { transform: rotate(360deg); } }
.hex-core {
  position: relative; width: 180px; height: 180px; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 40px rgba(255,107,53,.55));
  animation: pulse 3.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { filter: drop-shadow(0 0 40px rgba(255,107,53,.5)); } 50% { filter: drop-shadow(0 0 60px rgba(255,107,53,.8)); } }
.hex-core img { width: 96px; height: 96px; }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: rise 3.2s ease-in infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(-160px) scale(.2); opacity: 0; } }

/* ---------- section shells ---------- */
.section { padding: 84px 28px; position: relative; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; margin: 14px 0 12px; }
.section-head p { color: var(--mist); font-size: 15.5px; }

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 13.5px; }
table.compare th:first-child, table.compare td:first-child { text-align: left; color: var(--mist); font-weight: 600; min-width: 200px; }
table.compare thead th { background: var(--surface); font-family: 'Cascadia Code', monospace; font-weight: bold; padding: 18px; font-size: 14px; }
table.compare thead th.tier-team { color: var(--ember); }
table.compare tbody tr:hover { background: rgba(255,255,255,.02); }
table.compare .ideal-row td { font-size: 12.5px; color: var(--mist); font-style: italic; background: rgba(255,107,53,.04); }
table.compare .yes { color: var(--green); font-weight: bold; }
table.compare .no { color: var(--mist-dim); }
table.compare .price-row td { padding-top: 18px; font-family: 'Cascadia Code', monospace; font-weight: bold; font-size: 16px; color: var(--white); }

/* ---------- features (comprehensive showcase) ---------- */
.feat-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.feat-tab {
  background: var(--surface); border: 1.5px solid var(--line); color: var(--mist); border-radius: 30px;
  padding: 10px 20px; font-size: 13px; font-weight: 700;
}
.feat-tab.active { background: var(--ember); border-color: var(--ember); color: white; box-shadow: 0 0 20px rgba(255,107,53,.4); }
.feat-panels { position: relative; }
.feat-panel { display: none; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-panel.active { display: grid; }
.feat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: border-color .2s, transform .2s; }
.feat-card:hover { border-color: rgba(255,107,53,.5); transform: translateY(-3px); }
.feat-card .fi { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,107,53,.12); color: var(--ember); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.feat-card h3, .feat-card .feat-title { font-size: 15px; margin-bottom: 7px; font-weight: 700; }
.feat-card p { font-size: 13px; color: var(--mist); line-height: 1.55; }
.feat-card .tier-badge { display: inline-block; margin-top: 10px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--mist); }
.feat-card .tier-badge.b { color: var(--ember); background: rgba(255,107,53,.12); }
.feat-card .tier-badge.soon { color: #7aa2ff; background: rgba(122,162,255,.14); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 22px; display: flex; flex-direction: column;
  position: relative; background: var(--surface);
}
.plan.featured { border: 1px solid var(--ember); box-shadow: 0 0 40px rgba(255,107,53,.18); background: linear-gradient(180deg, rgba(255,107,53,.06), var(--surface) 30%); }
.plan .tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--ember); color: white;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  box-shadow: 0 0 16px rgba(255,107,53,.5);
}
.plan .name { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--mist); margin-bottom: 4px; }
.plan .ideal { font-size: 12px; color: var(--mist-dim); margin-bottom: 16px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.plan .price .amt { font-family: 'Cascadia Code', monospace; font-weight: bold; font-size: 30px; }
.plan .price .cur { font-size: 15px; color: var(--mist); font-weight: 600; }
.plan .price .price-original { font-size: 16px; color: var(--mist); text-decoration: line-through; font-weight: 500; order: -1; }
.plan .cadence { font-size: 12.5px; color: var(--mist-dim); margin-bottom: 20px; }
.plan .specs { list-style: none; font-size: 13.5px; margin-bottom: 22px; flex: 1; }
.plan .specs li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--mist); }
.plan .specs li:last-child { border-bottom: none; }
.plan .specs li .v { font-weight: 700; margin-left: auto; color: white; }
.plan .footnote { font-size: 11.5px; color: var(--mist-dim); text-align: center; margin-top: 10px; }
.addons-note { text-align: center; font-size: 13px; color: var(--mist); margin-top: 34px; }
.addons-note a { color: var(--ember); font-weight: 700; text-decoration: none; }

/* ---------- signup ---------- */
.signup-section, .success-section { display: none; padding: 80px 28px; min-height: 680px; }
.signup-section.active, .success-section.active { display: block; }
.signup-box { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px; }
.signup-box .eyebrow { display: inline-flex; margin-bottom: 10px; }
.signup-box h2 { font-size: 26px; margin-bottom: 6px; }
.signup-box .sub { color: var(--mist); font-size: 14px; margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11.5px; font-weight: 700; color: var(--mist); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 14px;
  font-family: inherit; background: var(--deep); color: white;
}
.field input::placeholder { color: var(--mist-dim); }
.field input:focus, .field select:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,107,53,.15); }
.tier-picker { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 22px; }
.tier-picker button { border: 1.5px solid var(--line); background: var(--deep); border-radius: 8px; padding: 11px 6px; font-size: 12px; font-weight: 700; color: var(--mist); }
.tier-picker button.selected { border-color: var(--ember); background: rgba(255,107,53,.12); color: var(--ember); }
.form-error { background: rgba(233,69,96,.12); border: 1px solid rgba(233,69,96,.3); color: #ff8fa3; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }
.back-link { display: inline-block; font-size: 13px; color: var(--mist); text-decoration: none; margin-bottom: 20px; }
.back-link:hover { color: var(--ember); }

/* ---------- success ---------- */
.success-box { max-width: 640px; margin: 0 auto; }
.success-check { width: 56px; height: 56px; border-radius: 50%; background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.4); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; box-shadow: 0 0 24px rgba(61,220,132,.25); }
.success-box .headline { text-align: center; margin-bottom: 32px; }
.success-box h2 { font-size: 26px; margin-bottom: 8px; }
.success-box .sub { color: var(--mist); font-size: 14px; }
.license-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-bright) 60%, #04214a 100%); border-radius: 14px; padding: 26px 28px; margin-bottom: 20px; box-shadow: 0 0 40px rgba(12,84,159,.3); }
.license-card .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 6px; }
.license-card .key { font-family: 'Cascadia Code', monospace; font-weight: bold; font-size: 24px; letter-spacing: .02em; margin-bottom: 18px; }
.license-card .meta-row { display: flex; justify-content: space-between; font-size: 13px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); }
.entitlement-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.entitlement-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 18px; }
.entitlement-grid .item { background: var(--deep); border-radius: 10px; padding: 12px; text-align: center; }
.entitlement-grid .item .n { font-family: 'Cascadia Code', monospace; font-weight: bold; font-size: 20px; color: var(--ember); }
.entitlement-grid .item .l { font-size: 10.5px; color: var(--mist); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11.5px; padding: 4px 10px; border-radius: 20px; background: var(--deep); color: var(--mist-dim); font-weight: 700; }
.chip.on { background: rgba(61,220,132,.12); color: var(--green); }
.next-steps { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; font-size: 14px; }
.next-steps h3 { font-size: 14px; margin-bottom: 10px; }
.next-steps ol { padding-left: 18px; color: var(--mist); }
.next-steps li { padding: 3px 0; }

/* ---------- footer ---------- */
footer { background: var(--deep); border-top: 1px solid var(--line); padding: 48px 28px 32px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .fcol h3 { color: white; font-size: 13px; margin-bottom: 10px; }
footer .fcol div, footer .fcol a { font-size: 13px; color: var(--mist); text-decoration: none; display: block; margin-bottom: 6px; }
footer .fcol a:hover { color: var(--ember); }
.footer-bottom { max-width: 1180px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mist-dim); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .feat-panel, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .field-row, .tier-picker { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
}

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 4px; font-size: 15px; font-weight: 600; color: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--ember-glow); }
.faq-arrow { transition: transform .2s; color: var(--mist-dim); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease;
  font-size: 14px; color: var(--mist); padding: 0 4px; line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 4px 18px; }


/* ---------- mobile nav (CSS-only checkbox toggle, no JS needed) ---------- */
.nav-toggle-checkbox { display: none; }
.nav-toggle-label { display: none; font-size: 28px; line-height: 1; cursor: pointer; color: white; padding: 4px 6px; }

/* ---------- roadmap grids (was inline styles - now real classes so media queries can actually reach them) ---------- */
.roadmap-teaser-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; max-width: 960px; margin: 0 auto 36px; }
.roadmap-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav-toggle-label { display: block; }
  .nav-links {
    flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    background: var(--deep); border-top: 1px solid var(--line); margin-top: 0;
  }
  .nav-links a, .nav-links .btn { width: 100%; padding: 14px 4px; margin: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-toggle-checkbox:checked ~ .nav-links { max-height: 420px; margin-top: 16px; }
}

@media (max-width: 640px) {
  .pricing-grid, .feat-panel, .roadmap-cards-grid { grid-template-columns: 1fr; }
  .roadmap-teaser-grid { grid-template-columns: 1fr 1fr; }
  .entitlement-grid { grid-template-columns: 1fr 1fr; }
  .hex-stage { height: 240px; }
  .hex-ring { width: 220px; height: 220px; }
  .hex-ring.r2 { width: 170px; height: 170px; }
  .hex-core { width: 120px; height: 120px; }
  .hex-core img { width: 64px; height: 64px; }
}

@media (max-width: 420px) {
  .roadmap-teaser-grid { grid-template-columns: 1fr; }
}
