/* ========================================================================
   IAVILLE — Landing Page
   Author: Sarvis (MiniMax)
   Date: 2026-06-23
   ========================================================================= */

/* Design tokens — derive from BRAND.md */
:root {
  --ink: #0F172A;          /* Primary — Navy */
  --sky: #06B6D4;          /* Secondary — Ciano */
  --sky-soft: #67E8F9;     /* Tertiary — Ciano claro */
  --paper: #FFFFFF;        /* Background claro */
  --mist: #F8FAFC;         /* Background neutro */
  --line: #E2E8F0;         /* Bordas */
  --ink-2: #334155;        /* Texto secundário sobre claro */
  --ink-3: #64748B;        /* Texto terciário sobre claro */
  --paper-on-ink: #F1F5F9; /* Texto principal sobre escuro */

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1200px;
  --container-narrow: 880px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);

  --transition: 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset + base ========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--ink); }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
}

p { margin: 0; }

ul { padding: 0; margin: 0; list-style: none; }

/* Accessibility ========================================================= */
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Layout helpers ======================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px 0;
}

.eyebrow-light {
  color: var(--sky-soft);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display em {
  font-style: italic;
  color: var(--sky);
}

/* Signature line — geometric anchor on dark sections */
.signature-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--sky);
}

/* Buttons ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm { padding: 10px 16px; font-size: 0.9375rem; }
.btn-lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn-xl { padding: 22px 40px; font-size: 1.125rem; }

.btn-primary {
  background: var(--sky);
  color: var(--ink);
  border-color: var(--sky);
}
.btn-primary:hover {
  background: var(--sky-soft);
  border-color: var(--sky-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

/* Header ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
}
.logo-img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a {
  color: var(--ink);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--sky);
  transition: width var(--transition);
}
.nav a:hover { color: var(--sky); }
.nav a:hover::after { width: 100%; }

/* Hero ================================================================== */
.hero {
  position: relative;
  padding: clamp(64px, 12vw, 144px) 0 clamp(80px, 14vw, 160px);
  background: var(--paper);
  overflow: hidden;
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: clamp(360px, 38vw, 560px);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  max-width: 880px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero-sub {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 680px;
  margin-bottom: 40px;
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Section heads (shared) ================================================ */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: inherit;
}

/* Problem section ====================================================== */
.problem {
  position: relative;
  padding: clamp(80px, 12vw, 128px) 0;
  background: var(--ink);
  color: var(--paper-on-ink);
  overflow: hidden;
}

.problem .section-head h2 {
  color: var(--paper);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.problem-card {
  position: relative;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(103, 232, 249, 0.3);
}

.problem-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sky);
  margin-bottom: 24px;
  padding: 4px 10px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 100px;
}

.problem-card h3 {
  font-size: 1.25rem;
  color: var(--paper);
  margin-bottom: 12px;
}

.problem-card p {
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* Services section ===================================================== */
.services {
  padding: clamp(80px, 12vw, 128px) 0;
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.service-card {
  position: relative;
  padding: 36px 32px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--sky);
  box-shadow: var(--shadow-lg);
}

.service-card-feature {
  background: var(--ink);
  color: var(--paper-on-ink);
  border-color: var(--ink);
}

.service-card-feature h3,
.service-card-feature .service-list li {
  color: var(--paper);
}

.service-card-feature .service-list li::before {
  background: var(--sky);
}

.service-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(6, 182, 212, 0.1);
  color: var(--sky);
  margin-bottom: 24px;
}

.service-card-feature .service-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--sky-soft);
}

.service-card h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-card-feature > p {
  color: var(--ink-3);
}

.service-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 2px;
  background: var(--sky);
}

.services-cta {
  text-align: center;
}

/* Process section ====================================================== */
.process {
  position: relative;
  padding: clamp(80px, 12vw, 128px) 0;
  background: var(--ink);
  color: var(--paper-on-ink);
  overflow: hidden;
}

.process .section-head h2 { color: var(--paper); }

.process-list {
  display: grid;
  gap: 24px;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}

.process-step:hover {
  transform: translateX(4px);
  border-color: rgba(103, 232, 249, 0.3);
}

.process-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sky);
  line-height: 1;
  padding-top: 4px;
}

.process-body h3 {
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 8px;
}

.process-body p {
  color: var(--ink-3);
  margin-bottom: 12px;
}

.process-meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--sky-soft);
  letter-spacing: 0.02em;
}

/* About section ======================================================== */
.about {
  padding: clamp(80px, 12vw, 128px) 0;
  background: var(--paper);
}

.about-content {
  max-width: 760px;
}

.about-lead {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sky);
  margin-bottom: 24px;
  line-height: 1.4;
}

.about-content p {
  color: var(--ink-2);
  margin-bottom: 20px;
  font-size: 1.0625rem;
}

.about-content strong {
  color: var(--ink);
  font-weight: 600;
}

.about-emphasis {
  font-size: 1.125rem;
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  border-left: 3px solid var(--sky);
  padding-left: 20px;
  margin-top: 32px !important;
}

/* FAQ section ========================================================== */
.faq {
  position: relative;
  padding: clamp(80px, 12vw, 128px) 0;
  background: var(--ink);
  color: var(--paper-on-ink);
  overflow: hidden;
}

.faq .section-head h2 { color: var(--paper); }

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(103, 232, 249, 0.3);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--paper);
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sky);
  border: 1.5px solid var(--sky);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
  line-height: 1;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--sky);
  color: var(--ink);
}

.faq-answer {
  padding: 0 28px 24px;
}

.faq-answer p {
  color: var(--ink-3);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* CTA Final ============================================================ */
.cta-final {
  padding: clamp(96px, 14vw, 160px) 0;
  background: var(--paper);
  text-align: center;
}

.cta-content {
  max-width: 720px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}

.cta-content > p {
  font-size: 1.125rem;
  color: var(--ink-2);
  margin-bottom: 40px;
}

.cta-phone {
  margin-top: 32px !important;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Footer =============================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper-on-ink);
  padding: 80px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

.logo-img-light {
  opacity: 0.9;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--paper-on-ink);
  font-size: 0.9375rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--sky); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Scroll reveal animation ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive =========================================================== */
@media (max-width: 1024px) {
  .problem-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header-inner { height: 64px; }
  .logo-img { height: 48px; }
  .hero-mark { display: none; }

  .problem-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .service-card {
    padding: 28px 24px;
  }

  .process-step {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }

  .process-num {
    font-size: 1.25rem;
  }

  .section-head { margin-bottom: 48px; }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .about-lead {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .display { font-size: 2.25rem; }
}
