/* ============================================
   SERVIO — CSS Theme
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #FAF9F7;
  --bg-alt: #F3F1ED;
  --fg: #1A1714;
  --fg-muted: #6B6560;
  --accent: #E8650A;
  --accent-light: #FFF3EB;
  --accent-mid: #F5C49C;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(26,23,20,0.08);
  --shadow-md: 0 4px 16px rgba(26,23,20,0.10);
  --shadow-lg: 0 12px 40px rgba(26,23,20,0.14);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* --- Layout helpers --- */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,247,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,23,20,0.06);
  padding: 0 32px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-word {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 80px;
  min-height: 680px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-geo {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.hero-geo-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,101,10,0.12) 0%, transparent 70%);
  top: -100px; right: 0;
}
.hero-geo-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,101,10,0.06) 0%, transparent 70%);
  bottom: -80px; left: 10%;
}
.hero-geo-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26,23,20,0.04) 0%, transparent 70%);
  top: 40%; left: 50%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 600px;
  padding: 0 32px 0 max(32px, calc((100vw - 1100px) / 2 + 32px));
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 28px;
  background: var(--bg-alt);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(26,23,20,0.08);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.08;
}
.hero-headline-accent {
  color: var(--accent);
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 32px;
}
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
  background: var(--white);
  border: 1px solid rgba(26,23,20,0.08);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* Hero Visual - Paper Stack */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px 0 0;
}
.paper-stack {
  position: relative;
  width: 340px;
}
.paper {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  border: 1px solid rgba(26,23,20,0.06);
}
.paper-1 {
  position: relative;
  z-index: 3;
  transform: rotate(-1.5deg);
}
.paper-2 {
  position: absolute;
  top: -18px;
  left: 18px;
  right: -18px;
  z-index: 2;
  transform: rotate(-3deg);
}
.paper-3 {
  position: absolute;
  top: -36px;
  left: 36px;
  right: -36px;
  z-index: 1;
  transform: rotate(-4.5deg);
  opacity: 0.7;
}
.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(26,23,20,0.06);
}
.paper-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.paper-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.paper-badge.green { background: #E8F7EE; color: #1A7A40; }
.paper-badge.amber { background: #FFF4E0; color: #A05A00; }
.paper-badge.blue { background: #E8F0FF; color: #1A4FCF; }
.paper-body { display: flex; flex-direction: column; gap: 7px; }
.paper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.paper-key {
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.paper-val {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
}
.paper-val-green { color: #1A7A40; }
.ai-badge {
  position: absolute;
  bottom: -16px;
  right: -8px;
  z-index: 10;
}
.ai-badge-inner {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(26,23,20,0.06);
}
.ai-badge-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--fg);
}
.ai-badge-status {
  font-size: 0.72rem;
  color: var(--fg-muted);
}

/* ============================================
   WHAT IT DOES
   ============================================ */
.what-it-does {
  background: var(--bg-alt);
  padding: 100px 0;
}
.wid-headline-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.wid-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
}
.wid-subheadline {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.wid-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.wid-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26,23,20,0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.wid-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.wid-icon { margin-bottom: 20px; }
.wid-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.wid-card-body {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: 100px 0;
}
.features-grid {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(26,23,20,0.07);
}
.feature-row:first-child { border-top: 1px solid rgba(26,23,20,0.07); }
.feature-marker {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.feature-content { flex: 1; }
.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-body {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--fg);
  padding: 100px 0;
  color: var(--white);
}
.how-it-works .section-eyebrow { color: var(--accent-mid); }
.hiw-headline {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 56px;
}
.hiw-steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.hiw-step { flex: 1; }
.step-number {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  line-height: 1;
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.step-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.hiw-connector {
  flex-shrink: 0;
  padding: 0 24px;
  opacity: 0.4;
}

/* ============================================
   MANIFESTO
   ============================================ */
.manifesto {
  padding: 100px 0;
  background: var(--accent-light);
}
.manifesto-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.manifesto-quote-mark { margin-bottom: 28px; }
.manifesto-text {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 24px;
  font-style: normal;
}
.manifesto-attribution {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0 32px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--fg-muted);
}
.footer-rule {
  height: 1px;
  background: rgba(26,23,20,0.1);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 0; }
  .hero-inner { max-width: 100%; padding: 0 24px; }
  .hero-visual { flex: none; padding: 48px 32px 0; }
  .paper-stack { transform: scale(0.85); transform-origin: top center; }
  .wid-three-col { grid-template-columns: 1fr; gap: 16px; }
  .hiw-steps { flex-direction: column; gap: 32px; }
  .hiw-connector { transform: rotate(90deg); padding: 0; }
  .nav-tagline { display: none; }
}
@media (max-width: 600px) {
  .hero-badge-row { flex-direction: column; }
  .section-inner, .nav, .footer-inner { padding: 0 20px; }
}