/* ── ArcheFlow v2 design system ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: #FAF9F7; font-family: 'DM Sans', sans-serif; color: #111; overflow-x: hidden; margin: 0; }

:root {
  --accent:       #C93131;
  --cream:        #FAF9F7;
  --charcoal:     #111;
  --white:        #fff;
  --muted:        #6B6B6B;
  --dark-bg:      #111;
  --dark-surface: #161616;
  --dark-card:    #1E1E1E;
  --border-light: rgba(0,0,0,0.06);
  --border-dark:  rgba(255,255,255,0.06);
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 48px;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
}
#site-nav.scrolled {
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.nav-brand,
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 400;
  font-size: 1.25rem; letter-spacing: -0.01em;
  color: #111; text-decoration: none;
}
.nav-brand .dot,
.nav-logo .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: #111; opacity: 0.7; text-decoration: none;
  position: relative;
  transition: opacity .2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width .3s ease;
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { opacity: 1; }
.nav-link.active::after { width: 100%; }
.nav-cta {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  background: var(--accent); color: #fff;
  padding: 10px 20px; border-radius: 100px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .9; transform: scale(1.02); }
.nav-login {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: #111; opacity: 0.55; text-decoration: none;
  transition: opacity .2s;
}
.nav-login:hover { opacity: 1; }
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 4px; color: #111;
  font-size: 1.375rem; line-height: 1;
}

/* Mobile nav */
#mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: #FAF9F7; border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 24px 48px; flex-direction: column; gap: 20px;
  animation: fadeDown .3s ease both;
}
#mobile-menu.open { display: flex; }
#mobile-menu .nav-link { font-size: 1rem; opacity: 1; }
#mobile-menu .nav-cta { text-align: center; padding: 12px; }
#mobile-menu .btn { text-align: center; justify-content: center; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  #site-nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  #mobile-menu { padding: 24px; }
}

/* ── Reveal animations ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── Pill badge ──────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  background: rgba(201,49,49,.12); color: var(--accent);
}

/* ── Page hero (shorter than index full-viewport) ────────────────────────── */
.page-hero {
  background: var(--cream);
  padding: 140px 48px 80px;
  position: relative; overflow: hidden;
}
.page-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.08; color: #111; margin: 12px 0 20px;
  animation: slideUp .9s cubic-bezier(.22,1,.36,1) .05s both;
}
.page-hero p {
  font-family: 'DM Sans', sans-serif; font-size: 1.125rem;
  font-weight: 300; line-height: 1.7; color: #111; opacity: .65;
  max-width: 560px;
  animation: slideUp .9s cubic-bezier(.22,1,.36,1) .2s both;
}
.page-hero-blob {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,49,49,.14) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}

@media (max-width: 768px) {
  .page-hero { padding: 120px 24px 60px; }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 100px 48px; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-inner { max-width: 1280px; margin: 0 auto; }

.section-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  display: inline-block; margin-bottom: 16px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(201,49,49,.12); color: var(--accent);
}
.section-heading {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.1; color: #111;
  margin: 0 0 20px;
}
.section-heading .hl { color: var(--accent); }
.section-sub {
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  line-height: 1.7; color: #111; opacity: .6; max-width: 520px;
}

@media (max-width: 768px) {
  .section { padding: 64px 24px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9375rem; font-weight: 500;
  padding: 14px 32px; border-radius: 100px;
  text-decoration: none; cursor: pointer; border: none;
  transition: opacity .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: .9; transform: scale(1.02); box-shadow: 0 8px 24px rgba(201,49,49,.25); }
.btn-outline { background: transparent; color: #111; border: 1.5px solid rgba(0,0,0,.15); }
.btn-outline:hover { transform: scale(1.02); }
.btn-ghost { background: transparent; color: #111; opacity: 0.55; }
.btn-ghost:hover { opacity: 1; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { opacity: .92; transform: scale(1.02); }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Insight article cards ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cards-grid { grid-template-columns: 1fr; } }

.insight-card {
  background: var(--white); border-radius: 24px;
  padding: 36px; border: 1px solid rgba(0,0,0,.06);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
  position: relative; overflow: hidden;
}
.insight-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.1); }
.insight-card.coming { opacity: .6; pointer-events: none; }
.insight-cat {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.insight-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.125rem; line-height: 1.35; color: #111;
  margin-bottom: 12px; flex: 1;
}
.insight-excerpt {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  line-height: 1.7; color: #111; opacity: .6; margin-bottom: 20px;
}
.insight-meta {
  font-family: 'DM Sans', sans-serif; font-size: 0.8125rem;
  color: #111; opacity: .4; display: flex; gap: 8px; align-items: center;
}
.insight-more {
  margin-top: 20px; font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem; font-weight: 500; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}
.coming-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(0,0,0,.06); color: #111; opacity: .6;
}

/* ── Article body ────────────────────────────────────────────────────────── */
.article-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px 100px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 500;
  color: #111; opacity: .5; text-decoration: none;
  margin-bottom: 48px;
  transition: opacity .2s;
}
.article-back:hover { opacity: 1; }
.article-header-hero {
  background: var(--cream);
  padding: 140px 24px 64px;
  text-align: left; position: relative; overflow: hidden;
}
.article-header-inner {
  max-width: 720px; margin: 0 auto; position: relative; z-index: 1;
}
.article-cat {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  display: inline-block; margin-bottom: 16px;
  padding: 4px 12px; border-radius: 100px;
  background: rgba(201,49,49,.12);
  animation: slideUp .8s cubic-bezier(.22,1,.36,1) both;
}
.article-header-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; color: #111;
  margin: 0 0 20px;
  animation: slideUp .8s cubic-bezier(.22,1,.36,1) .1s both;
}
.article-meta {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: #111; opacity: .45;
  display: flex; gap: 10px; flex-wrap: wrap;
  animation: slideUp .8s cubic-bezier(.22,1,.36,1) .2s both;
}
.article-wrap h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.5rem; line-height: 1.25; color: #111;
  margin: 48px 0 16px;
}
.article-wrap h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.125rem; line-height: 1.3; color: #111;
  margin: 28px 0 10px;
}
.article-wrap p {
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  line-height: 1.8; color: #111; opacity: .8;
  margin: 0 0 20px;
}
.article-wrap a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-wrap ul, .article-wrap ol {
  font-family: 'DM Sans', sans-serif; font-size: 1rem;
  line-height: 1.8; color: #111; opacity: .8;
  padding-left: 24px; margin-bottom: 20px;
}
.article-wrap li { margin-bottom: 8px; }
.article-wrap hr {
  border: none; border-top: 1px solid rgba(0,0,0,.08);
  margin: 48px 0;
}
.callout {
  background: #FAF9F7; border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 20px 24px;
  margin: 28px 0;
}
.callout p { margin: 0; opacity: 1; }
.article-cta-box {
  margin-top: 56px; padding: 36px; border-radius: 24px;
  background: rgba(201,49,49,.06); border: 1.5px solid rgba(201,49,49,.2);
}
.article-cta-box h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.25rem; color: #111; margin: 0 0 8px;
}
.article-cta-box p { margin: 0 0 20px; }
.ref-text {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: #111; opacity: .5; line-height: 1.7;
}

/* ── Pricing cards ───────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 48px; align-items: start;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--white); border-radius: 24px;
  padding: 36px 32px; border: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.09); }
.pricing-card.featured {
  background: #111; border-color: rgba(201,49,49,.3);
  transform: scale(1.02);
}
.pricing-card.featured:hover { transform: scale(1.02) translateY(-6px); }
.pricing-card-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); border-radius: 24px 24px 0 0;
}
.pricing-card:nth-child(5) { grid-column: span 2; }
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent); color: #fff;
}
.plan-name {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.pricing-card.featured .plan-name { color: rgba(255,255,255,.6); }
.plan-tagline {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1.0625rem; color: #111; margin-bottom: 20px; line-height: 1.3;
}
.pricing-card.featured .plan-tagline { color: #FAF9F7; }
.plan-price {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 2.5rem; color: #111; line-height: 1; margin-bottom: 4px;
}
.pricing-card.featured .plan-price { color: #fff; }
.plan-price-sub {
  font-family: 'DM Sans', sans-serif; font-size: 0.8125rem;
  color: #111; opacity: .45; margin-bottom: 24px;
}
.pricing-card.featured .plan-price-sub { color: rgba(255,255,255,.45); }
.plan-divider { border: none; border-top: 1px solid rgba(0,0,0,.07); margin: 20px 0; }
.pricing-card.featured .plan-divider { border-color: rgba(255,255,255,.1); }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: #111; opacity: .75; line-height: 1.5;
}
.pricing-card.featured .plan-feature { color: rgba(255,255,255,.75); opacity: 1; }
.plan-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
}
.plan-cta { margin-top: auto; }

/* Pricing toggle */
.pricing-toggle {
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9375rem;
  justify-content: center; margin-bottom: 8px;
}
.toggle-switch {
  width: 44px; height: 24px; background: rgba(0,0,0,.12); border-radius: 100px;
  position: relative; cursor: pointer; transition: background .3s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: left .3s;
}
.toggle-switch.on .toggle-thumb { left: 23px; }
.save-badge {
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: rgba(201,49,49,.12); color: var(--accent);
}

/* ── Dark CTA section ────────────────────────────────────────────────────── */
.cta-section {
  background: #111; padding: 100px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-section h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem); color: #FAF9F7;
  margin: 0 0 16px; line-height: 1.1;
}
.cta-section h2 .hl { color: var(--accent); }
.cta-section p {
  font-family: 'DM Sans', sans-serif; font-size: 1.125rem;
  color: rgba(250,249,247,.6); margin: 0 0 36px; line-height: 1.7;
}
.cta-section .cta-blob {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,49,49,.15) 0%, transparent 70%);
  filter: blur(60px); pointer-events: none;
}
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) { .cta-section { padding: 64px 24px; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: #111; padding: 60px 48px 30px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand p {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  line-height: 1.7; color: rgba(250,249,247,.45); max-width: 260px;
  margin: 8px 0 0;
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.5rem; color: #fff; margin-bottom: 12px;
}
.footer-logo .dot { color: var(--accent); }
.footer-tagline {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  line-height: 1.7; color: rgba(250,249,247,.45); max-width: 260px;
}
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4,
.footer-col h5 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.875rem; color: #fff; margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-family: 'DM Sans', sans-serif; font-size: 0.875rem;
  color: rgba(250,249,247,.45); text-decoration: none;
  display: block; line-height: 1.6;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1280px; margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-bottom p,
.footer-bottom span {
  font-family: 'DM Sans', sans-serif; font-size: 0.75rem;
  color: rgba(250,249,247,.3); margin: 0;
}

@media (max-width: 768px) {
  .site-footer { padding: 48px 24px 24px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; }
}

/* ── Misc utilities ──────────────────────────────────────────────────────── */
.red { color: var(--accent); }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
