/* ============================================
   SiteStack Landing Page — Custom Theme
   ============================================ */

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #1a1a25;
  --fg: #f0ede6;
  --fg-muted: #8a8890;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(255, 255, 255, 0.06);
}

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

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

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- SECTION COMMONS ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.section-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 580px;
  line-height: 1.7;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  background: var(--surface);
}

/* ---- SITE MOCKUP ---- */
.hero-right { display: flex; justify-content: center; }

.site-mockup {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.05);
}

.mockup-topbar {
  background: var(--surface-2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-url {
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
  font-family: 'DM Sans', sans-serif;
}

.mockup-search-bar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mockup-search-text {
  display: inline-block;
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--fg-muted);
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}

.mockup-results { padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.mockup-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.result-1 {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.result-favicon {
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  flex-shrink: 0;
}

.result-content { flex: 1; }

.result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  font-family: 'Syne', sans-serif;
}

.result-desc {
  font-size: 11px;
  color: var(--fg-muted);
}

.result-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.3);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* ---- MODEL SECTION ---- */
.model-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.model-section .section-headline { margin-bottom: 24px; }

.model-diagram {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.model-step {
  flex: 1;
  min-width: 200px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.model-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.model-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.model-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.model-arrow {
  display: flex;
  align-items: center;
  color: var(--fg-muted);
  padding-top: 36px;
}

/* ---- NUMBERS SECTION ---- */
.numbers-section { padding: 120px 0; }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 60px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.number-card {
  padding: 36px 28px;
  background: var(--surface);
}

.number-value {
  font-family: 'Syne', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.number-label {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.number-note {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- PROCESS SECTION ---- */
.process-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-timeline {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.process-item {
  padding: 32px 28px;
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}

.process-item:last-child { border-right: none; }

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

.process-item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.process-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSER SECTION ---- */
.closer-section {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.closer-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.closer-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 28px;
}

.closer-content p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-bottom: 20px;
}

.closer-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--fg);
}

/* ---- FOOTER ---- */
.site-footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-brand { margin-bottom: 28px; }

.footer-brand .wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
}

.footer-links a {
  font-size: 14px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .site-mockup { max-width: 100%; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: 1fr; }
  .process-item { border-right: none; border-bottom: 1px solid var(--border); }
  .process-item:last-child { border-bottom: none; }
  .model-diagram { flex-direction: column; }
  .model-arrow { display: none; }
  .header-nav { display: none; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 100px 0 80px; }
  .numbers-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 0 24px; }
  .site-header { padding: 0 24px; }
}