/* ============================================================
   STARSEC — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS Custom Properties
   ============================================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --bg-primary:    #0f0f0f;
  --bg-secondary:  #1a1a1a;
  --bg-card:       #141414;
  --bg-card-hover: #1c1c1c;
  --bg-nav:        rgba(15, 15, 15, 0.88);
  --text-primary:  #ffffff;
  --text-secondary:#c0c0c0;
  --text-muted:    #777777;
  --accent:        #D4A844;
  --accent-light:  #E8BA5C;
  --accent-warm:   #E8A744;
  --accent-amber:  #D97706;
  --accent-dark:   #B8922F;
  --border-subtle: rgba(212, 168, 68, 0.10);
  --border:        rgba(212, 168, 68, 0.20);
  --border-strong: rgba(212, 168, 68, 0.40);
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.6);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.7);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.8);
  --glow:          0 0 24px rgba(212, 168, 68, 0.18);
  --glow-strong:   0 0 48px rgba(212, 168, 68, 0.28);
  --node-color:    rgba(212, 168, 68, 0.65);
  --node-line:     rgba(212, 168, 68, 0.10);
  --hero-overlay:  rgba(15, 15, 15, 0.55);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8f7f4;
  --bg-card:       #fafaf8;
  --bg-card-hover: #f2f0ea;
  --bg-nav:        rgba(255, 255, 255, 0.92);
  --text-primary:  #0f0f0f;
  --text-secondary:#444444;
  --text-muted:    #888888;
  --accent:        #B8922F;
  --accent-light:  #D4A844;
  --accent-warm:   #D97706;
  --accent-amber:  #B8922F;
  --accent-dark:   #7a6020;
  --border-subtle: rgba(184, 146, 47, 0.10);
  --border:        rgba(184, 146, 47, 0.20);
  --border-strong: rgba(184, 146, 47, 0.40);
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.10);
  --glow:          0 0 24px rgba(184, 146, 47, 0.10);
  --glow-strong:   0 0 48px rgba(184, 146, 47, 0.18);
  --node-color:    rgba(184, 146, 47, 0.50);
  --node-line:     rgba(184, 146, 47, 0.12);
  --hero-overlay:  rgba(255, 255, 255, 0.30);
}

/* ============================================================
   Base Reset
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   Typography
   ============================================================ */

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  transition: color var(--transition);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
}

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

.section-header.centered {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}

.section-header.centered p {
  margin: 16px auto 0;
}

.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 24px;
}

.divider.centered {
  margin: 24px auto 0;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background-color var(--transition), backdrop-filter var(--transition),
              padding var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: color var(--transition);
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-icon path, .nav-logo-icon polygon {
  transition: fill var(--transition), stroke var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #0f0f0f;
  transition: background var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.nav-btn-cta:hover {
  background: var(--accent-light);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  font-size: 13px;
  font-weight: 600;
}

.icon-btn:hover {
  color: var(--text-primary);
  background-color: var(--border-subtle);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.lang-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0 10px;
  width: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
}

/* ============================================================
   Hero Section
   ============================================================ */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-primary) 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  background: var(--border-subtle);
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

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

.hero-headline .accent-line {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent-warm) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 44px;
}

/* AI-powered badge in hero subtitle */
.ai-powered-badge {
  display: inline-block;
  position: relative;
  font-weight: 700;
  color: var(--accent);
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
  background: linear-gradient(
    110deg,
    rgba(212,168,68,0.08) 0%,
    rgba(212,168,68,0.18) 45%,
    rgba(232,186,92,0.32) 50%,
    rgba(212,168,68,0.18) 55%,
    rgba(212,168,68,0.08) 100%
  );
  background-size: 250% 100%;
  animation: ai-badge-shimmer 2.8s ease-in-out infinite, ai-badge-glow 2.8s ease-in-out infinite;
}

@keyframes ai-badge-shimmer {
  0%   { background-position: 200% center; }
  60%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}

@keyframes ai-badge-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(212,168,68,0.20); }
  50%       { box-shadow: 0 0 14px rgba(212,168,68,0.55), 0 0 28px rgba(212,168,68,0.18); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  color: #0f0f0f;
  transition: background var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: var(--glow-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast),
              transform var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--border-subtle);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ============================================================
   Stats Bar
   ============================================================ */

.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0;
  transition: background-color var(--transition);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  padding: 0 40px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ============================================================
   Why Section (Problem)
   ============================================================ */

#why {
  background: var(--bg-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why-left .section-header {
  margin-bottom: 40px;
}

.why-quote {
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  transition: background-color var(--transition);
}

.pain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pain-card {
  padding: 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--transition-fast), background var(--transition-fast),
              box-shadow var(--transition-fast), background-color var(--transition);
}

.pain-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.pain-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.pain-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain-card h4 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

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

/* ============================================================
   Offer Section
   ============================================================ */

#offer {
  background: var(--bg-secondary);
  transition: background-color var(--transition);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.offer-card {
  padding: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast), background-color var(--transition);
  position: relative;
  overflow: hidden;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.offer-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--glow);
}

.offer-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #0f0f0f;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offer-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.offer-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.offer-card .tag {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ============================================================
   How It Works
   ============================================================ */

#how {
  background: var(--bg-primary);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100%/6);
  right: calc(100%/6);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent), var(--border), transparent);
  z-index: 0;
}

.step {
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  transition: background-color var(--transition), box-shadow var(--transition-fast);
}

.step:hover .step-number {
  box-shadow: var(--glow);
}

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

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================================
   Story Section
   ============================================================ */

#story {
  background: var(--bg-secondary);
  transition: background-color var(--transition);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: center;
}

.story-visual {
  position: relative;
}

.story-emblem {
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color var(--transition);
}

.story-emblem svg {
  width: 60%;
  height: 60%;
  opacity: 0.85;
}

.story-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.milestone {
  padding: 20px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: background-color var(--transition);
}

.milestone-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1;
}

.milestone-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   Team Section
   ============================================================ */

#team {
  background: var(--bg-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast), background-color var(--transition);
}

.team-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition);
}

.team-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(212, 168, 68, 0.15) 0%,
    rgba(184, 146, 47, 0.08) 50%,
    rgba(232, 167, 68, 0.12) 100%);
}

.team-photo-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  opacity: 0.8;
}

.team-photo-circle {
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .team-photo-circle {
  background: linear-gradient(135deg, #2a2010 0%, #3a2e14 100%);
  box-shadow: 0 0 0 3px rgba(212, 168, 68, 0.25);
}

[data-theme="light"] .team-photo-circle {
  background: linear-gradient(135deg, #f5ede0 0%, #ecdcc4 100%);
  box-shadow: 0 0 0 3px rgba(184, 146, 47, 0.3);
}

.team-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-info {
  padding: 20px;
}

.team-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.team-bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.team-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.team-link {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.team-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.team-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Blog Section
   ============================================================ */

#blog {
  background: var(--bg-secondary);
  transition: background-color var(--transition);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
              transform var(--transition-fast), background-color var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition);
}

.blog-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.blog-thumb-icon {
  position: relative;
  z-index: 1;
  color: var(--accent);
  opacity: 0.6;
}

.blog-thumb-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.blog-date {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover h3 {
  color: var(--accent);
}

.blog-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-read-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.blog-card:hover .blog-read-more {
  gap: 10px;
  color: var(--accent-light);
}

.blog-card:hover .blog-read-more svg {
  transform: translateX(3px);
}

/* ============================================================
   CTA Section
   ============================================================ */

#cta {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 64px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent-warm), transparent);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 32px;
  transition: background-color var(--transition);
}

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

.footer-brand .nav-logo {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: inline-flex;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

/* ============================================================
   Blog Post Page
   ============================================================ */

.blog-post-hero {
  padding: 160px 0 80px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-post-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.blog-post-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 720px;
  margin-bottom: 40px;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.author-info .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-info .role {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-post-content {
  padding: 80px 0 120px;
  background: var(--bg-primary);
}

.post-body {
  max-width: 720px;
  margin: 0 auto;
}

.post-body h2 {
  font-size: 1.75rem;
  margin: 56px 0 20px;
  letter-spacing: -0.02em;
}

.post-body h3 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  color: var(--text-primary);
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
}

.post-body li {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.post-body ul li {
  list-style: disc;
}

.post-body ol li {
  list-style: decimal;
}

.post-body blockquote {
  margin: 40px 0;
  padding: 24px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background-color var(--transition);
}

.post-body blockquote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0;
}

.post-body .callout {
  margin: 40px 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  transition: background-color var(--transition);
}

.post-body .callout p {
  margin-bottom: 0;
}

.post-body .callout strong {
  color: var(--accent);
}

.post-separator {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 48px 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.post-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.post-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 40px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

.back-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Mobile Navigation Drawer
   ============================================================ */

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn:hover { color: var(--text-primary); background: var(--border-subtle); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .story-inner { grid-template-columns: 1fr; gap: 48px; }
  .story-emblem { max-width: 280px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 80px 0; }
  section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); padding: 24px 20px; }
  .stat-item:last-child { border-bottom: none; }

  .offer-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .how-steps::before { display: none; }
  .pain-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 48px 28px; }
  .story-milestones { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

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