/* ========================
   CashStack Theme
   ======================== */

:root {
  --bg: #0A0A0F;
  --surface: #111118;
  --surface2: #1A1A24;
  --accent: #FF6B35;
  --accent-dim: rgba(255, 107, 53, 0.15);
  --accent-glow: rgba(255, 107, 53, 0.4);
  --accent2: #FF8C42;
  --text: #F0EDE8;
  --text-muted: #8A8794;
  --border: rgba(255, 255, 255, 0.06);
  --section-gap: 120px;
  --container: 1140px;
  --radius: 16px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

/* ========================
   Section Tag
   ======================== */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}

/* ========================
   HERO
   ======================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 60px 100px;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 85vh;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-headline {
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.headline-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 100px;
  line-height: 1.4;
}

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

/* Hero Right - Stack Visual */
.hero-right { position: relative; z-index: 1; }

.stack-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.stack-layer {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stack-layer:hover { border-color: rgba(255, 107, 53, 0.3); }

.layer-1 { background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 107, 53, 0.02)); }
.layer-2 { background: linear-gradient(135deg, rgba(255, 140, 66, 0.08), rgba(255, 140, 66, 0.02)); }
.layer-3 { background: linear-gradient(135deg, rgba(100, 60, 200, 0.06), rgba(100, 60, 200, 0.02)); }
.layer-4 { background: linear-gradient(135deg, rgba(0, 130, 255, 0.06), rgba(0, 130, 255, 0.02)); }

.layer-glow {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.layer-1 .layer-glow { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.layer-2 .layer-glow { background: var(--accent2); box-shadow: 0 0 10px rgba(255, 140, 66, 0.4); }
.layer-3 .layer-glow { background: #6440C8; box-shadow: 0 0 10px rgba(100, 64, 200, 0.4); }
.layer-4 .layer-glow { background: #008AFF; box-shadow: 0 0 10px rgba(0, 138, 255, 0.4); }

.layer-label {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.stack-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.connector-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.stack-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(255, 107, 53, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 16px;
  position: relative;
}

.hub-ring {
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 107, 53, 0.2);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hub-core {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0F;
  box-shadow: 0 0 24px var(--accent-glow);
}

.hub-label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.commissions-label {
  position: absolute;
  right: -160px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.commissions-arrow {
  font-size: 20px;
  color: var(--accent);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========================
   CONTENT MACHINE
   ======================== */
.content-machine {
  padding: var(--section-gap) 60px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.cm-header {
  text-align: center;
  margin-bottom: 60px;
}

.cm-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cm-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cm-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cm-card:hover { border-color: rgba(255, 255, 255, 0.12); transform: translateY(-4px); }
.cm-card:hover::before { opacity: 1; }

.cm-tiktok::before { background: #FF0050; }
.cm-youtube::before { background: #FF0000; }
.cm-instagram::before { background: linear-gradient(135deg, #833AB4, #FD1D1D, #FCAF45); }
.cm-facebook::before { background: #1877F2; }

.cm-icon {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.cm-tiktok .cm-icon { color: #FF0050; }
.cm-youtube .cm-icon { color: #FF0000; }
.cm-instagram .cm-icon { color: #E1306C; }
.cm-facebook .cm-icon { color: #1877F2; }

.cm-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.cm-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cm-metric {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.cm-total {
  display: flex;
  align-items: baseline;
  gap: 16px;
  justify-content: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.total-num {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.total-label { font-size: 15px; color: var(--text-muted); }

/* ========================
   THE STACK
   ======================== */
.the-stack {
  padding: var(--section-gap) 60px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.stack-header {
  text-align: center;
  margin-bottom: 60px;
}

.stack-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.stack-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.stack-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  min-width: 180px;
  max-width: 220px;
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  flex-shrink: 0;
  -webkit-text-fill-color: var(--accent-dim);
}

.step-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.step-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.stack-result {
  text-align: center;
  padding: 40px;
  background: linear-gradient(135deg, var(--accent-dim), rgba(255, 107, 53, 0.03));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius);
}

.result-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rf-item {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rf-op {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}

.rf-eq {
  font-size: 28px;
  color: var(--text-muted);
}

.rf-result {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================
   PLATFORMS
   ======================== */
.platforms {
  padding: var(--section-gap) 60px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.plt-header {
  text-align: center;
  margin-bottom: 48px;
}

.plt-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 600px;
  margin: 0 auto;
}

.plt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.plt-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.plt-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.plt-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.plt-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.plt-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.plt-bottom {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

/* ========================
   CLOSING
   ======================== */
.closing {
  padding: var(--section-gap) 60px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.closing-inner {
  text-align: center;
}

.closing-headline {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.closing-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.closing-body {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.closing-quote {
  margin-bottom: 48px;
}

.closing-quote blockquote {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  margin-bottom: 8px;
}

.closing-quote cite {
  font-size: 13px;
  color: var(--text-muted);
}

.closing-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cs-tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.cs-items {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.cs-items span {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.cs-items span:hover {
  border-color: rgba(255, 107, 53, 0.3);
  color: var(--accent);
}

/* ========================
   FOOTER
   ======================== */
.footer {
  padding: 60px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-brand {}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

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

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

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

.footer-col-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

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

.footer-bottom {
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .cm-grid { grid-template-columns: repeat(2, 1fr); }
  .plt-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-steps { gap: 12px; }
  .step { min-width: 150px; }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 80px;
    gap: 48px;
    min-height: auto;
  }

  .hero-right { display: none; }

  .hero-headline { font-size: 42px; }

  .hero-stats { gap: 20px; }

  .stat-num { font-size: 22px; }

  .content-machine,
  .the-stack,
  .platforms,
  .closing {
    padding: 80px 24px;
  }

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

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

  .stack-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step { max-width: 100%; }

  .step-arrow { transform: rotate(90deg); margin: 0 auto; }

  .footer { padding: 48px 24px; }

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

  .result-formula { gap: 10px; }

  .rf-result { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }

  .closing-headline { font-size: 28px; }

  .commissions-label { display: none; }
}