/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1f17;
  --bg-2: #091510;
  --surface: #112a1d;
  --surface-2: #163520;
  --border: #1e4030;
  --fg: #e8f0ea;
  --fg-2: #9ab5a3;
  --fg-3: #5a7862;
  --accent: #f0a500;
  --accent-dim: rgba(240, 165, 0, 0.12);
  --accent-glow: rgba(240, 165, 0, 0.08);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 31, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-3);
  font-style: italic;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--bg-2);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover { filter: brightness(1.1); }

/* === SECTION SHARED === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--fg);
  max-width: 680px;
  margin-bottom: 56px;
}

/* === HERO === */
.hero {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, var(--accent-glow) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.75rem, 5vw, 4rem);
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.1;
}

.hero-headline em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.hero-stat-number {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.9375rem;
  color: var(--fg-2);
  max-width: 220px;
  line-height: 1.4;
}

/* === CAMPAIGN BUILDER CARD (Hero Visual) === */
.campaign-builder-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(240,165,0,0.06);
}

.cb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.cb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cb-dot.red { background: #ff5f57; }
.cb-dot.yellow { background: #febc2e; }
.cb-dot.green { background: #28c840; }

.cb-title {
  font-size: 0.75rem;
  color: var(--fg-3);
  margin-left: 6px;
  font-weight: 500;
}

.cb-body { padding: 20px; }

.cb-input-block { margin-bottom: 12px; }

.cb-input-block label {
  display: block;
  font-size: 0.6875rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.cb-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

.cb-generate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: var(--bg-2);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
  cursor: default;
}

.cb-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 12px;
}

.cb-output-label {
  font-size: 0.6875rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.cb-campaign-rows { display: flex; flex-direction: column; gap: 6px; }

.cb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.cb-row-campaign { border-color: var(--accent); background: var(--accent-dim); }

.cb-row-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.cb-row-badge.campaign { background: var(--accent); color: var(--bg-2); }
.cb-row-badge.adgroup { background: var(--surface-2); color: var(--fg-2); }
.cb-row-badge.headlines { background: #1a2f4a; color: #6fa3d0; }
.cb-row-badge.descriptions { background: #1a3a2a; color: #7ac89e; }

.cb-row-text {
  font-size: 0.8125rem;
  color: var(--fg);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cb-row-meta {
  font-size: 0.6875rem;
  color: var(--fg-3);
  flex-shrink: 0;
}

.cb-row-done { border-color: #28c840; background: rgba(40,200,64,0.06); }

.cb-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #28c840;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.step {
  flex: 1;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.step:hover { border-color: var(--fg-3); }

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
  opacity: 0.5;
}

.step h3 {
  font-size: 1.125rem;
  color: var(--fg);
  margin-bottom: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.6;
}

.step-connector {
  padding-top: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* === FEATURES === */
.features {
  padding: 96px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* === CAMPAIGN PREVIEW === */
.campaign-preview {
  padding: 96px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.campaign-preview .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.preview-content .section-headline { margin-bottom: 20px; }

.preview-desc {
  font-size: 1.0625rem;
  color: var(--fg-2);
  line-height: 1.7;
}

/* Ad preview block */
.ad-preview-block { margin-bottom: 20px; }

.ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-bottom: 8px;
}

.ad-box {
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.ad-url-line { margin-bottom: 4px; }
.ad-visitor { font-size: 0.8125rem; color: #1a9a5a; text-decoration: none; }

.ad-headline-line { margin-bottom: 4px; }
.ad-headline {
  font-size: 1.125rem;
  color: #1a4fa8;
  text-decoration: none;
  font-weight: 600;
}

.ad-description-line {}
.ad-desc { font-size: 0.9375rem; color: #3c3c3c; }

.ad-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ad-meta-tag {
  font-size: 0.6875rem;
  color: var(--fg-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Keyword clusters block */
.keyword-cluster-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.cluster-header {
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.cluster-list { padding: 8px; }

.cluster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}

.cluster-item:hover { background: var(--bg-2); }

.cluster-name {
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
}

.cluster-count {
  font-size: 0.75rem;
  color: var(--fg-3);
}

/* === PRINCIPLES === */
.principles {
  padding: 96px 0;
}

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

.principle {}

.principle-num {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 12px;
}

.principle h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.principle p {
  font-size: 0.9375rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(240,165,0,0.08) 0%, transparent 70%),
    var(--bg);
}

.closing-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(240,165,0,0.2);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1.125rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
}

.footer-note {
  font-size: 0.875rem;
  color: var(--fg-3);
  max-width: 400px;
  text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign-preview .section-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-tagline { display: none; }
  .hero { padding: 56px 0 72px; }
  .steps { flex-direction: column; gap: 0; }
  .step-connector { display: none; }
  .step { border-radius: 0; border-left: none; border-right: none; }
  .features-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
}

@media (max-width: 480px) {
  .section-inner { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .section-headline { font-size: 1.5rem; margin-bottom: 32px; }
  .closing-headline { font-size: 1.75rem; }
}