/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF8;
  --bg-warm: #F5F3EE;
  --fg: #0F0F0F;
  --fg-muted: #6B6B6B;
  --indigo: #4F46E5;
  --indigo-deep: #3730A3;
  --amber: #F59E0B;
  --amber-light: #FEF3C7;
  --white: #FFFFFF;
  --border: #E5E5E0;
  --card-bg: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);

  --max-w: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ NAV ============ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ============ HERO ============ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(79,70,229,0.08);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--indigo);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  align-items: center;
}

.hero-cta-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--indigo);
  padding: 10px 20px;
  border: 2px solid var(--indigo);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: default;
  opacity: 0.85;
}

.hero-cta-text:hover {
  background: rgba(79,70,229,0.06);
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--indigo);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 120px;
}

/* Hero right — visual grid */
.hero-right {
  position: relative;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}

.viz-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.viz-card:hover {
  transform: translateY(-3px);
}

.viz-card-1 { transform: rotate(-1.5deg); }
.viz-card-2 { transform: rotate(1deg); }
.viz-card-3 { transform: rotate(2deg); }
.viz-card-4 { transform: rotate(-0.8deg); }

.viz-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 4px;
}

.viz-card-2 .viz-icon { background: linear-gradient(135deg, var(--amber) 0%, #D97706 100%); }
.viz-card-3 .viz-icon { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.viz-card-4 .viz-icon { background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%); }

.viz-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--fg);
}

.viz-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(40px);
}

.hero-blob-1 {
  width: 200px;
  height: 200px;
  background: rgba(79,70,229,0.12);
  top: -30px;
  right: -30px;
}

.hero-blob-2 {
  width: 150px;
  height: 150px;
  background: rgba(245,158,11,0.12);
  bottom: -20px;
  left: -20px;
}

/* ============ SECTION SHARED ============ */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ============ HOW IT WORKS ============ */
.howitworks {
  background: var(--white);
  padding: 80px var(--pad-x);
  position: relative;
}

.howitworks::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--amber), var(--indigo));
}

.howitworks-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  align-items: start;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--indigo);
  opacity: 0.15;
  line-height: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(79,70,229,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}

.step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

.step-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.step-connector {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  height: 60px;
  align-self: center;
  margin-top: 20px;
}

/* ============ CATEGORIES ============ */
.categories {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.cat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.cat-card:hover::before {
  transform: scaleX(1);
}

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

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(79,70,229,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
  margin-bottom: 4px;
}

.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.cat-card p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============ PHILOSOPHY ============ */
.philosophy {
  background: var(--indigo);
  padding: 80px var(--pad-x);
  color: white;
}

.philosophy-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.philosophy-left .section-label {
  color: rgba(255,255,255,0.6);
}

.philosophy-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: white;
}

.philosophy-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.philosophy-quote {
  margin-top: 8px;
  padding-left: 20px;
  border-left: 3px solid var(--amber);
}

.philosophy-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.philosophy-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.philosophy-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvisual-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

.pvisual-ring-1 {
  width: 180px;
  height: 180px;
  animation: spin 20s linear infinite;
}

.pvisual-ring-2 {
  width: 130px;
  height: 130px;
  border-style: dashed;
  animation: spin 14s linear infinite reverse;
}

.pvisual-ring-3 {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.08);
}

.pvisual-center {
  position: absolute;
  width: 64px;
  height: 64px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(245,158,11,0.5);
}

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

.philosophy-stat-row {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.pstat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
}

.pstat-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  max-width: 100px;
  line-height: 1.4;
}

/* ============ CLOSING ============ */
.closing {
  background: var(--bg-warm);
  padding: 100px var(--pad-x);
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.closing-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  background: rgba(79,70,229,0.08);
  padding: 8px 20px;
  border-radius: 100px;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 540px;
}

.closing-pulse {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 20px;
  height: 20px;
  background: var(--indigo);
  border-radius: 50%;
  position: relative;
  z-index: 3;
}

.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--indigo);
  animation: pulse 2.5s ease-out infinite;
}

.pulse-ring-2 {
  animation-delay: 0.8s;
}

@keyframes pulse {
  0% { width: 20px; height: 20px; opacity: 0.8; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--fg);
  padding: 48px var(--pad-x);
  color: white;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  text-align: center;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step-connector { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; }
  .philosophy-visual { display: none; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .philosophy-stat-row { flex-direction: column; align-items: center; }
}