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

/* --- Variables --- */
:root {
  --bg: #0f0f1a;
  --surface: #16162a;
  --surface-2: #1e1e35;
  --fg: #f0f0f8;
  --fg-muted: #8a8aad;
  --accent: #b4ff00;
  --accent-dim: rgba(180, 255, 0, 0.12);
  --border: rgba(240, 240, 248, 0.08);
  --radius: 12px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* --- Container --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Header --- */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo::after {
  content: '.';
  color: var(--accent);
}

.tagline {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
}

.hero-inner {
  max-width: 760px;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(180, 255, 0, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 32px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -3px;
  color: var(--fg);
  margin-bottom: 32px;
}

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

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 300;
}

/* --- Stats --- */
.stats {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 40px;
  border-right: 1px solid var(--border);
}

.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; padding-right: 0; }

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* --- Services --- */
.services {
  padding: 96px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 48px;
}

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

.service-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s ease;
}

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

.service-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.service-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* --- Differentiators --- */
.differentiators {
  padding: 96px 0;
  background: var(--surface);
}

.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.diff-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 32px;
}

.diff-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.diff-bullet {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.diff-point p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.diff-point strong {
  color: var(--fg);
  font-weight: 600;
}

/* Code block / timeline */
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.code-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
  font-weight: 500;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 56px;
  top: 50%;
  width: 1px;
  height: calc(100% + 1px);
  background: var(--border);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-week {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  min-width: 90px;
  font-family: var(--font-display);
}

.timeline-desc {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
}

/* --- Manifesto --- */
.manifesto {
  padding: 120px 0;
  background: var(--bg);
}

.manifesto-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}

.manifesto-statement:last-child {
  color: var(--fg-muted);
  font-size: clamp(16px, 2vw, 20px);
  font-family: var(--font-body);
  font-weight: 300;
}

/* --- Footer --- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-brand .logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.footer-brand .logo-mark::after {
  content: '.';
  color: var(--accent);
}

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

.footer-meta {
  text-align: right;
}

.footer-location {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .hero { padding: 72px 0 60px; }
  .hero-headline { letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stat {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
  }

  .stat:last-child { border-bottom: none; padding-bottom: 0; }

  .services-grid { grid-template-columns: 1fr; }

  .diff-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .footer-meta { text-align: left; }
}