/* ========================
   LAUNCHKIT — Theme CSS
   ======================== */

:root {
  --bg: #070a0f;
  --surface: #0d1117;
  --surface-2: #161b22;
  --border: #21262d;
  --fg: #e6edf3;
  --fg-2: #8b949e;
  --fg-3: #484f58;
  --amber: #f59e0b;
  --amber-dim: #92690a;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --amber-subtle: rgba(245, 158, 11, 0.06);
  --teal: #2dd4bf;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Topbar ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--amber);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.topbar-badge {
  font-size: 0.7rem;
  color: var(--fg-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- Hero ---- */
.hero {
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--amber); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--amber); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin-bottom: 20px;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.65rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  font-size: 0.8rem;
  color: var(--fg-2);
  font-weight: 400;
}

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

/* ---- Hero Visual — Product Card Stack ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card-stack {
  position: relative;
  width: 340px;
  height: 320px;
}

.product-card {
  position: absolute;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-front {
  top: 0;
  left: 20px;
  z-index: 3;
  transform: rotate(-2deg);
}

.card-mid {
  top: 90px;
  left: 10px;
  z-index: 2;
  transform: rotate(1.5deg) translateY(4px);
  background: var(--surface-2);
}

.card-back {
  top: 180px;
  left: 0;
  z-index: 1;
  transform: rotate(-1deg) translateY(8px);
  background: var(--surface);
  border-color: var(--amber-dim);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon.mcps {
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid var(--amber-dim);
}

.card-icon.templates {
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.2);
}

.card-icon.scripts {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.card-text {
  flex: 1;
}

.card-tag {
  font-size: 0.6rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.card-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 3px;
}

.card-desc {
  font-size: 0.72rem;
  color: var(--fg-2);
  line-height: 1.4;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
}

/* ---- Manifesto ---- */
.manifesto {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

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

.manifesto-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 20px;
}

.manifesto-accent {
  color: var(--amber);
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 680px;
}

/* ---- Products ---- */
.products {
  padding: 80px 24px;
}

.products-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.products-header {
  margin-bottom: 48px;
}

.products-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.products-sub {
  font-size: 0.9rem;
  color: var(--fg-2);
}

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

.product-item {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  transition: background 0.2s ease;
}

.product-item:hover {
  background: var(--surface-2);
}

.product-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--amber-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}

.product-info {
  flex: 1;
}

.product-type {
  font-size: 0.65rem;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}

.product-desc {
  font-size: 0.78rem;
  color: var(--fg-2);
  line-height: 1.5;
}

/* ---- Process ---- */
.process {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.process-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.process-header {
  margin-bottom: 48px;
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.process-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber-dim);
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.step-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 28px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--fg-3);
  border-right: 1px solid var(--fg-3);
  transform: rotate(45deg);
}

.process-note {
  font-size: 0.85rem;
  color: var(--fg-3);
  border-left: 2px solid var(--amber-dim);
  padding-left: 16px;
  max-width: 600px;
}

/* ---- Closing ---- */
.closing {
  padding: 100px 24px;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.closing-rule {
  width: 40px;
  height: 2px;
  background: var(--amber);
  margin: 0 auto 40px;
}

.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin: 0 auto 16px;
}

.closing-sub {
  font-size: 0.9rem;
  color: var(--fg-2);
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--amber);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--fg-3);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-label {
  font-size: 0.65rem;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-built {
  font-size: 0.7rem;
  color: var(--fg-3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

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

  .process-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .step-connector {
    width: 1px;
    height: 32px;
    margin-top: 0;
    margin-left: 20px;
  }

  .step-connector::after {
    right: auto;
    left: -3px;
    top: auto;
    bottom: 0;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid var(--fg-3);
    border-left: 1px solid var(--fg-3);
    transform: rotate(-45deg);
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 48px 20px 64px;
  }

  .manifesto,
  .products,
  .process,
  .closing {
    padding: 56px 20px;
  }

  .footer-inner {
    gap: 32px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}