/* ============================================================
   a-via — Site oficial
   Identidade visual:
   - Cores: Ocean Blue #00A6E7 | Forest #51710A | Lime #C5D200 | Carbon #424242
   - Variações: Primary Dark #008DC4 | Secondary Dark #456009
   - Info: #5A7BAD
   - Tipografia: Satoshi (headings) + DM Sans (corpo)
   ============================================================ */

:root {
  /* Paleta */
  --ocean-blue: #00A6E7;
  --primary-dark: #008DC4;
  --forest: #51710A;
  --secondary-dark: #456009;
  --lime: #C5D200;
  --carbon: #424242;
  --info: #5A7BAD;

  /* Neutros */
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-muted: #eef2f5;
  --text: #1f1f1f;
  --text-soft: #5b6470;
  --border: #e3e8ee;

  /* Tipografia */
  --font-display: 'Satoshi', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Escala (rem) - conforme identidade visual */
  --h1: 3rem;       /* 48px */
  --h2: 2.25rem;    /* 36px */
  --h3: 1.75rem;    /* 28px */
  --h4: 1.5rem;     /* 24px */
  --body-lg: 1.125rem; /* 18px */
  --body: 1rem;        /* 16px */
  --body-sm: 0.875rem; /* 14px */

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(20, 30, 50, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 30, 50, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 30, 50, 0.16);

  --container: 1140px;
}

/* ============ Reset leve ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--carbon);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }

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

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.4rem;
  color: var(--carbon);
}
.logo-mark { width: 36px; height: 36px; object-fit: contain; }
.logo-text { letter-spacing: -0.02em; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--carbon); font-weight: 500; font-size: var(--body-sm);
}
.main-nav a:hover { color: var(--ocean-blue); }
.main-nav .nav-cta {
  background: var(--carbon); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--ocean-blue); color: #fff; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--body);
  border: none; cursor: pointer; transition: all .2s ease;
  text-decoration: none;
}
.btn-primary { background: var(--ocean-blue); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--carbon);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--carbon); color: var(--carbon); }
.btn-large { padding: 18px 32px; font-size: var(--body-lg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 100px;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(0,166,231,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(197,210,0,0.12), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ocean-blue);
  padding: 6px 12px;
  background: rgba(0, 166, 231, 0.08);
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow-lime { color: var(--secondary-dark); background: rgba(197, 210, 0, 0.18); }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--ocean-blue); }
.hero .lead {
  font-size: var(--body-lg); color: var(--text-soft); max-width: 520px;
  margin: 0 0 12px;
}
.hero .tagline {
  font-family: var(--font-display); font-weight: 700;
  color: var(--secondary-dark); font-size: 1.1rem;
  margin: 0 0 32px;
}
.hero .tagline em { color: var(--forest); font-style: normal; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Hero art — mock fiel à tela de edição do app ============ */
.hero-art { display: flex; justify-content: center; }

.phone-mock {
  width: 300px; height: 620px;
  background: #000;
  border-radius: 44px;
  padding: 8px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #1a1a1a;
  position: relative;
  display: flex; flex-direction: column;
}
/* Dynamic Island */
.phone-mock::before {
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #000; border-radius: 14px;
  z-index: 4;
}

/* Status bar */
.phone-statusbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 6px;
  color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  z-index: 3;
}
.phone-statusbar .sb-time { width: 40px; }
.phone-statusbar .sb-notch { width: 110px; }
.phone-statusbar .sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-battery {
  position: relative;
  width: 24px; height: 11px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 3px;
  display: inline-block;
}
.sb-battery::after {
  content: ''; position: absolute; right: -3px; top: 3px;
  width: 2px; height: 5px; background: rgba(255,255,255,0.7);
  border-radius: 0 1px 1px 0;
}
.sb-battery i {
  position: absolute; inset: 1px;
  background: #FFD400; border-radius: 1px;
  width: 80%; display: block;
}

/* Phone screen */
.phone-screen {
  flex: 1;
  border-radius: 0 0 36px 36px;
  background: #000;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}

/* Toolbar superior do app */
.app-toolbar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  z-index: 2;
}
.tool-right { display: flex; gap: 10px; }
.tool-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(40, 40, 40, 0.85);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.tool-btn:hover { background: rgba(60, 60, 60, 0.9); }
.tool-btn.tool-check { background: var(--ocean-blue); }
.tool-btn.tool-check:hover { background: var(--primary-dark); }

/* Canvas (foto + métricas) */
.app-canvas {
  flex: 1;
  padding: 0 14px;
  position: relative;
}
.canvas-photo {
  position: relative;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #b8c8b6, #5d6f5b);
}
.canvas-photo .scene {
  width: 100%; height: 100%;
  display: block;
}
.canvas-real {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay com métricas (canto esquerdo) */
.canvas-metrics {
  position: absolute;
  top: 24px; left: 18px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.canvas-metrics .cm-block { margin-bottom: 14px; line-height: 1.1; }
.canvas-metrics .cm-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0;
}
.canvas-metrics .cm-value {
  display: block;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800;
  margin-top: 2px;
}
.cm-sticker {
  width: 32px; height: 32px; display: block;
  margin-top: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Bottom bar: tabs + acessórios */
.app-bottom {
  background: #000;
  padding: 10px 12px 22px;
  z-index: 2;
}
.app-tabs {
  display: flex; gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}
.app-tab {
  border: none;
  background: #3a3a3a;
  color: #cfcfcf;
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
}
.app-tab.is-active {
  background: #5b3a17;
  color: #FFB627;
}

.app-acessorios {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.acc-item {
  background: #555;
  border-radius: 6px;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Sections genéricas ============ */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--text-soft); font-size: var(--body-lg); margin: 0; }

/* ============ Features ============ */
.features { padding: 100px 0; background: var(--bg-soft); }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,166,231,0.10); color: var(--ocean-blue);
  margin-bottom: 20px;
}
.feature-card:nth-child(2) .feature-icon { background: rgba(197,210,0,0.20); color: var(--secondary-dark); }
.feature-card:nth-child(3) .feature-icon { background: rgba(81,113,10,0.12); color: var(--forest); }
.feature-card:nth-child(4) .feature-icon { background: rgba(0,166,231,0.10); color: var(--ocean-blue); }
.feature-card:nth-child(5) .feature-icon { background: rgba(197,210,0,0.20); color: var(--secondary-dark); }
.feature-card:nth-child(6) .feature-icon { background: rgba(90,123,173,0.12); color: var(--info); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); margin: 0; font-size: var(--body); }

/* ============ Equipe ============ */
.team { padding: 100px 0; background: #fff; }
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 960px; margin: 0 auto;
}
.team-card {
  text-align: center;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: all .25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-photo {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-blue), var(--primary-dark));
  position: relative;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback de iniciais quando não há foto */
.team-photo.photo-fallback {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--ocean-blue), var(--secondary-dark));
  position: relative;
}
.team-photo.photo-fallback::before {
  content: attr(data-initials);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  z-index: 2;
}
.team-photo.photo-fallback::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/img/avia-sticker.svg');
  background-repeat: no-repeat;
  background-position: bottom -8px right -10px;
  background-size: 60px 60px;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}
/* Variações por card para o avatar não ficar idêntico */
.team-card:nth-child(1) .team-photo.photo-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--forest), var(--secondary-dark));
}
.team-card:nth-child(2) .team-photo.photo-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--ocean-blue), var(--primary-dark));
}
.team-card:nth-child(3) .team-photo.photo-fallback {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, var(--carbon), #1f1f1f);
}

.team-card h3 { font-size: 1.4rem; margin-bottom: 4px; }
.team-role {
  display: inline-block;
  font-size: var(--body-sm);
  color: var(--ocean-blue); font-weight: 600;
  margin-bottom: 14px;
}
.team-card:nth-child(1) .team-role { color: var(--secondary-dark); }
.team-card p { color: var(--text-soft); font-size: var(--body); margin: 0; }

/* ============ CTA final ============ */
.cta-final {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--ocean-blue), var(--primary-dark));
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(400px 400px at 20% 80%, rgba(197,210,0,0.22), transparent 60%),
    radial-gradient(500px 500px at 80% 0%, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-final h2 { color: #fff; margin-bottom: 12px; }
.cta-final p { color: rgba(255,255,255,0.85); font-size: var(--body-lg); margin: 0 0 32px; }
.cta-final .btn-primary {
  background: #fff; color: var(--ocean-blue);
}
.cta-final .btn-primary:hover { background: var(--lime); color: var(--secondary-dark); }

/* ============ Footer ============ */
.site-footer {
  background: var(--carbon);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 32px;
  font-size: var(--body-sm);
}
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 44px; height: 44px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand p { margin: 2px 0 0; color: rgba(255,255,255,0.6); font-size: var(--body-sm); }

.footer-nav {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px;
}
.footer-nav a { color: rgba(255,255,255,0.78); font-weight: 500; }
.footer-nav a:hover { color: var(--lime); }

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
}

/* ============ Página legal ============ */
.page-legal { background: var(--bg-soft); }
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: 2.5rem; margin: 8px 0 6px; }
.legal h2 {
  font-size: 1.5rem; margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--carbon); }
.legal p { color: var(--text); margin: 0 0 14px; }
.legal ul { padding-left: 0; margin: 0 0 14px; }
.legal ul li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  color: var(--text);
}
.legal ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
}
.legal-updated {
  display: inline-block;
  background: #fff;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: var(--body-sm);
  margin-bottom: 32px;
}
.legal .callout {
  background: rgba(0,166,231,0.08);
  border-left: 4px solid var(--ocean-blue);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 8px 0 18px;
}
.contact-list li { padding-left: 0 !important; }
.contact-list li::before { display: none !important; }
.legal-end { text-align: center; margin-top: 48px; color: var(--text-soft); font-size: 1.1rem; }

/* ============ Responsivo ============ */
@media (max-width: 960px) {
  .hero { padding: 60px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { text-align: center; max-width: 600px; margin: 0 auto; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --h1: 2.25rem; --h2: 1.75rem; --h3: 1.4rem; }
  .main-nav { gap: 14px; }
  .main-nav a:not(.nav-cta) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone-mock { width: 260px; height: 540px; }
  .canvas-metrics .cm-value { font-size: 16px; }
  .features, .team, .cta-final { padding: 70px 0; }
  .legal h1 { font-size: 1.9rem; }
}
