/* ============================================
   YOHANN ESCHER — DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap');

/* Satoshi via fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  /* Cores da marca */
  --c-orange: #FF6B1A;
  --c-orange-2: #F26A1F;
  --c-orange-soft: #FFF0E6;
  --c-orange-glow: rgba(255, 107, 26, 0.18);

  --c-bege-claro: #F7EFE5;
  --c-bege-quente: #F1E0DA;
  --c-bege-medio: #E5D7C7;
  --c-bege-card: #FAF3EA;

  --c-grafite: #0F1014;
  --c-grafite-2: #15161B;
  --c-grafite-3: #1E2026;
  --c-grafite-card: #1A1C22;

  --c-text-dark: #18191D;
  --c-text-muted: #6B6770;
  --c-text-light: #A6A0AB;
  --c-text-on-dark: #F4F1EC;
  --c-text-on-dark-muted: #9A9591;

  --c-border-soft: #E8DFD2;
  --c-border-dark: rgba(255,255,255,0.08);

  /* Tipografia */
  --f-sans: 'Satoshi', system-ui, -apple-system, sans-serif;
  --f-serif: 'DM Serif Display', 'Recoleta', Georgia, serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-soft: 0 4px 14px rgba(20, 14, 8, 0.04), 0 1px 2px rgba(20, 14, 8, 0.03);
  --shadow-card: 0 12px 30px rgba(20, 14, 8, 0.08), 0 2px 6px rgba(20, 14, 8, 0.04);
  --shadow-card-hover: 0 24px 50px rgba(20, 14, 8, 0.12), 0 4px 12px rgba(20, 14, 8, 0.05);
  --shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-orange: 0 12px 32px rgba(255, 107, 26, 0.32);

  /* Spacing */
  --container: 1240px;
  --section-y: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--f-sans);
  background: var(--c-bege-claro);
  color: var(--c-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02";
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

::selection {
  background: var(--c-orange);
  color: white;
}

/* Tipografia base */
.font-serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.italic-accent { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--c-orange); }
.italic-accent-dark { font-family: var(--f-serif); font-style: italic; font-weight: 400; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; line-height: 1.55; }

.h-display { font-size: clamp(40px, 5.2vw, 76px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.0; }
.h-1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1.05; }
.h-2 { font-size: clamp(28px, 2.6vw, 40px); letter-spacing: -0.025em; line-height: 1.1; }
.h-3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-orange);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--c-orange);
}

.muted { color: var(--c-text-muted); }
.muted-on-dark { color: var(--c-text-on-dark-muted); }

/* Container & section */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section { padding: var(--section-y) 0; }
.section-tight { padding: 64px 0; }

/* Backgrounds */
.bg-dark {
  background: var(--c-grafite);
  color: var(--c-text-on-dark);
}
.bg-bege-quente { background: var(--c-bege-quente); }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--c-orange);
  color: white;
  box-shadow: 0 8px 18px rgba(255,107,26,0.25);
}
.btn-primary:hover {
  background: #FF7A2F;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255,107,26,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--c-text-dark);
  border: 1px solid rgba(15,16,20,0.16);
}
.btn-secondary:hover {
  background: rgba(15,16,20,0.04);
  border-color: rgba(15,16,20,0.32);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--c-grafite);
  color: white;
}
.btn-dark:hover {
  background: var(--c-grafite-3);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
}
.btn-ghost:hover {
  background: var(--c-orange);
  color: white;
}

.btn-on-dark-secondary {
  background: rgba(255,255,255,0.06);
  color: white;
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-on-dark-secondary:hover {
  background: rgba(255,255,255,0.12);
}

.btn .arrow { transition: transform .25s cubic-bezier(.2,.6,.2,1); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* Text link */
.tlink {
  color: var(--c-orange);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
}
.tlink:hover { gap: 10px; }

/* Chips / Pills */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid rgba(15,16,20,0.14);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-dark);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--c-orange); color: var(--c-orange); }
.chip.active {
  background: var(--c-orange);
  border-color: var(--c-orange);
  color: white;
}
.chip.dark { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); color: var(--c-text-on-dark); }
.chip.dark:hover { border-color: var(--c-orange); color: var(--c-orange); }

/* Cards */
.card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--c-border-soft);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s, border-color .35s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255,107,26,0.3);
}

.card-dark {
  background: var(--c-grafite-card);
  border: 1px solid var(--c-border-dark);
  border-radius: var(--r-lg);
  padding: 28px;
  color: var(--c-text-on-dark);
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .35s, border-color .35s;
}
.card-dark:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,26,0.5);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}

/* Subtle radial sun */
.sun-decoration {
  position: absolute;
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: .9;
  background-image: radial-gradient(circle at center,
    rgba(255,107,26,0.45) 0%,
    rgba(255,107,26,0) 1.6%
  );
  background-size: 6.7% 6.7%;
  background-position: center;
  --m: radial-gradient(circle at center, rgba(255,107,26,1) 0%, rgba(255,107,26,1) 1.5px, transparent 1.6px);
}

/* The "spark" star icon - we'll use SVG */

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

.float { animation: drift 6s ease-in-out infinite; }
.float-2 { animation: drift 8s ease-in-out infinite; animation-delay: -2s; }
.float-3 { animation: drift 7s ease-in-out infinite; animation-delay: -4s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(247, 239, 229, 0.78);
  border-bottom: 1px solid rgba(15,16,20,0.05);
  transition: background .3s, border-color .3s;
}
.site-header.dark {
  background: rgba(15, 16, 20, 0.78);
  border-bottom-color: rgba(255,255,255,0.06);
  color: var(--c-text-on-dark);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1320px;
  margin: 0 auto;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: 999px;
  position: relative;
  transition: color .2s;
}
.nav-link:hover { color: var(--c-text-dark); }
.nav-link.active { color: var(--c-text-dark); font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--c-orange);
}
.site-header.dark .nav-link { color: var(--c-text-on-dark-muted); }
.site-header.dark .nav-link:hover, .site-header.dark .nav-link.active { color: var(--c-text-on-dark); }

/* Logo */
.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.logo-wordmark .name-italic {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* Footer */
.site-footer {
  background: var(--c-bege-claro);
  border-top: 1px solid var(--c-border-soft);
  padding: 36px 32px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-tags {
  display: flex;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(15,16,20,0.04);
  color: var(--c-text-muted);
  transition: all .2s;
}
.footer-social a:hover { background: var(--c-orange); color: white; }

/* Star/spark icon path used by inline SVGs */

/* Stat block */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--c-text-dark);
}
.stat-label {
  font-size: 13.5px;
  color: var(--c-text-muted);
}
.stat-num.orange { color: var(--c-orange); }

/* Number badge (01, 02 ...) */
.num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--c-orange);
  color: white;
  font-weight: 600;
  font-size: 14px;
}
.num-badge.outline {
  background: transparent;
  border: 1px solid rgba(255,107,26,0.5);
  color: var(--c-orange);
}

/* Sparkles spark icon CSS (for badge or floating decor) */
.spark {
  display: inline-block;
  width: 16px; height: 16px;
  background: var(--c-orange);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13 9 L22 10 L13 11 L12 22 L11 11 L0 10 L11 9 Z' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 0 L13 9 L22 10 L13 11 L12 22 L11 11 L0 10 L11 9 Z' fill='black'/></svg>") center/contain no-repeat;
}

/* Page transition */
.page-enter { animation: pageIn .55s cubic-bezier(.2,.6,.2,1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Checkmark check */
.check-bullet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.check-bullet::before {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><circle cx='8' cy='8' r='7' stroke='%23FF6B1A' stroke-width='1.4'/><path d='M5 8.2 7 10 11 6' stroke='%23FF6B1A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* Avatar stack */
.avatar-stack { display: inline-flex; }
.avatar-stack > * {
  width: 28px; height: 28px;
  border-radius: 999px;
  border: 2px solid var(--c-bege-claro);
  margin-left: -8px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bege-medio);
}
.avatar-stack > *:first-child { margin-left: 0; }
.avatar-stack .more {
  background: var(--c-orange);
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}

/* Tag/badge inline */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--c-orange-soft);
  color: var(--c-orange);
}
.tag.dark { background: rgba(255,107,26,0.15); }

/* Glass dark card (motion hero floating cards) */
.glass-dark {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
}

/* simple svg icon styling */
.icon-sq {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-orange-soft);
  color: var(--c-orange);
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-sq.dark { background: rgba(255,107,26,0.14); }

/* horizontal divider with center spark */
.hr-spark {
  display: flex; align-items: center; gap: 12px;
  color: var(--c-orange);
}
.hr-spark::before, .hr-spark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,107,26,0.2);
}

/* Form controls */
.input, .textarea, .select {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  background: white;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-sm);
  color: var(--c-text-dark);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255,107,26,0.12);
}
.textarea { min-height: 100px; resize: vertical; }
.label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-dark);
  margin-bottom: 6px;
}

/* SVG sun glyph background */
.sun-bg {
  position: absolute;
  pointer-events: none;
  opacity: .8;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,16,20,0.18); border-radius: 999px; border: 2px solid var(--c-bege-claro); }
::-webkit-scrollbar-thumb:hover { background: rgba(15,16,20,0.28); }

/* Responsive helpers */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Utility flex */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }

.text-center { text-align: center; }
.text-sm { font-size: 13.5px; }
.text-xs { font-size: 12px; }

.rel { position: relative; }
.abs { position: absolute; }

/* Dotted divider rule */
.dotted-line {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255,107,26,0.5) 50%, transparent 50%);
  background-size: 8px 1px;
  background-repeat: repeat-x;
}

/* Panel section heading row */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head .lhs { max-width: 560px; }

/* Funnel SVG support */
.funnel-step {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 4px;
}

/* Tooltip card */
.tip-card {
  background: var(--c-grafite-2);
  color: white;
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-dark);
}

/* Animated orbit lines for hero */
.orbit-svg { position: absolute; inset: 0; pointer-events: none; }
