/* ============================================
   stryhub — Design System & Landing Page
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-primary-light: #818cf8;
  --color-secondary: #14b8a6;
  --color-secondary-dark: #0d9488;
  --color-dark: #0f172a;
  --color-dark-lighter: #1e293b;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-text-lighter: #94a3b8;
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: rgba(99,102,241,0.1);
  color: var(--color-primary);
}

.badge-secondary {
  background: rgba(20,184,166,0.1);
  color: var(--color-secondary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
}

.navbar-brand:hover {
  color: var(--color-white);
}

.navbar-brand span {
  color: var(--color-primary-light);
}

.navbar-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}

.navbar-nav .mobile-cta {
  display: none;
}

.navbar-nav a:hover {
  color: var(--color-white);
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 3px;
  margin-right: 8px;
}

.lang-switcher a {
  display: block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  border-radius: 50px;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.lang-switcher a:hover {
  color: rgba(255,255,255,0.8);
}

.lang-switcher a.active {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a3e 50%, var(--color-dark-lighter) 100%);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(99,102,241,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(20,184,166,0.06) 0%, transparent 50%);
  animation: heroGlow 20s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero .badge {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-white);
  display: block;
}

.hero-stat .label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg);
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header .badge {
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-icon-primary {
  background: rgba(99,102,241,0.1);
  color: var(--color-primary);
}

.feature-icon-secondary {
  background: rgba(20,184,166,0.1);
  color: var(--color-secondary);
}

.feature-icon-warning {
  background: rgba(245,158,11,0.1);
  color: var(--color-warning);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 15px;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  margin-top: 16px;
}

.feature-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-card ul li i {
  color: var(--color-success);
  font-size: 16px;
}

/* ============================================
   How It Works
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

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

/* ============================================
   Social Proof Section
   ============================================ */
.social-proof {
  background: var(--color-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.social-proof-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.social-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-light);
}

.social-proof-item i {
  font-size: 18px;
  color: var(--color-primary);
}

.social-proof-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

/* ============================================
   Platform Overview Section
   ============================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition);
}

.platform-card:hover {
  transform: translateY(-4px);
}

.platform-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.platform-card-header i {
  color: var(--color-primary-light);
  font-size: 18px;
}

.platform-card-header h4 {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.platform-card-body {
  padding: 20px 24px;
}

.platform-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.platform-metric:last-child {
  border-bottom: none;
}

.platform-metric-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.platform-metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.platform-metric-change {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

.platform-metric-change.positive {
  background: rgba(34,197,94,0.15);
  color: var(--color-success);
}

.platform-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.platform-product:last-child {
  margin-bottom: 0;
}

.platform-product-name {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.platform-product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-light);
}

/* ============================================
   Why stryhub Section
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-item {
  text-align: center;
  padding: 32px 24px;
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
  margin: 0 auto 16px;
}

.why-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   Use Cases Section
   ============================================ */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.use-case-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(20,184,166,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--color-primary);
  margin: 0 auto 16px;
}

.use-case-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.use-case-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ============================================
   Situations Section ("Sound Familiar?")
   ============================================ */
.situations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.situation-card {
  flex: 0 1 calc(33.333% - 19px);
  background: var(--color-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
}

.situation-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-light);
  box-shadow: 0 12px 32px rgba(99,102,241,0.15);
}

.situation-card .situation-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99,102,241,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-primary-light);
  margin-bottom: 20px;
}

.situation-card .situation-quote {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: 14px;
  font-style: italic;
}

.situation-card .situation-quote::before {
  content: '\201C';
  color: var(--color-primary-light);
  margin-right: 2px;
}

.situation-card .situation-quote::after {
  content: '\201D';
  color: var(--color-primary-light);
  margin-left: 2px;
}

.situation-card .situation-answer {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ============================================
   Before/After Transformation Block
   ============================================ */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.ba-column {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.ba-column.before {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ba-column.after {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.ba-column h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ba-column.before h3 {
  color: #dc2626;
}

.ba-column.after h3 {
  color: #16a34a;
}

.ba-column h3 i {
  font-size: 20px;
}

.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.ba-item i {
  margin-top: 3px;
  font-size: 16px;
  flex-shrink: 0;
}

.ba-column.before .ba-item i {
  color: #dc2626;
}

.ba-column.after .ba-item i {
  color: #16a34a;
}

/* ============================================
   Webhook Section
   ============================================ */
.webhook-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.webhook-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.webhook-feature {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.webhook-feature:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.webhook-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
}

.webhook-feature h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.webhook-feature p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.webhook-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.webhook-code-window {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.webhook-code-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.webhook-code-dots {
  display: flex;
  gap: 6px;
}

.webhook-code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.webhook-code-dots span:first-child { background: #ef4444; }
.webhook-code-dots span:nth-child(2) { background: #f59e0b; }
.webhook-code-dots span:last-child { background: #22c55e; }

.webhook-code-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.webhook-code-body {
  padding: 24px;
  margin: 0;
  overflow-x: auto;
}

.webhook-code-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}

.wh-key { color: #818cf8; }
.wh-str { color: #34d399; }
.wh-num { color: #fbbf24; }

.webhook-events {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.webhook-event-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-lighter);
  margin-bottom: 12px;
}

.webhook-event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webhook-event-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
}

.webhook-event-tag:hover {
  border-color: var(--color-primary-light);
  background: rgba(99,102,241,0.06);
  color: var(--color-primary);
}

.webhook-event-tag.highlight {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
  color: var(--color-primary);
  font-family: var(--font-family);
  font-weight: 600;
}

/* ============================================
   Affiliate Section
   ============================================ */
.affiliate-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.affiliate-features {
  list-style: none;
}

.affiliate-features li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.affiliate-features li:last-child {
  border-bottom: none;
}

.affiliate-features .af-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 20px;
  flex-shrink: 0;
}

.affiliate-features h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.affiliate-features p {
  font-size: 14px;
  color: var(--color-text-light);
}

.affiliate-visual {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--color-white);
  box-shadow: var(--shadow-xl);
}

.af-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.af-visual-header h4 {
  color: var(--color-white);
  font-size: 16px;
}

.af-visual-badge {
  background: rgba(34,197,94,0.15);
  color: var(--color-success);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.af-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.af-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.af-tier-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.af-tier-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-light);
}

.af-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-total-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.af-total-value {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.pricing-card .price {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.pricing-card .price-desc {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-bg-alt);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--color-success);
  font-size: 18px;
}

.pricing-explainer {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-lighter);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a3e 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-dark);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.6);
}

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

.footer-brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--color-primary-light);
}

.footer-brand img {
  height: 24px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ============================================
   Subscription Preview Section (Landing Page)
   ============================================ */
.sub-section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sub-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sub-preview-item {
  display: flex;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.sub-preview-item:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.sub-preview-item .sub-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 18px;
  flex-shrink: 0;
}

.sub-preview-item div:last-child {
  min-width: 0;
}

.sub-preview-item h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.sub-preview-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.4;
}

.sub-section-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Status flow visual (lifecycle card) --- */
.status-flow-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.status-flow-card h4 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 28px;
}

.status-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-flow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.status-flow-dot.yellow { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.4); }
.status-flow-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.status-flow-dot.orange { background: #f97316; box-shadow: 0 0 8px rgba(249,115,22,0.4); }
.status-flow-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.4); }
.status-flow-dot.blue { background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,0.4); }
.status-flow-dot.gray { background: #64748b; }

.status-flow-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.status-flow-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
  padding: 2px 10px;
  border-radius: 4px;
}

.status-flow-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.status-flow-line {
  width: 2px;
  height: 16px;
  background: rgba(255,255,255,0.12);
  margin-left: 5px;
}

.status-flow-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.status-flow-stat {
  text-align: center;
}

.status-flow-stat .number {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
  display: block;
}

.status-flow-stat .label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================
   Subscription Page
   ============================================ */
.sub-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a3e 50%, var(--color-dark-lighter) 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(99,102,241,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(20,184,166,0.06) 0%, transparent 50%);
}

.sub-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.sub-hero .badge {
  margin-bottom: 24px;
}

.sub-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sub-hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub-hero p {
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* --- Proration example card --- */
.proration-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.proration-card h4 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 24px;
}

.proration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
}

.proration-row-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.proration-row-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
}

.proration-row-value.credit {
  color: var(--color-success);
}

.proration-row-value.charge {
  color: var(--color-primary-light);
}

.proration-total {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proration-total-label {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.proration-total-value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Portal mock card --- */
.portal-card {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-xl);
}

.portal-card h4 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 20px;
}

.portal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}

.portal-item:last-child {
  margin-bottom: 0;
}

.portal-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.portal-item i {
  color: var(--color-primary-light);
  font-size: 18px;
  flex-shrink: 0;
}

.portal-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* --- Global stats row --- */
.global-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.global-stat {
  text-align: center;
}

.global-stat .number {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-dark);
  display: block;
  line-height: 1.2;
}

.global-stat .label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.global-desc {
  text-align: center;
  max-width: 800px;
  margin: 32px auto 0;
  color: var(--color-text-light);
  font-size: 17px;
  line-height: 1.7;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.15s; }
.fade-in-delay-5 { transition-delay: 0.25s; }

/* ============================================
   Responsive — Tablet (max 992px)
   ============================================ */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .steps-grid::before {
    display: none;
  }

  .webhook-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .affiliate-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .situations-grid {
    gap: 20px;
  }

  .situation-card {
    flex: 0 1 100%;
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .section {
    padding: 80px 0;
  }

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

  .feature-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 40px 32px;
  }

  .sub-section-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .global-stats {
    gap: 40px;
  }
}

/* ============================================
   Responsive — Mobile (max 768px)
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header p {
    font-size: 15px;
  }

  /* --- Navbar mobile --- */
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15,23,42,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-nav a {
    font-size: 16px;
  }

  .navbar-cta {
    display: none;
  }

  .lang-switcher {
    margin-right: 12px;
  }

  .navbar-toggle {
    display: block;
  }

  /* CTA inside mobile menu */
  .navbar-nav .mobile-cta {
    display: block;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* --- Hero mobile --- */
  .hero {
    padding: 110px 0 56px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 32px;
  }

  .hero-stat .number {
    font-size: 22px;
  }

  .hero-stat .label {
    font-size: 12px;
  }

  /* --- Social proof mobile --- */
  .social-proof {
    padding: 20px 0;
  }

  .social-proof-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .social-proof-divider {
    display: none;
  }

  .social-proof-item {
    font-size: 13px;
    justify-content: center;
  }

  /* --- Situations mobile --- */
  .situation-card {
    padding: 28px 20px;
  }

  .situation-card .situation-quote {
    font-size: 16px;
  }

  /* --- Before/After mobile --- */
  .ba-column {
    padding: 28px 20px;
  }

  /* --- Features mobile --- */
  .feature-card {
    padding: 28px 20px;
  }

  .feature-card h3 {
    font-size: 18px;
  }

  /* --- Steps mobile --- */
  .step-number {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }

  .step h3 {
    font-size: 18px;
  }

  /* --- Platform mobile --- */
  .platform-card-header {
    padding: 16px 20px;
  }

  .platform-card-body {
    padding: 16px 20px;
  }

  .platform-metric-value {
    font-size: 16px;
  }

  /* --- Why grid mobile --- */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .why-item {
    padding: 24px 16px;
  }

  /* --- Use cases mobile --- */
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .use-case-card {
    padding: 24px 20px;
  }

  .use-case-icon {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  /* --- Webhooks mobile --- */
  .webhook-feature {
    padding: 14px 12px;
  }

  .webhook-code-body {
    padding: 16px;
  }

  .webhook-code-body code {
    font-size: 12px;
    line-height: 1.7;
  }

  .webhook-events {
    padding: 16px 18px;
  }

  .webhook-event-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* --- Affiliates mobile --- */
  .affiliate-visual {
    padding: 28px 20px;
  }

  .af-visual-header {
    margin-bottom: 20px;
  }

  .af-tier {
    padding: 12px 14px;
  }

  .af-tier-value {
    font-size: 16px;
  }

  .af-total-value {
    font-size: 20px;
  }

  /* --- Pricing mobile --- */
  .pricing-card {
    padding: 32px 20px;
  }

  .pricing-card .price {
    font-size: 36px;
  }

  .pricing-features li {
    font-size: 14px;
  }

  /* --- CTA mobile --- */
  .cta-section {
    padding: 64px 0;
  }

  .cta-section p {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    justify-content: center;
  }

  /* --- Buttons full-width mobile --- */
  .btn-lg {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* --- Subscription section mobile --- */
  .sub-section-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sub-preview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sub-preview-item {
    padding: 14px 12px;
  }

  .status-flow-card {
    padding: 24px 20px;
  }

  .status-flow-footer {
    gap: 16px;
  }

  .sub-hero {
    padding: 110px 0 56px;
  }

  .sub-hero h1 {
    font-size: 28px;
  }

  .proration-card,
  .portal-card {
    padding: 24px 20px;
  }

  .global-stats {
    gap: 24px;
  }

  .global-stat .number {
    font-size: 28px;
  }

  /* --- Footer mobile --- */
  .footer {
    padding: 48px 0 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
