/* CodeCampaign — refined dark marketing site */
:root {
  --bg: #0b0d11;
  --bg-elevated: #12151c;
  --bg-soft: #161a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --text-dim: #6b7382;
  --accent: #6ee7b7;
  --accent-dim: rgba(110, 231, 183, 0.14);
  --accent-text: #0b0d11;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.025rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(110, 231, 183, 0.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(96, 165, 250, 0.06), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #a7f3d0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 17, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.logo-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(110, 231, 183, 0.95), rgba(52, 211, 153, 0.55)),
    var(--bg-elevated);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 28% 22% 28% 22%;
  border: 2px solid rgba(11, 13, 17, 0.55);
  border-radius: 3px;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.logo-mark.small {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent) !important;
  border: 1px solid rgba(110, 231, 183, 0.28);
}

.nav-cta:hover {
  background: rgba(110, 231, 183, 0.22);
  color: #a7f3d0 !important;
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.light {
  color: rgba(110, 231, 183, 0.9);
}

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

h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 5.2vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 42rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  color: var(--accent-text);
  background: #a7f3d0;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 0.95rem 1.4rem;
  font-size: 1rem;
}

.hero-panel .panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%), var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel-label {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.panel-list li {
  display: grid;
  gap: 0.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.panel-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.panel-list strong {
  color: var(--text);
  font-size: 1rem;
}

.panel-list span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-head h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  font-weight: 400;
}

.section-lede {
  margin: 0;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52rem;
}

/* Split / ICP */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.split-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.checklist.muted li::before {
  background: var(--text-dim);
  box-shadow: 0 0 0 3px rgba(107, 115, 130, 0.2);
}

.aside-note {
  margin: 1.35rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.founder-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.5vw, 2.55rem);
  font-weight: 400;
}

.founder-lead {
  color: var(--text);
  font-size: 1.08rem;
}

.founder-copy p {
  color: var(--text-muted);
}

.founder-quote {
  margin: 0;
  padding: 1.6rem 1.5rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.founder-quote p {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
}

.founder-quote footer {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: normal;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.65rem;
}

details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.2rem 1rem;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--text);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1;
}

details[open] summary::after {
  content: "–";
}

details p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  padding-right: 1.5rem;
}

/* CTA */
.cta-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background:
    linear-gradient(135deg, rgba(110, 231, 183, 0.12), rgba(59, 130, 246, 0.08)),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-inner h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 400;
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.cta-actions {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.cta-email {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand strong {
  display: block;
  margin-bottom: 0.15rem;
}

.footer-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Privacy page */
.page-hero {
  padding: 3.5rem 0 1.5rem;
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.prose {
  padding-bottom: 4rem;
  color: var(--text-muted);
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .founder,
  .split,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .step {
    grid-template-columns: 3.25rem 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 1.25rem;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 14rem;
    padding: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-cta {
    margin: 0.25rem;
    justify-content: center;
  }

  .nav {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
