:root {
  --bg-dark: #0F172A;
  --bg-darker: #090E1A;
  --bg-card-dark: #1E293B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;
  --text-light-muted: #94A3B8;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #D1FAE5;
  --emerald-glow: rgba(16, 185, 129, 0.16);
  --border-light: #E2E8F0;
  --border-dark: #334155;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.16);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-light);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #06281E;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-division {
  font-size: 0.72rem;
  color: var(--text-light-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: #CBD5E1;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.nav-link.active {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.nav-cta {
  background: var(--emerald);
  color: #052E16;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #34D399;
  transform: translateY(-1px);
  outline: none;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 15%, rgba(16, 185, 129, 0.14), transparent 45%),
              linear-gradient(180deg, var(--bg-dark) 0%, #111C35 100%);
  color: var(--text-light);
  padding: 4.5rem 1.5rem 5rem;
  border-bottom: 1px solid var(--border-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.badge-pill.secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border-color: rgba(148, 163, 184, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.hero-title {
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 900px;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: #34D399;
}

.hero-promise {
  font-size: 1.18rem;
  color: #E2E8F0;
  max-width: 820px;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-light-muted);
  max-width: 780px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--emerald);
  color: #052E16;
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #34D399;
  transform: translateY(-1px);
  outline: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.btn-outline-dark {
  background: #FFFFFF;
  color: var(--bg-dark);
  border-color: #CBD5E1;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  border-color: var(--bg-dark);
  background: #F1F5F9;
  outline: none;
}

.anti-noise-strip {
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: #CBD5E1;
}

.strip-icon {
  color: var(--emerald);
  font-weight: 800;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.75rem;
}

.section-eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald-dark);
  margin-bottom: 0.5rem;
}

.section-dark .section-eyebrow {
  color: #34D399;
}

.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
}

.section-dark .section-desc {
  color: var(--text-light-muted);
}

/* Grid Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-light);
  color: #065F46;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.card-body {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

/* Pricing Cards */
.pricing-card {
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--emerald);
  box-shadow: var(--shadow-md);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--emerald);
  color: #052E16;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.75rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.price-amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-trial {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--emerald-dark);
  font-weight: 800;
  flex-shrink: 0;
}

/* Configurator Layout (Screen 2) */
.configurator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .configurator-grid {
    grid-template-columns: 1fr;
  }
}

.form-panel {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-chip {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip:hover,
.btn-chip:focus-visible {
  background: var(--emerald-light);
  border-color: var(--emerald);
  color: #065F46;
  outline: none;
}

.field-group {
  margin-bottom: 1.5rem;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: #F8FAFC;
  transition: all 0.15s ease;
}

.radio-card:hover {
  border-color: #94A3B8;
}

.radio-card.selected {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 0 1px var(--emerald);
}

.radio-card input {
  margin-top: 0.25rem;
  accent-color: var(--emerald-dark);
}

.radio-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: #FFFFFF;
}

.checkbox-item input {
  accent-color: var(--emerald-dark);
  width: 16px;
  height: 16px;
}

.text-input,
.select-input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text-main);
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--emerald-dark);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.grid-2-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .grid-2-inputs {
    grid-template-columns: 1fr;
  }
}

/* Preview Output Panel */
.preview-panel {
  position: sticky;
  top: 88px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-dark);
}

.preview-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-status {
  font-size: 0.74rem;
  color: var(--text-light-muted);
}

.brief-output {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  background: var(--bg-darker);
  color: #E2E8F0;
  padding: 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #1E293B;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}

.preview-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-reassurance {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--text-light-muted);
  line-height: 1.45;
  text-align: center;
}

/* Screen 3: Samples Tabs */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.tab-btn {
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.tab-btn:hover,
.tab-btn:focus-visible {
  border-color: var(--bg-dark);
  color: var(--text-main);
  outline: none;
}

.tab-btn.active {
  background: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
  box-shadow: var(--shadow-sm);
}

.sample-issue {
  display: none;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sample-issue.active {
  display: block;
}

.issue-topbar {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.issue-meta {
  font-size: 0.8rem;
  color: #34D399;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.issue-heading {
  font-size: 1.25rem;
  font-weight: 800;
}

.issue-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signal-card {
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  background: #F8FAFC;
}

.signal-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.signal-row {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.signal-row strong {
  color: var(--text-main);
}

.signal-impact {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 0.89rem;
  color: #064E3B;
  margin: 0.75rem 0;
}

.signal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  margin-top: 0.5rem;
}

.signal-link {
  color: var(--emerald-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.signal-link:hover {
  color: #047857;
}

.issue-footer {
  padding: 1.35rem 2rem;
  background: #F1F5F9;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Screen 4: Legal & CGV */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.legal-box {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.6rem;
}

.legal-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.legal-box p,
.legal-box li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal-box ul {
  padding-left: 1.1rem;
}

.site-footer {
  margin-top: auto;
  background: var(--bg-darker);
  color: var(--text-light-muted);
  padding: 2.5rem 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--border-dark);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--emerald);
}
