/* ===========================
   RepOS Design System
   =========================== */

:root {
  --bg: #0d0c0a;
  --bg-2: #17150f;
  --bg-3: #1f1c13;
  --fg: #f0ece0;
  --fg-muted: #9e9682;
  --fg-subtle: #5c574a;
  --accent: #d4a843;
  --accent-light: #e8c06a;
  --accent-dim: rgba(212, 168, 67, 0.12);
  --border: rgba(240, 236, 224, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 64px;
  background: linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 12px;
}

.star { color: var(--accent); font-size: 1.25rem; }

.hero-rating-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ---- WIDGET MOCKUPS ---- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.widget-mockup {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.wm-2 { transform: translateX(32px); width: 85%; }

.wm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.wm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 168, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
}

.wm-av-green { background: rgba(72, 199, 116, 0.12); border-color: rgba(72, 199, 116, 0.3); color: #48c774; }

.wm-meta { flex: 1; }
.wm-name { font-weight: 600; font-size: 0.9rem; }
.wm-date { font-size: 0.75rem; color: var(--fg-subtle); }

.wm-stars { color: var(--accent); font-size: 0.9rem; letter-spacing: 2px; }

.wm-body {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.wm-badge {
  font-size: 0.7rem;
  color: var(--fg-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 64px;
}

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

.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 140px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ---- PROCESS ---- */
.process {
  padding: 100px 64px;
  background: var(--bg);
}

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

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 60px;
}

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

.process-card {
  padding: 40px 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.process-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
}

.process-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.process-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 64px;
  background: var(--bg-2);
}

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

.feature-card {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 168, 67, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

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

/* ---- TESTIMONIAL ---- */
.testimonial {
  padding: 80px 64px;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.testimonial-inner {
  max-width: 680px;
  text-align: center;
}

.testimonial-quote {
  color: var(--fg-subtle);
  margin-bottom: 32px;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  margin-top: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.ta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(212, 168, 67, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
}

.ta-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}

.ta-role {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 100px 64px;
  background: var(--bg-2);
}

.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 32px;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-rule {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--accent);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-subtle);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    gap: 48px;
  }

  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .wm-2 { transform: none; width: auto; }

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

  .stat-divider { display: none; }

  .process-grid,
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px; }
  .stats-strip { padding: 40px 24px; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process { padding: 72px 24px; }
  .features { padding: 72px 24px; }
  .testimonial { padding: 64px 24px; }
  .manifesto { padding: 72px 24px; }
  .site-footer { padding: 48px 24px 24px; }

  .process-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}