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

:root {
  --navy: #12123A;
  --violet: #7B5CF0;
  --navy-muted: #4A4A6A;
  --card-bg: #F8F8FC;
  --border: #E8E8F0;
  --white: #FFFFFF;
  --dark-muted: #9090B8;
  --navy-hover: #1E1E5A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy-muted);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.625rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--violet); }
p { margin: 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  color: var(--violet);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  line-height: 1.2;
}

.center { text-align: center; }

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) { .nav-inner { height: 80px; } }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 15px;
  color: var(--navy);
  transition: color .2s;
}
.nav-link:hover { color: var(--navy-muted); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-top: 1px solid var(--border);
  }
  .nav-links.is-open { display: flex; }
  .nav-link { font-size: 17px; }
}

/* ---------------- BUTTONS ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
  padding: 12px 24px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); }
.btn-nav { padding: 8px 16px; font-size: 14px; background: var(--navy); color: var(--white); }
.btn-nav:hover { background: var(--navy-hover); }
.btn-light { background: var(--white); color: var(--navy); padding: 14px 28px; }
.btn-light:hover { background: var(--card-bg); }
.btn-link {
  background: none;
  color: var(--navy);
  border-radius: 0;
  padding: 0 0 2px 0;
  border-bottom: 1px solid rgba(18,18,58,0.4);
}
.btn-link:hover { border-bottom-color: var(--navy); }

/* ---------------- SECTIONS ---------------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section-bordered { border-top: 1px solid var(--border); }
.section-card-bg { background: var(--card-bg); }
.section-title { margin-top: 20px; max-width: 640px; }

/* ---------------- HERO ---------------- */
.hero { min-height: 70vh; display: flex; align-items: center; padding-top: 80px; }
.hero-inner > * + * { margin-top: 24px; }
.hero-inner h1 { margin-top: 24px; max-width: 800px; }
.hero-lead { margin-top: 32px; max-width: 640px; color: var(--navy-muted); }
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; align-items: center; }
}

/* ---------------- GRID 2 ---------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 80px; }
}

/* O MNIE */
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.prose > * + * { margin-top: 24px; }
.prose { margin-top: 32px; }
.stats {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-v { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 1.875rem); color: var(--navy); }
.stat-l { margin-top: 8px; font-size: 13px; color: var(--navy-muted); line-height: 1.4; }

/* ---------------- CARDS 3 ---------------- */
.cards-3 {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card { border-top: 3px solid var(--violet); }
.card h3 { margin-top: 24px; font-family: 'Playfair Display', serif; }
.card > p { margin-top: 20px; font-size: 16px; line-height: 1.7; color: var(--navy-muted); }
.card-foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.card-foot p { margin-top: 12px; font-size: 14px; color: var(--navy-muted); line-height: 1.6; }

/* RESULT */
.result-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 3.75rem);
  line-height: 1;
  color: var(--navy);
}
.result-num .unit { color: var(--violet); }
.result-label { margin-top: 12px; color: var(--navy-muted); font-size: 15px; }
.result-body { margin-top: 24px; color: var(--navy); font-size: 16px; line-height: 1.7; }

/* ---------------- STEPS ---------------- */
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.step { border-top: 1px solid var(--navy); padding-top: 24px; }
.step-n { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--violet); }
.step h3 { margin-top: 16px; font-size: 1.25rem; }
.step p { margin-top: 16px; font-size: 15px; color: var(--navy-muted); line-height: 1.7; }

/* ---------------- LOGOS ---------------- */
.logos {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logo-box {
  aspect-ratio: 3 / 2;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- CONTACT ---------------- */
.contact-grid { margin-top: 64px; }
.contact-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.contact-q { margin-top: 16px; color: var(--navy); }
.link-underline {
  display: inline-block;
  margin-top: 12px;
  color: var(--navy);
  border-bottom: 1px solid rgba(18,18,58,0.3);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.link-underline:hover { border-bottom-color: var(--navy); }

.form > * + * { margin-top: 24px; }
.field { display: block; }
.field label { display: block; }
.req { color: var(--navy); }
.field input,
.field textarea {
  margin-top: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  outline: none;
  padding: 12px 0;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  transition: border-color .2s;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--navy); }
.field .error {
  margin-top: 8px;
  font-size: 13px;
  color: #B91C1C;
  min-height: 0;
  display: none;
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: #B91C1C; }
.field.has-error .error { display: block; }
.form button[type="submit"] { margin-top: 16px; }

.success {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 40px;
}
.success h3 {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.875rem;
}

/* ---------------- CTA DARK ---------------- */
.cta-dark { background: var(--navy); }
.cta-inner { padding: 80px 0; }
@media (min-width: 768px) { .cta-inner { padding: 128px 0; } }
.cta-dark h2 { color: var(--white); max-width: 720px; margin: 0 auto; }
.cta-sub { margin: 24px auto 0; max-width: 560px; color: var(--dark-muted); }
.cta-inner > div:last-child { margin-top: 40px; }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--border); background: var(--white); }
.footer-inner {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; padding: 32px 40px; }
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--navy); }
.footer-copy { font-size: 13px; color: var(--navy-muted); }
.footer-social { font-size: 14px; color: var(--navy); transition: color .2s; }
.footer-social:hover { color: var(--navy-muted); }

/* ---------------- REVEAL ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
