/* ═══════════════════════════════════════════════════════════
   CXOsignal — main.css
   Theme derived from ADO UI Standards (ado-palette.md / ado-theme.md)
   Aesthetic: clean, minimal — inspired by ATT.com and Apple.com
   ═══════════════════════════════════════════════════════════ */

/* ── Layer 1: ADO Palette (from ado-palette.md) ─────────── */
:root {
  /* Neutrals */
  --ado-gray-10:  #FAF9F8;
  --ado-gray-20:  #F3F2F1;
  --ado-gray-30:  #EDEBE9;
  --ado-gray-40:  #E1DFDD;
  --ado-gray-50:  #C8C6C4;
  --ado-gray-60:  #A19F9D;
  --ado-gray-70:  #605E5C;
  --ado-gray-80:  #323130;
  --ado-gray-90:  #201F1E;

  /* Blues — midpoint between ADO #0078D4 and Jira #1868DB */
  --ado-blue:       #0C70D8;
  --ado-blue-dark:  #0A5FB8;
  --ado-blue-tint:  #EBF4FF;
  --ado-blue-tint2: #D6EAFF;

  /* Signal */
  --ado-green:      #107C10;
  --ado-amber:      #E6A817;
  --ado-amber-dark: #835B00;
  --ado-red:        #A4262C;
  --ado-red-dark:   #8B1D22;

  /* Signal tints */
  --ado-green-tint: #DFF6DD;
  --ado-amber-tint: #FFF4CE;
  --ado-red-tint:   #FDE7E9;
}

/* ── Layer 2: Site Semantic Tokens ──────────────────────── */
:root {
  /* Text */
  --text:        var(--ado-gray-80);
  --text-muted:  var(--ado-gray-70);
  --text-title:  var(--ado-gray-90);
  --text-inv:    #fff;
  --link:        var(--ado-blue);

  /* Backgrounds */
  --bg:          #fff;
  --bg-subtle:   var(--ado-gray-10);
  --bg-chrome:   var(--ado-gray-20);
  --bg-dark:     #0A1628;          /* hero / CTA band — custom deep navy */
  --bg-dark-mid: #0F2040;

  /* Borders */
  --border:       var(--ado-gray-30);
  --border-field: var(--ado-gray-50);

  /* Buttons */
  --btn-primary-bg:    var(--ado-blue);
  --btn-primary-hover: var(--ado-blue-dark);

  /* Signal */
  --signal-green: var(--ado-green);
  --signal-amber: var(--ado-amber);
  --signal-amber-text: var(--ado-amber-dark);
  --signal-red:   var(--ado-red);
  --pill-green-bg: var(--ado-green-tint);
  --pill-amber-bg: var(--ado-amber-tint);
  --pill-red-bg:   var(--ado-red-tint);

  /* Typography (from ado-theme.md) */
  --font-stack: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --radius-sm:  3px;
  --radius-md:  6px;
  --radius-pill: 10px;
  --max-width:  1160px;
  --nav-height: 64px;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Shared Layout Helpers ──────────────────────────────── */
.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--link);
  margin-bottom: 12px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subhead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
}

/* ── Buttons ─────────────────────────────────────────────
   Per controls.md:
   - Primary: filled blue, title case, single per context
   - Secondary / ghost: neutral bg, cancel/alternative
   ─────────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  padding: 6px 20px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: #fff;
  border-color: var(--btn-primary-bg);
}
.btn-primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); }

.btn-secondary {
  background: var(--bg-chrome);
  color: var(--text);
  border-color: var(--border-field);
}
.btn-secondary:hover { background: var(--ado-gray-40); }

.btn-ghost {
  background: transparent;
  color: var(--link);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--ado-blue-tint); }

/* Large variants for hero / CTA */
.btn-lg {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
}

/* White-on-dark variant for CTA band */
.btn-white {
  background: #fff;
  color: var(--ado-blue);
  border-color: #fff;
}
.btn-white:hover { background: var(--ado-blue-tint); border-color: var(--ado-blue-tint); }

/* Full-width for pricing cards */
.btn-full { width: 100%; }

/* ── Navigation ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
/* Footer logo is slightly smaller */
.site-footer .nav-logo img { height: 36px; }

/* Nav links */
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-title); background: var(--bg-chrome); }

/* Nav actions */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - var(--nav-height));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-content { flex: 1; min-width: 0; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--link);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-disclaimer {
  font-size: 12px;
  color: var(--ado-gray-60);
}

/* Widget mockup (hero visual) */
.hero-visual {
  flex: 0 0 420px;
  max-width: 420px;
}

.widget-mockup {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  font-size: 12px;
}

.wm-chrome {
  height: 36px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.wm-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-title);
}

.wm-dots { display: flex; gap: 5px; }
.wm-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-field);
}

.wm-body { padding: 12px 10px 14px; }

.wm-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.wm-obj-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.wm-kr-table { width: 100%; }

.wm-kr-header {
  display: grid;
  grid-template-columns: 1fr 60px 72px;
  padding: 5px 4px;
  border-bottom: 1px solid var(--ado-gray-40);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.wm-kr-row {
  display: grid;
  grid-template-columns: 1fr 60px 72px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border);
}
.wm-kr-row:last-child { border-bottom: none; }

.wm-kr-name  { font-size: 12px; color: var(--text); }
.wm-kr-target { font-size: 12px; color: var(--text-muted); text-align: right; }

.wm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}
.wm-pill-green { background: var(--pill-green-bg); color: var(--signal-green); }
.wm-pill-amber { background: var(--pill-amber-bg); color: var(--signal-amber-text); }
.wm-pill-red   { background: var(--pill-red-bg);   color: var(--signal-red); }

/* ── Social Proof ─────────────────────────────────────────── */
.social-proof {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
}

.sp-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ado-gray-60);
  margin-bottom: 18px;
}

.sp-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.sp-logo-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--ado-gray-50);
  letter-spacing: 0.01em;
}

/* ── Features ────────────────────────────────────────────── */
.features {
  padding: 96px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon-blue {
  background: var(--ado-blue-tint);
  color: var(--link);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
  margin-top: 16px;
}

.step { padding: 0 8px; }

.step-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--link);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.25;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-title);
  margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.step-connector {
  align-self: center;
  height: 2px;
  background: var(--border);
  margin-top: -40px;
}

/* ── Stat Banner ─────────────────────────────────────────── */
.stat-banner {
  background: var(--bg-dark);
  padding: 72px 0;
}

.stat-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
}

.stat-value {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── Integrations ─────────────────────────────────────────── */
.integrations { padding: 96px 0; }

.integrations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.integration-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.integration-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--signal-green);
  flex-shrink: 0;
}

.integration-badge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.int-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
  transition: box-shadow 0.15s;
}
.int-badge:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.07); }

.int-badge-primary {
  background: var(--ado-blue-tint);
  border-color: var(--link);
  color: var(--link);
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 0;
}

.pricing .section-subhead { margin-bottom: 48px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--link);
  box-shadow: 0 0 0 1px var(--link), 0 8px 24px rgba(0,120,212,0.1);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--link);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pricing-tier {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing-price { margin-bottom: 4px; }
.pricing-amount { font-size: 36px; font-weight: 700; color: var(--text-title); }
.pricing-unit   { font-size: 14px; color: var(--text-muted); }

.pricing-period {
  font-size: 12px;
  color: var(--ado-gray-60);
  margin-bottom: 24px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--signal-green);
  font-weight: 700;
  font-size: 12px;
}

/* ── CTA Band ─────────────────────────────────────────────── */
.cta-band {
  background: var(--bg-dark);
  padding: 96px 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--ado-gray-90);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 80px;
}

.footer-brand { flex: 0 0 220px; }
.footer-brand .nav-logo { margin-bottom: 12px; }
/* Invert logo to white on dark footer background */
.footer-brand .nav-logo img { filter: brightness(0) invert(1); }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.footer-nav {
  flex: 1;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-nav-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-nav-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-nav-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .feature-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid         { grid-template-columns: 1fr; }
  .step-connector     { display: none; }
  .integrations-inner { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid       { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .stat-grid          { flex-direction: column; gap: 40px; }
  .stat-divider       { width: 64px; height: 1px; }
  .footer-container   { flex-direction: column; gap: 40px; }
  .footer-brand       { flex: none; }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 56px 24px 64px;
    gap: 48px;
  }
  .hero-visual { flex: none; width: 100%; max-width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* Mobile nav open state */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }
  .nav-links.open + .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(var(--nav-height) + 180px);
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 0 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .pricing-grid { max-width: 100%; }
  .footer-nav   { gap: 32px; }
}
