/* ============================================================
   Svarg — Home Page Styles
   Extends global style.css
   ============================================================ */

/* ── Brand design tokens (supplement global :root) ─────── */
:root {
  --brand-primary:       #5CC5A7;
  --brand-accent:        #3DAFD3;
  --brand-primary-hover: #4AB393;
  --brand-gradient:      linear-gradient(135deg, #5CC5A7, #3DAFD3);

  --hero-col-gap:    64px;
  --section-pad-v:   80px;
  --card-bg:         rgba(255, 255, 255, 0.04);
  --card-border:     rgba(255, 255, 255, 0.08);
  --card-radius:     16px;
}

/* ── CTA variants (extends global .cta-button) ──────────── */
.cta-button--primary {
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 700;
}

.cta-button--primary:hover {
  background: var(--brand-gradient);
  opacity: 0.9;
  color: #fff;
  box-shadow: 0 6px 24px rgba(92, 197, 167, 0.45);
}

.cta-button--outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  padding: 13px 24px;
}

.cta-button--outline:hover {
  border-color: var(--brand-primary);
  color: #fff;
  background: rgba(92, 197, 167, 0.08);
  box-shadow: none;
  transform: none;
}

.cta-button:focus-visible,
.cta-button--outline:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════
   HERO — two-column grid
   Left: badge + h1 + desc + CTAs
   Right: 5-stage panel
══════════════════════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hero-col-gap);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 56px;
  min-height: auto; /* override style.css calc(100vh - 80px) */
}

/* ── Hero left ───────────────────────────────────────────── */
.hero__left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(92, 197, 167, 0.12);
  border: 1px solid rgba(92, 197, 167, 0.35);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
  width: fit-content;
}

.hero__left h1 {
  font-size: clamp(28px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__headline-accent {
  color: var(--brand-primary);
}

.hero__desc {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

/* ── Credibility stats strip ─────────────────────────────────── */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__stat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.hero__stat-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* ── Benefits mini cards (between description and CTA) ──────── */
.benefits-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.benefit-card {
  flex: 1;
  min-width: 110px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s;
}

.benefit-card:hover { border-color: var(--brand-primary); }

.benefit-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--brand-primary);
  opacity: 0.7;
  line-height: 1;
}

.benefit-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.benefit-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.45;
}

/* ── Hero CTA group ──────────────────────────────────────────── */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__trust {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2px;
}

.hero__trust-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero__trust-link:hover { color: var(--brand-primary); }

/* ── Hero prompt composer (try-before-login entry) ──────────── */
.hero-prompt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-prompt:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(92, 197, 167, 0.15);
}

.hero-prompt__input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  min-height: 68px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.5;
  font-family: inherit;
}

.hero-prompt__input::placeholder { color: rgba(255, 255, 255, 0.35); }

.hero-prompt__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}

.hero-prompt__error {
  font-size: 13px;
  color: #f87171;
  margin: 0;
  margin-right: auto;
}

.hero-prompt__submit { white-space: nowrap; }

.hero-prompt__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-prompt__chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.hero-prompt__chip:hover {
  border-color: var(--brand-primary);
  color: #fff;
  background: rgba(92, 197, 167, 0.1);
}

/* ── Hero right — stages panel ───────────────────────────── */
.hero__right {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
}

.stages__title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-primary);
  margin-bottom: 16px;
  opacity: 0.85;
}

/* Framework panel description */
.stages__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Stage list — rendered by index.js */
.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

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

/* Colored left accent bar using CSS custom property --stage-color */
.stage-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--stage-color, #5CC5A7);
  border-radius: 2px;
}

.stage-item__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--stage-color, #5CC5A7);
  color: var(--stage-color, #5CC5A7);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.stage-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stage-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stage-item__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════════════════
   OUTCOMES STRIP
══════════════════════════════════════════════════════════ */
.outcomes {
  background: rgba(92, 197, 167, 0.05);
  border-top: 1px solid rgba(92, 197, 167, 0.12);
  border-bottom: 1px solid rgba(92, 197, 167, 0.12);
  padding: 24px 40px;
}

.outcomes__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.outcomes__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.outcomes__check {
  color: var(--brand-primary);
  font-size: 16px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════════════════════ */
.how-it-works,
.domains-section,
.final-cta {
  padding: var(--section-pad-v) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-sub {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 48px;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS — steps grid
══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: border-color 0.25s;
}

.step-card:hover { border-color: var(--brand-primary); }

.step-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-primary);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
}

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

.step-card p { color: var(--text-secondary); font-size: 15px; }

/* ═══════════════════════════════════════════════════════════
   7 DOMAINS
══════════════════════════════════════════════════════════ */
.domains-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}

.domain-chip {
  padding: 11px 20px;
  background: rgba(92, 197, 167, 0.07);
  border: 1px solid rgba(92, 197, 167, 0.2);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.domain-chip:hover {
  background: rgba(92, 197, 167, 0.15);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════════════════════ */
.final-cta { text-align: center; }

.final-cta h2 { margin-bottom: 16px; }

.final-cta p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Tablet landscape: condensed two-column */
@media (max-width: 1100px) {
  .hero {
    gap: 40px;
    padding: 48px 32px 48px;
  }
}

/* Tablet portrait: stack hero, keep outcomes row */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 32px 44px;
    gap: 48px;
  }

  .hero__right {
    padding: 28px 24px;
  }

  /* On tablet the stage bar sits to the side of the number */
  .stage-item::before { display: none; }

  .hero__desc { max-width: 100%; }
}

/* Mobile: single column, everything stacks */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 40px;
    gap: 40px;
  }

  .hero__left h1 { font-size: 32px; }

  .hero__ctas { flex-direction: column; align-items: flex-start; }

  .outcomes {
    padding: 20px 20px;
  }

  .outcomes__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .outcomes__item { white-space: normal; }

  .how-it-works, .domains-section, .final-cta {
    padding: 56px 0;
  }

  h2 { font-size: 26px; }
  .section-sub { font-size: 16px; margin-bottom: 32px; }

  .steps-grid { grid-template-columns: 1fr; }
  .domains-grid { gap: 8px; }
  .domain-chip { font-size: 13px; padding: 9px 16px; }
}

/* Small mobile — no horizontal scroll */
@media (max-width: 480px) {
  .hero { padding: 32px 16px 36px; }
  .hero__left h1 { font-size: 28px; }
  .hero__desc { font-size: 16px; }

  .cta-button,
  .cta-button--primary,
  .cta-button--outline { font-size: 15px; padding: 13px 22px; width: 100%; text-align: center; }

  .hero__right { padding: 20px 16px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO REDESIGN — badge label · desc wrap · workflow panel
══════════════════════════════════════════════════════════ */

/* Badge label variant — longer text, no uppercase treatment */
.hero__badge--label {
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 600;
  border-radius: 6px;
  font-size: 12px;
}

/* Two-paragraph description block */
.hero__desc-wrap {
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__desc-wrap .hero__desc {
  max-width: 100%;
  margin-bottom: 10px;
}
.hero__desc-wrap .hero__desc:last-child {
  margin-bottom: 0;
}

/* ── Workflow panel ─────────────────────────────────────── */
.wf-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wf-panel__label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-primary);
  margin: 0 0 18px;
  opacity: 0.8;
}

.wf-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wf-step__track {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding-top: 3px;
}

.wf-step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-primary);
  flex-shrink: 0;
}

.wf-step__line {
  width: 2px;
  min-height: 18px;
  flex: 1;
  background: rgba(92, 197, 167, 0.2);
  margin: 5px 0;
}

.wf-step__body {
  flex: 1;
  padding-bottom: 18px;
}

.wf-step__name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

/* Input mock */
.wf-input-mock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
}

.wf-input-mock__text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.55;
  margin: 0;
  font-style: italic;
}

/* Capability pills */
.wf-caps-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wf-cap {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(92, 197, 167, 0.1);
  border: 1px solid rgba(92, 197, 167, 0.28);
  color: var(--brand-primary);
}

/* Blueprint workspace mock */
.wf-blueprint-mock {
  background: rgba(13, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.wf-blueprint-mock__tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 6px;
}

.wf-mock-tab {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  padding: 6px 10px;
}

.wf-mock-tab--active {
  color: var(--brand-primary);
  border-bottom: 2px solid var(--brand-primary);
  margin-bottom: -1px;
}

.wf-blueprint-mock__content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-mock-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
  width: 90%;
}

.wf-mock-line--title {
  width: 50%;
  background: rgba(255, 255, 255, 0.14);
  height: 7px;
}

.wf-mock-line--short {
  width: 60%;
}

.wf-mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 4px;
}

.wf-mock-card {
  height: 26px;
  background: rgba(99, 102, 241, 0.09);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 5px;
}

/* Export mock */
.wf-export-mock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(92, 197, 167, 0.12), rgba(61, 175, 211, 0.12));
  border: 1px solid rgba(92, 197, 167, 0.3);
  border-radius: 8px;
  padding: 7px 12px;
}

.wf-export-mock__icon {
  font-size: 13px;
  color: var(--brand-primary);
  font-weight: 700;
}

.wf-export-mock__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
