/* ============================================================
   Jedi Ops — marketing site
   Design tokens + components
   ============================================================ */

:root {
  /* Warm near-black backgrounds */
  --bg-0: #0d0b09;
  --bg-1: #14110d;
  --bg-2: #1b1611;
  --bg-3: #241d16;
  --bg-4: #2d241b;

  --line:        rgba(255, 246, 235, 0.08);
  --line-strong: rgba(255, 246, 235, 0.16);

  --text:       #f5efe7;
  --text-muted: #b3a99c;
  --text-dim:   #837868;

  /* Accent — controlled by --acc-h for tweaks */
  --acc-h: 32;
  --accent:      hsl(var(--acc-h) 95% 56%);
  --accent-2:    hsl(calc(var(--acc-h) + 12) 100% 60%);
  --accent-deep: hsl(calc(var(--acc-h) - 12) 90% 47%);
  --accent-soft: hsl(var(--acc-h) 95% 56% / 0.14);
  --accent-glow: hsl(var(--acc-h) 95% 56% / 0.35);
  --grad-accent: linear-gradient(135deg, var(--accent-2), var(--accent) 52%, var(--accent-deep));
  --grad-silver: linear-gradient(180deg, #ffffff 0%, #e4e2e6 38%, #b7b6bc 64%, #86848c 100%);

  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 20px;

  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Tweak: font pairing variants */
body[data-font="grotesk"] {
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-display: "Inter Tight", sans-serif;
}
body[data-font="mono-disp"] {
  --font-display: "Barlow Semi Condensed", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.no-motion, body.no-motion * { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #1a1107; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { position: relative; }
.section-pad { padding: 128px 0; }
@media (max-width: 720px) { .section-pad { padding: 84px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--accent-soft);
  white-space: nowrap;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow);
}

.label {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2);
  display: flex; align-items: center; gap: 12px;
}
.label::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; }

.display {
  font-size: clamp(40px, 6.6vw, 82px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 700; letter-spacing: -0.015em; }
.h3 { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; }

.silver {
  background: var(--grad-silver);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.accent-text {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-muted); line-height: 1.65; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-accent);
  color: #2a1604;
  box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: all 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(15, 12, 9, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s; position: relative; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.25s; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-text { display: none; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .mobile-menu {
    position: fixed; inset: 74px 0 auto 0; z-index: 99;
    background: rgba(15,12,9,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
    padding: 20px 28px 30px;
  }
  .mobile-menu.open { transform: translateY(0); }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); }
}
.mobile-menu { display: none; }
@media (max-width: 600px) { .mobile-menu { display: block; } }

/* ---------- hero ---------- */
.hero { padding-top: 150px; padding-bottom: 90px; position: relative; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, hsl(var(--acc-h) 95% 56% / 0.10), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg-1) 96%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; }
.hero h1 { margin: 26px 0 22px; }
.hero .lead { max-width: 660px; margin: 0 auto 38px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust-row {
  margin-top: 46px; display: flex; gap: 26px; justify-content: center; align-items: center;
  flex-wrap: wrap; color: var(--text-dim); font-size: 13.5px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.trust-row .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }

/* ---------- console preview ---------- */
.console-wrap { position: relative; z-index: 2; max-width: 880px; margin: 70px auto 0; }
.console {
  background: linear-gradient(180deg, rgba(36,29,22,0.92), rgba(20,16,12,0.95));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.console-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.console-dots { display: flex; gap: 7px; }
.console-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-4); display: block; }
.console-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.console-title .badge { color: var(--accent-2); }
.console-body { padding: 22px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; min-height: 280px; }
.c-line { display: flex; gap: 10px; margin-bottom: 6px; opacity: 0; transform: translateY(6px); }
.c-line.in { opacity: 1; transform: none; transition: all 0.4s var(--ease); }
.c-prompt { color: var(--accent); flex-shrink: 0; }
.c-user { color: var(--text); }
.c-sys { color: var(--text-dim); }
.c-ok { color: hsl(145 60% 55%); }
.c-key { color: var(--accent-2); }
.c-block {
  margin: 10px 0; padding: 12px 14px; border-left: 2px solid var(--accent);
  background: rgba(255,255,255,0.03); border-radius: 0 8px 8px 0; color: var(--text-muted);
}
.c-block strong { color: var(--text); }
.cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); margin-left: 2px; vertical-align: middle; animation: blink 1s steps(2) infinite; }
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ---------- generic grids/cards ---------- */
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head.center .label::before { display: none; }
.section-head h2 { margin: 18px 0 18px; }

.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.icon-chip {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  color: var(--accent-2); margin-bottom: 18px;
}
.icon-chip svg { width: 22px; height: 22px; }

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

/* problem section */
.problem { background: var(--bg-0); }
.problem-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 54px; }
.problem-body .lead + .lead { margin-top: 0; }
@media (max-width: 860px) { .problem-body { grid-template-columns: 1fr; gap: 22px; } }

/* what-is value pillars */
.whatis { background: linear-gradient(180deg, var(--bg-1), var(--bg-2)); }
.powered {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  margin-top: 30px; font-size: 14.5px; color: var(--text-muted);
}
.chip-soft {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 100px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03); font-weight: 500; font-size: 14px;
}
.chip-soft .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cap-card { grid-column: span 2; display: flex; flex-direction: column; }
.cap-card.wide { grid-column: span 3; }
@media (max-width: 980px) { .cap-grid { grid-template-columns: 1fr 1fr; } .cap-card, .cap-card.wide { grid-column: auto; } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.1em; margin-bottom: 14px;
}
.cap-card h3 { margin-bottom: 12px; }
.cap-card p { color: var(--text-muted); font-size: 15.5px; flex: 1; }
.query {
  margin-top: 20px; font-family: var(--font-mono); font-size: 13px;
  color: var(--text-muted); line-height: 1.6;
}
.query-line { display: flex; gap: 9px; padding: 9px 12px; border-radius: 9px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-bottom: 7px; }
.query-line:last-child { margin-bottom: 0; }
.query-line .q { color: var(--accent); flex-shrink: 0; }
.integ-list { margin-top: 18px; display: flex; flex-direction: column; gap: 11px; }
.integ-list li { list-style: none; display: flex; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.integ-list .ico { color: var(--accent-2); flex-shrink: 0; }
.integ-list b { color: var(--text); font-weight: 600; }

/* how it works */
.how { background: var(--bg-0); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-top: 20px; }
.step { padding: 0 26px; position: relative; }
.step:first-child { padding-left: 0; }
.step::before {
  content: ""; position: absolute; top: 27px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  z-index: 0;
}
.step:first-child::before { left: 27px; }
.step:last-child::before { display: none; }
.step-num {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px;
  background: var(--bg-3); border: 1px solid var(--line-strong); color: var(--accent-2);
  margin-bottom: 22px;
}
.step.active .step-num { background: var(--grad-accent); color: #2a1604; border-color: transparent; box-shadow: 0 0 30px -4px var(--accent-glow); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 78px; }
  .step::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--line-strong), transparent); }
  .step:first-child::before { top: 27px; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
}

/* integrations */
.integ { background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
@media (max-width: 760px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
.tile {
  display: flex; align-items: center; gap: 16px;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-2);
  transition: all 0.3s var(--ease);
}
.tile:hover { border-color: var(--accent); background: var(--bg-3); }
.tile-mark {
  width: 48px; height: 48px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
  font-size: 17px; letter-spacing: -0.02em; color: #1a1107;
  background: var(--grad-accent);
}
.tile-mark.neutral { background: var(--bg-4); color: var(--text); border: 1px solid var(--line-strong); }
.tile-name { font-weight: 600; font-size: 16px; }
.tile-status { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }
.tile-status.core { color: var(--accent-2); }
.coming { margin-top: 26px; text-align: center; color: var(--text-dim); font-size: 14.5px; }

/* pricing */
.pricing { background: var(--bg-0); }
.price-cards { margin-top: 12px; }
.price-cta { margin-top: 34px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.price-cta .lead { margin: 0; }

/* contact */
.contact { background: linear-gradient(180deg, var(--bg-1), var(--bg-0)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: 11px; padding: 13px 15px; transition: all 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23837868' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid select { border-color: hsl(8 80% 58%); }
.field .err { font-family: var(--font-body); font-size: 12.5px; color: hsl(8 85% 68%); display: none; letter-spacing: 0; }
.field.invalid .err { display: block; }
.form-submit { margin-top: 6px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 13px; color: var(--text-dim); }

.contact-aside { padding-top: 8px; }
.contact-aside .h3 { margin: 16px 0; }
.contact-points { list-style: none; margin: 26px 0; display: grid; gap: 16px; }
.contact-points li { display: flex; gap: 13px; color: var(--text-muted); font-size: 15.5px; }
.contact-points .ico { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.fallback { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-muted); }
.fallback a { color: var(--accent-2); font-weight: 600; }

/* success state */
.form-success {
  display: none; flex-direction: column; align-items: center; text-align: center;
  padding: 50px 30px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
}
.form-success.show { display: flex; animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.check-ring {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid var(--accent); margin-bottom: 22px;
}
.check-ring svg { width: 36px; height: 36px; color: var(--accent-2); }
.success-hidden { display: none !important; }

/* footer */
.footer { background: var(--bg-0); border-top: 1px solid var(--line); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer img { height: 36px; margin-bottom: 18px; }
.footer p, .footer a { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 500; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-legal { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

/* reveal animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
body.no-motion .reveal { opacity: 1; transform: none; transition: none; }
body.no-motion .c-line { opacity: 1; transform: none; }

/* tweaks panel */
#tweaks-root { position: fixed; right: 18px; bottom: 18px; z-index: 1000; font-family: var(--font-body); }
