/* ============================================================
   DENSIO — Landing Page
   style.css
   ============================================================ */

/* ── Cookie Banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
}
.cookie-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner__text a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__accept {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 9px 20px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner__accept:hover { background: transparent; color: var(--white); }
.cookie-banner__decline {
  font-size: 12px;
  font-weight: 400;
  padding: 9px 20px;
  background: transparent;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-banner__decline:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --black:   #0a0a0a;
  --white:   #f5f4f0;
  --gray-1:  #1a1a1a;
  --gray-2:  #2c2c2c;
  --gray-3:  #5a5a5a;
  --gray-4:  #9a9a9a;
  --gray-5:  #d4d4d0;
  --border:  rgba(0,0,0,0.12);
  --border-w: rgba(255,255,255,0.14);

  --serif:   'Playfair Display', Georgia, serif;
  --sans:    'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --max: 1120px;
  --pad-x: clamp(24px, 5vw, 80px);
  --pad-section: clamp(72px, 10vw, 120px);
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--hero {
  max-width: 1400px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.dark {
  background: transparent;
  border-color: transparent;
}
.nav.scrolled {
  background: var(--black);
  border-color: var(--border-w);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s;
}
.nav.scrolled .nav__logo { color: var(--white); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--gray-3);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease-out);
}
.nav__link { color: rgba(255,255,255,0.6); }
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }
.nav.scrolled .nav__link { color: rgba(255,255,255,0.5); }
.nav.scrolled .nav__link:hover { color: var(--white); }

/* lang toggle */
.nav__lang {
  display: flex;
  gap: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.nav.scrolled .nav__lang { border-color: var(--border-w); }
.lang-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active {
  background: var(--white);
  color: var(--black);
}
.nav.scrolled .lang-btn { color: rgba(255,255,255,0.4); }
.nav.scrolled .lang-btn.active { background: var(--white); color: var(--black); }

.nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  color: var(--white);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav__cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.nav.scrolled .nav__cta { border-color: var(--white); color: var(--white); }
.nav.scrolled .nav__cta:hover { background: var(--white); color: var(--black); }
.nav.dark .nav__cta:hover { background: var(--white); color: var(--black); }

/* ============================================================
   HERO  — dark band
   ============================================================ */
.hero {
  background: var(--black);
  background-image: url('herp-bg.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  color: var(--white);
  min-height: 100vh;
  padding-top: 315px;
  padding-bottom: clamp(160px, 20vw, 270px);
  border-bottom: 1px solid var(--border-w);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.7) 100%
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__inner {
  display: block;
}
.hero__left { padding-bottom: 8px; }

.hero__eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
}
.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 36px;
}
.hero__h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.65);
}
.hero__sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 44px;
}
.hero__actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  border-radius: 3px;
  transition: background 0.25s, color 0.25s, gap 0.25s;
}
.btn-primary:hover { background: transparent; color: var(--white); gap: 16px; }
.btn-primary .arrow { font-size: 16px; transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  color: var(--white);
  background: transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s, gap 0.25s;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  gap: 14px;
}
.btn-outline .arrow { font-size: 16px; transition: transform 0.25s; }
.btn-outline:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.btn-ghost:hover { color: var(--white); gap: 10px; }

/* hero right — stat block */
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.hero__stat {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}
.hero__stat:last-child { border-bottom: none; }
.hero__stat-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-header { margin-bottom: 56px; }
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-4);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--gray-3); }
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--gray-3);
  line-height: 1.7;
  max-width: 520px;
}

/* dark variant */
.section--dark .section-label { color: rgba(255,255,255,0.35); }
.section--dark .section-title { color: var(--white); }
.section--dark .section-title em { color: rgba(255,255,255,0.5); }
.section--dark .section-sub { color: rgba(255,255,255,0.45); }

/* ============================================================
   WHAT WE BUILD  — white band
   ============================================================ */
.section--build {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--border);
}

/* vertical tabs */
.vtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.vtab {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--gray-3);
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vtab:hover { border-color: var(--black); color: var(--black); }
.vtab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* framework grid */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.fw-card {
  background: var(--white);
  padding: 28px 28px 26px;
  transition: background 0.2s;
}
.fw-card:hover { background: #f0efeb; }
.fw-card__name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.fw-card__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-3);
  line-height: 1.6;
}

/* grid animation */
.fw-grid { opacity: 1; }
.fw-grid.switching { opacity: 0; }
.fw-grid { transition: opacity 0.2s; }

/* ============================================================
   HOW IT WORKS  — dark band
   ============================================================ */
.section--how {
  background: var(--black);
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--border-w);
}
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
}
.step {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.step:last-child { border-right: none; }
.step__num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: rgba(255,255,255,0.12);
  line-height: 1;
  margin-bottom: 20px;
}
.step__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.step__desc {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
}

/* ============================================================
   SERVICES / TIERS  — white band
   ============================================================ */
.section--tiers {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--border);
}
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.tier {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  position: relative;
}
.tier:last-child { border-right: none; }
.tier--featured {
  background: var(--black);
  color: var(--white);
}
.tier__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.tier__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tier--featured .tier__name { color: var(--white); }
.tier__price {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-3);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.tier--featured .tier__price { color: rgba(255,255,255,0.45); }
.tier__desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--gray-3);
  line-height: 1.65;
}
.tier--featured .tier__desc { color: rgba(255,255,255,0.55); }

/* ============================================================
   FAQ  — white band
   ============================================================ */
.section--faq {
  padding: var(--pad-section) 0;
  border-bottom: 1px solid var(--border);
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}
.faq-item {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-item:nth-child(2n) { border-right: none; }
.faq-item:nth-last-child(-n+2) { border-bottom: none; }
.faq-q {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--black);
}
.faq-a {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray-3);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .faq-list { grid-template-columns: 1fr; }
  .faq-item { border-right: none; border-bottom: 1px solid var(--border); }
  .faq-item:last-child { border-bottom: none; }
}

/* ============================================================
   CTA FINAL  — dark band
   ============================================================ */
.section--cta {
  background: var(--black);
  padding: clamp(80px, 12vw, 140px) 0;
  text-align: center;
}
.cta__h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta__h2 em { font-style: italic; color: rgba(255,255,255,0.5); }
.cta__sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.cta__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--border-w);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__logo {
  font-family: var(--serif);
  font-size: 16px;
  color: rgba(255,255,255,0.5);
}
.footer__legal {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal-link {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}
.footer__legal-link:hover { color: rgba(255,255,255,0.7); }
.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { display: none; }
  .fw-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .tiers-grid { grid-template-columns: repeat(3, 1fr); }
  .tier { border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .nav__links { gap: 16px; }
  .nav__link:not(.nav__cta):not(.nav__lang-wrap) { display: none; }
  .fw-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: 12px; text-align: center; }
}
