/* ============================================================
   TECH TACTICS — light, warm, product-focused
   Palette and feel inspired by breezlabs.ai:
   warm off-whites, slate ink, burnt-orange accent, soft radii.
   ============================================================ */

:root {
  --bg: #fffcf8;            /* warm off-white */
  --bg-tint: #f8fafc;       /* cool section tint */
  --bg-warm: #fff1e0;       /* orange cream tint */
  --card: #ffffff;
  --ink: #0f172a;           /* slate-900 */
  --ink-2: #334155;         /* slate-700 */
  --muted: #64748b;         /* slate-500 */
  --line: #e2e8f0;          /* slate-200 */
  --line-2: #cbd5e1;        /* slate-300 */
  --accent: #e85d04;        /* burnt orange */
  --accent-dark: #c24d03;
  --accent-soft: #fed7aa;
  --green: #1fa463;
  --green-soft: #d9f3e5;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --blue: #075985;
  --blue-soft: #e0f2fe;

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px -12px rgba(15, 23, 42, 0.18);

  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 4.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
ul { list-style: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.serif, em.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

.container { max-width: 1180px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Serif italic accent used inside headings */
.section__title em, .hero__title em, .contact__title em, .manifesto__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.005em;
}

/* ---------- Pulse dot ---------- */
.pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.nav__inner {
  max-width: 1180px; margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__logo { display: flex; align-items: center; gap: 0.65rem; }
.nav__mark { width: 2rem; height: 2rem; border-radius: 7px; }
.nav__wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-2);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn--primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn--ghost {
  background: var(--card);
  border-color: var(--line-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn--nav { padding: 0.55rem 1.05rem; font-size: 0.88rem; }
.btn--lg { padding: 0.9rem 1.7rem; font-size: 1rem; }
.btn--xl { padding: 1.05rem 2rem; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.btn__arrow { width: 1.05em; height: 1.05em; transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(3.5rem, 8vh, 6rem);
  background:
    radial-gradient(ellipse 60% 50% at 78% 18%, rgba(232, 93, 4, 0.07), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.05) 1px, transparent 0) 0 0 / 28px 28px,
    var(--bg);
}
.hero__inner {
  max-width: 1180px; margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__inner > * { min-width: 0; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 33rem;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.hero__note { font-size: 0.68rem; }

/* ---------- Hero demo: operations queue ---------- */
.hero__demo { position: relative; }
.hero__demo-glow {
  position: absolute; inset: 8% -6% -4% -6%; z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, rgba(232, 93, 4, 0.13), transparent 70%);
  filter: blur(8px);
}
.queue {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.queue__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, #fff, #fdfaf5);
}
.queue__title { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; }
.queue__live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--green); font-size: 0.66rem; }
.queue__list { position: relative; padding: 0.6rem; min-height: 19.5rem; overflow: hidden; }
.queue__item {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.2s ease;
}
.queue__item + .queue__item { margin-top: 0.15rem; }
.queue__item.is-new { background: var(--bg-warm); border-color: var(--accent-soft); }
.queue__icon {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-tint);
  border: 1px solid var(--line);
}
.queue__icon svg { width: 1.05rem; height: 1.05rem; stroke: var(--ink-2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.queue__text { flex: 1; min-width: 0; }
.queue__label {
  display: block;
  font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.queue__time { display: block; font-size: 0.72rem; color: var(--muted); }
.chip {
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.chip--green { background: var(--green-soft); color: var(--green); }
.chip--amber { background: var(--amber-soft); color: var(--amber); }
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--orange { background: var(--bg-warm); color: var(--accent); }
.queue__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #fdfaf5;
  font-size: 0.64rem;
}
.queue__foot b { color: var(--ink); font-weight: 600; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 0.85rem 0;
}
.ticker { contain: layout paint; }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__item { white-space: nowrap; color: var(--ink-2); font-size: 0.72rem; }
.ticker__item i { color: var(--accent); font-style: normal; padding: 0 0.8rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 11vh, 8rem) 0; }
.section--tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.section__tag {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* ---------- Cards (shared) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }

/* ---------- Problem stats ---------- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.stat { padding: clamp(1.5rem, 2.8vw, 2.2rem); }
.stat__num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.stat__desc { color: var(--muted); font-size: 0.95rem; }
.stat__desc em.serif { color: var(--ink); }

/* ---------- Playbook ---------- */
.plays {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.play { padding: clamp(1.6rem, 3vw, 2.3rem); }
.play__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 1.3rem; gap: 1rem;
}
.play__num {
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--bg-warm);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.play__diagram { width: clamp(76px, 9vw, 110px); flex-shrink: 0; }
.pd-node { fill: none; stroke: var(--accent); stroke-width: 2; }
.pd-dot { fill: var(--line-2); }
.pd-route { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 0.06 0.04; }
.play__name {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.play__desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.play__list { display: grid; gap: 0.5rem; }
.play__list li {
  position: relative; padding-left: 1.45rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-2);
}
.play__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.18em;
  width: 0.95em; height: 0.95em;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4 10-10' stroke='%231fa463' stroke-width='3.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- Process steps ---------- */
.steps { max-width: 46rem; }
.step { display: flex; gap: 1.4rem; }
.step__rail {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 2.2rem;
}
.step__dot {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1.5px solid var(--accent-soft);
  position: relative;
  flex-shrink: 0;
}
.step__dot::after {
  content: ""; position: absolute; inset: 35%;
  border-radius: 50%;
  background: var(--accent);
}
.step__line { width: 1.5px; flex: 1; background: var(--line); margin: 0.4rem 0; }
.step__body { padding-bottom: 2.6rem; }
.step:last-child .step__body { padding-bottom: 0; }
.step__tag { color: var(--accent); display: block; margin-bottom: 0.45rem; margin-top: 0.45rem; }
.step__name { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.55rem; }
.step__desc { color: var(--muted); max-width: 38rem; }

/* ---------- Manifesto ---------- */
.section--tint-warm {
  background: var(--bg-warm);
  border-top: 1px solid #fde6c8;
  border-bottom: 1px solid #fde6c8;
  padding: clamp(4rem, 10vh, 7rem) 0;
}
.manifesto__text {
  font-size: clamp(1.45rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}
.manifesto__text em { color: var(--accent); font-size: 1.05em; }

/* ---------- Contact ---------- */
.contact__inner { text-align: center; }
.contact__title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0.9rem 0 1.2rem;
}
.contact__sub {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2.4rem;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}
.contact__actions {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #f8fafc;
  padding: 2.6rem 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.4rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 700; }
.footer__brand .nav__mark rect { fill: #fffcf8; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 1.6rem; color: #94a3b8; font-size: 0.66rem; }
.footer__meta a:hover { color: var(--accent-soft); }

/* ---------- Animation helpers (visible without JS) ---------- */
.anim-in { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__demo { max-width: 30rem; }
  .plays { grid-template-columns: 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  :root { --nav-h: 3.9rem; }
  .hero__cta .btn { width: 100%; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; max-width: 22rem; }
  .footer__inner, .footer__meta { flex-direction: column; align-items: center; text-align: center; gap: 0.8rem; }
  .queue__list { min-height: 17.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
