/* ================================================================
   GitPilot landing page
   Brand palette (locked across web, VS Code, CLI):
     --accent:        #D95C3D   primary orange
     --accent-bright: #ff7a3c   hover / ring
     --accent-hover:  #C44F32   press
     --bg:            #0B0B0D   page
     --surface:       #1C1C1F   cards
     --surface-2:     #17171A   alt section
     --border:        #27272A   hairlines
     --fg:            #EDEDED   text primary
     --muted:         #A1A1AA   text secondary
   ================================================================ */

:root {
  --accent: #D95C3D;
  --accent-bright: #ff7a3c;
  --accent-hover: #C44F32;
  --bg: #0B0B0D;
  --surface: #1C1C1F;
  --surface-2: #17171A;
  --border: #27272A;
  --border-strong: #2f2f34;
  --fg: #EDEDED;
  --muted: #A1A1AA;
  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow-card: 0 18px 38px -12px rgba(0, 0, 0, 0.7),
                 0 4px 12px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ────────────────────────────────────────────────────────────────
   Top navigation
   ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 11, 13, 0.72);
  border-bottom: 1px solid rgba(39, 39, 42, 0.6);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--fg); }
.brand__name { line-height: 1; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms ease;
}
.nav__links a:hover { color: var(--fg); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ────────────────────────────────────────────────────────────────
   Buttons
   ──────────────────────────────────────────────────────────────── */
.btn {
  --btn-px: 20px;
  --btn-py: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--btn-py) var(--btn-px);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease,
              transform 140ms ease, color 140ms ease;
  white-space: nowrap;
}
.btn--sm { --btn-px: 14px; --btn-py: 8px; font-size: 13px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 24px -8px rgba(217, 92, 61, 0.55);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: #3a3a40;
  color: var(--fg);
}

/* ────────────────────────────────────────────────────────────────
   Hero
   ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 122, 60, 0.06);
  border: 1px solid rgba(255, 122, 60, 0.2);
  border-radius: 999px;
  margin-bottom: 24px;
}
.chip__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
}

.hero__title {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.accent-gradient {
  background: linear-gradient(135deg, #ff7a3c 0%, #D95C3D 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero__sub strong { color: var(--fg); font-weight: 600; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.hero__meta li {
  font-size: 13px;
  color: var(--muted);
}
.hero__meta span {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* Terminal preview */
.hero__preview { min-width: 0; }
.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.terminal__dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal__dot--r { background: #ff5f56; }
.terminal__dot--y { background: #ffbd2e; }
.terminal__dot--g { background: #27c93f; }
.terminal__title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.terminal__body {
  padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--fg);
}
.tl {
  margin: 0;
  display: flex;
  gap: 14px;
}
.tl__label {
  display: inline-block;
  min-width: 36px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.tl--you .tl__label { color: #7aa2ff; }
.tl--gp .tl__label { color: var(--accent-bright); }
.tl--ok .tl__label { color: #4ade80; }
.tl code {
  background: rgba(255,122,60,0.1);
  color: var(--accent-bright);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 12.5px;
}
.tl__ok { color: #4ade80; font-weight: 600; }
.tl__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent-bright);
  animation: blink 1s steps(1) infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* Ambient glow behind hero */
.hero__glow {
  position: absolute;
  inset: -10% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%,
              rgba(255, 122, 60, 0.18) 0%,
              rgba(255, 122, 60, 0.06) 35%,
              transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* ────────────────────────────────────────────────────────────────
   Sections
   ──────────────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section--alt { background: var(--surface-2); }

.section__head {
  max-width: 720px;
  margin: 0 0 56px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--fg);
}

.section__sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

/* ────────────────────────────────────────────────────────────────
   Features grid
   ──────────────────────────────────────────────────────────────── */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.feature:hover {
  border-color: rgba(255, 122, 60, 0.35);
  transform: translateY(-2px);
}
.feature__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 122, 60, 0.1);
  border: 1px solid rgba(255, 122, 60, 0.28);
  color: var(--accent-bright);
  margin-bottom: 18px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────────
   Steps
   ──────────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.step__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  background: rgba(255, 122, 60, 0.1);
  border: 1px solid rgba(255, 122, 60, 0.28);
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--fg);
}
.step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ────────────────────────────────────────────────────────────────
   Tabs + code block
   ──────────────────────────────────────────────────────────────── */
.tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tabs__list {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
  overflow-x: auto;
}
.tabs__tab {
  flex-shrink: 0;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease,
              border-color 120ms ease;
}
.tabs__tab:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.tabs__tab.is-active {
  color: var(--fg);
  background: var(--surface);
  border-color: var(--border-strong);
}

.tabs__panels { padding: 28px 32px 32px; }
.tabs__panel { animation: fadeIn 180ms ease; }
.tabs__panel[hidden] { display: none; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tabs__note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.tabs__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 0;
  line-height: 1.65;
}
.tabs__hint code {
  background: rgba(255,122,60,0.1);
  color: var(--accent-bright);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.code {
  position: relative;
  background: #0E0E11;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.code pre {
  margin: 0;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #EDEDED;
}
.code__copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease,
              border-color 120ms ease;
}
.code__copy:hover {
  color: var(--fg);
  background: rgba(255,122,60,0.08);
  border-color: rgba(255,122,60,0.35);
}
.code__copy.is-copied {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
}

.list-ordered {
  margin: 0;
  padding-left: 22px;
  color: var(--fg);
  font-size: 14.5px;
  line-height: 2;
}
.list-ordered li::marker { color: var(--accent-bright); font-weight: 700; }

/* ────────────────────────────────────────────────────────────────
   Providers
   ──────────────────────────────────────────────────────────────── */
.providers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.providers li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease;
}
.providers li:hover {
  border-color: rgba(255, 122, 60, 0.35);
  transform: translateY(-2px);
}
.providers strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.providers span {
  font-size: 12px;
  color: var(--muted);
}

/* ────────────────────────────────────────────────────────────────
   CTA banner
   ──────────────────────────────────────────────────────────────── */
.cta {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%,
      rgba(255, 122, 60, 0.18) 0%,
      rgba(255, 122, 60, 0.04) 35%,
      transparent 70%),
    var(--bg);
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 10px;
  max-width: 640px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta p {
  color: var(--muted);
  margin: 0;
  max-width: 640px;
  font-size: 16px;
}
.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────
   Footer
   ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--fg);
}
.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a {
  color: var(--muted);
  font-size: 14px;
}
.footer__links a:hover { color: var(--fg); }
.footer__credit {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.footer__credit a { color: var(--accent-bright); }

/* ────────────────────────────────────────────────────────────────
   Responsive
   ──────────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .providers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
}

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(11, 11, 13, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a {
    padding: 10px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links .btn { margin-top: 8px; align-self: flex-start; }
  .nav__toggle { display: block; }

  .hero__title { font-size: 38px; }
  .hero__meta { gap: 22px; }
  .hero__meta span { font-size: 18px; }

  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .tabs__panels { padding: 22px 20px 24px; }
  .code pre { padding: 16px 18px; font-size: 12.5px; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
