/* ============================================================
   Tandem Ops — tandemops.uk
   Deep ink navy + electric indigo accent. Mobile-first.
   ============================================================ */

:root {
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --bg-3: #121b33;
  --card: #111a30;
  --line: rgba(148, 163, 216, 0.14);
  --line-strong: rgba(148, 163, 216, 0.26);
  --text: #eef1fa;
  --muted: #9aa6c8;
  --muted-2: #6f7ba0;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.35);
  --green: #34d399;
  --white: #ffffff;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 30, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand svg { flex-shrink: 0; }
.brand .brand-tandem { color: var(--text); }
.brand .brand-ops {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a.nav-link {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav a.nav-link:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-nav { padding: 9px 16px; font-size: 0.88rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 480px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero h1 .grad {
  background: linear-gradient(92deg, #a5b4fc 0%, var(--accent) 45%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px auto 34px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 640px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-note { font-size: 0.85rem; color: var(--muted-2); }

/* ---------- trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
}
.trustbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.trustbar-item { display: inline-flex; align-items: center; gap: 8px; }
.trustbar-item svg { color: var(--accent-2); flex-shrink: 0; }

/* ---------- generic section ---------- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 0; }

/* ---------- who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
.who-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.who-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.who-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 11px;
  color: #a5b4fc;
  margin-bottom: 16px;
}
.who-card h3 { margin-bottom: 8px; }
.who-card p { font-size: 0.92rem; color: var(--muted); }
.who-fit {
  margin-top: 28px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.who-fit strong { color: var(--text); }

/* ---------- offers / pricing ---------- */
.offers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.offer-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.offer-card.featured {
  border-color: rgba(99, 102, 241, 0.55);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.10), rgba(99, 102, 241, 0.02) 55%), var(--card);
  box-shadow: 0 12px 44px rgba(99, 102, 241, 0.18);
}
.offer-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.offer-step {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.offer-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.offer-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
}
.offer-price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.offer-price-note { font-size: 0.85rem; color: var(--muted-2); margin-bottom: 18px; }
.offer-price-note .pilot { color: var(--green); font-weight: 600; }
.offer-desc { font-size: 0.93rem; color: var(--muted); margin-bottom: 20px; }
.offer-list { list-style: none; margin-bottom: 26px; flex: 1; }
.offer-list li {
  position: relative;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 6px 0 6px 28px;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
.offers-note {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.offers-note a { color: #a5b4fc; border-bottom: 1px dotted var(--accent); }

/* ---------- what we automate ---------- */
.automate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.automate-item {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s;
}
.automate-item:hover { border-color: var(--line-strong); }
.automate-item .who-icon { margin-bottom: 0; flex-shrink: 0; }
.automate-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.automate-item p { font-size: 0.9rem; color: var(--muted); }
.automate-item .save {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ---------- metrics strip ---------- */
.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 40px;
}
.metric {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px;
}
.metric-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #a5b4fc, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.metric-label { font-size: 0.88rem; color: var(--muted); }
.metrics-footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-2);
}

/* ---------- testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.testi-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.testi-quote-mark {
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.testi-text { font-size: 0.98rem; color: var(--text); flex: 1; }
.testi-who {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
}
.testi-name { font-size: 0.92rem; font-weight: 600; }
.testi-role { font-size: 0.82rem; color: var(--muted-2); }
.testi-soon {
  border: 1px dashed var(--line-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
}
.testi-soon p { color: var(--muted-2); font-size: 0.92rem; max-width: 260px; }
.testi-soon .soon-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.why-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.why-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-item p { font-size: 0.92rem; color: var(--muted); }
.why-item .who-icon { margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
}
.faq-q .chev {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.25s;
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent-2); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- final CTA ---------- */
.final-cta {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.final-cta-card {
  position: relative;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--bg-3);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 26px;
  padding: 64px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.final-cta h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.final-cta .section-sub { margin: 16px auto 32px; }
.final-cta .hero-ctas { margin-bottom: 14px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 300px; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .automate-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 760px) {
  .who-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .offers-grid { grid-template-columns: repeat(3, 1fr); }
  .offer-card.featured { transform: scale(1.03); }
  .offer-card.featured:hover { transform: scale(1.03) translateY(-3px); }
  .automate-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 110px 0 90px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (max-width: 640px) {
  .nav .nav-link { display: none; }
  section { padding: 60px 0; }
}
