/* ============================================================
   ABC Ads Manager — Shared styles
   ============================================================ */

:root {
  --color-bg: #0b1220;
  --color-bg-elevated: #111827;
  --color-bg-card: #151c2c;
  --color-border: #243044;
  --color-text: #e8eef8;
  --color-text-muted: #9aa8c0;
  --color-text-subtle: #6b7a94;
  --color-accent: #3b82f6;
  --color-accent-hover: #60a5fa;
  --color-accent-soft: rgba(59, 130, 246, 0.12);
  --color-success: #34d399;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --max-width: 1080px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---------- Layout ---------- */

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--color-accent-hover);
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

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

.nav .nav-cta {
  background: var(--color-accent);
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
}

.nav .nav-cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 420px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.hero-tagline-id {
  font-size: 0.925rem;
  color: var(--color-text-subtle);
  font-style: italic;
  margin-bottom: 1.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--color-bg-elevated);
  border-block: 1px solid var(--color-border);
}

.section-header {
  max-width: 620px;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.925rem;
}

/* ---------- About / CTA ---------- */

.about-box {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.about-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-box p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.about-box p:last-child {
  margin-bottom: 0;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page .legal-meta {
  color: var(--color-text-subtle);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.975rem;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
  color: var(--color-text);
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
}

.footer-col p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-accent-hover);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--color-text-subtle);
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

/* ---------- Inline code ---------- */

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--color-accent-hover);
  word-break: break-all;
}
