/* ============================================================
   SEVEN ECOTECH — Design System
   Paleta: navy profundo + azul (gradiente do "7") + dourado (ECO TECH)
   Tipografia: Space Grotesk (display) + Inter (corpo)
   ============================================================ */

:root {
  --navy-950: #080d1f;
  --navy-900: #0a1128;
  --navy-800: #0f1b3a;
  --navy-700: #152447;
  --navy-600: #1c2f57;
  --blue-600: #2451d6;
  --blue-500: #3868e8;
  --blue-400: #6f92f0;
  --gold-500: #c9a13b;
  --gold-400: #ddba5c;
  --gold-300: #ecd48f;
  --white: #f6f7fb;
  --ink-muted: #a7b1cc;
  --ink-faint: #6f7996;
  --line-gold: rgba(201, 161, 59, 0.22);
  --line-blue: rgba(111, 146, 240, 0.22);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--white);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 13, 31, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-gold);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}

.brand .fantasy span { color: var(--gold-400); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  font-size: 0.94rem;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }
  .site-header.nav-open nav.main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--navy-900);
    padding: 20px 28px 28px;
    border-bottom: 1px solid var(--line-gold);
    gap: 18px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
  color: var(--white);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-400), var(--blue-500)); }

.btn-ghost {
  border-color: var(--line-gold);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--gold-400); color: var(--gold-300); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  font-weight: 600;
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold-300), var(--gold-400)); }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-gold);
}

.hero-circuit {
  position: absolute;
  top: -10%; right: -8%;
  width: 620px; height: 620px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner { max-width: 680px; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold-400);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--white);
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.stats-strip {
  border-bottom: 1px solid var(--line-gold);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.1rem;
  color: var(--gold-400);
}
.stat .label { color: var(--ink-faint); font-size: 0.9rem; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head .kicker { color: var(--gold-400); font-size: 0.9rem; margin-bottom: 10px; display: block; }

.section-alt { background: var(--navy-800); border-top: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold); }

/* ---------- Product / ecosystem cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }

.product-card {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg) var(--radius-sm);
  padding: 32px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  transition: border-color 0.25s ease;
}
.product-card:hover { border-color: var(--gold-400); }
.product-card .tag { color: var(--blue-400); font-size: 0.82rem; margin-bottom: 10px; display: block; }
.product-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.product-flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}
.product-flow strong { color: var(--ink-muted); font-weight: 500; }
.product-card a.link { color: var(--gold-400); font-size: 0.9rem; margin-top: 10px; display: inline-block; }

/* ---------- Solutions grid (3-up, varied radius) ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .solutions-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .solutions-grid { grid-template-columns: 1fr; } }

.solution-item {
  border-top: 2px solid var(--gold-500);
  padding: 22px 0 0;
}
.solution-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.solution-item p { font-size: 0.94rem; }

/* ---------- Sequence (consortium flow / process) ---------- */
.flow-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.flow-step {
  flex: 1 1 160px;
  padding: 22px 18px;
  border-right: 1px solid var(--line-blue);
  position: relative;
}
.flow-step:last-child { border-right: none; }
.flow-step .n { color: var(--blue-400); font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; }
.flow-step h5 { font-size: 0.95rem; margin: 6px 0 4px; }
.flow-step p { font-size: 0.82rem; margin: 0; }

/* ---------- Cases ---------- */
.case-card {
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 30px;
  margin-bottom: 20px;
}
.case-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 18px;
}
@media (max-width: 760px) { .case-grid4 { grid-template-columns: 1fr 1fr; } }
.case-grid4 .k { font-size: 0.78rem; color: var(--gold-400); margin-bottom: 4px; display: block; }
.case-grid4 p { font-size: 0.9rem; margin: 0; }

/* ---------- Differentiators list ---------- */
.diff-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
@media (max-width: 700px) { .diff-list { grid-template-columns: 1fr; } }
.diff-list li { list-style: none; padding-left: 22px; position: relative; color: var(--ink-muted); margin-bottom: 8px; }
.diff-list li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--gold-400); border-radius: 2px; }

/* ---------- Final CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line-gold);
  padding: 90px 0;
  text-align: left;
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 520px; margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line-gold);
  padding: 56px 0 32px;
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 14px; font-weight: 500; }
.footer-grid a, .footer-grid p { display: block; font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line-gold); padding-top: 22px; font-size: 0.82rem; color: var(--ink-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 640px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid label { display: block; font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 6px; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  background: var(--navy-800);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--blue-400);
  outline-offset: 1px;
}
.form-full { grid-column: 1 / -1; }

/* ---------- Page header (interior pages) ---------- */
.page-header { padding: 70px 0 50px; border-bottom: 1px solid var(--line-gold); }
.page-header h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); }
.page-header .lede { font-size: 1.05rem; max-width: 58ch; }

/* ---------- Modal (CTA funnel) ---------- */
.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(6, 9, 20, 0.72);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--navy-800);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-md);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  max-height: 88vh;
  overflow-y: auto;
}
.modal-box h3 { margin-bottom: 6px; }
.modal-box .close-modal { float: right; background: none; border: none; color: var(--ink-muted); font-size: 1.4rem; cursor: pointer; }
.option-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.option-pill {
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  background: transparent;
  color: var(--white);
}
.option-pill.selected { border-color: var(--gold-400); background: rgba(201,161,59,0.12); color: var(--gold-300); }
.modal-box .btn { width: 100%; justify-content: center; margin-top: 8px; }
