/* ===== Mitrill Tecnologia e Serviços — estilos base ===== */
/* Paleta e tipografia inspiradas na identidade visual da Rocketseat */

:root {
  --bg: #0b0b11;
  --bg-alt: #101018;
  --bg-card: #15151f;
  --border: #26262f;
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --accent: #4fd1c5;
  --accent-hover: #6be0d5;
  --accent-dim: #2f8f86;
  --accent-soft: rgba(79, 209, 197, 0.14);
  --accent-contrast: #06110f;
  --danger: #ef4444;
  --radius: 10px;
  --max-width: 1120px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Grotesk', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ===== Header / Nav ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 17, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-contrast);
  font-size: 0.95rem;
}

.brand .sub {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-contrast) !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-cta { margin-top: 8px; width: 100%; justify-content: center; }
}

/* ===== Sections / generic ===== */

section { padding: 88px 0; }

.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  padding: 7px 14px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-muted); margin: 0 0 16px; }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-soft);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.07); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Hero ===== */

.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(900px circle at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.hero-panel .line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.hero-panel .line:last-child { border-bottom: none; }
.hero-panel .dot { color: var(--accent); }
.hero-panel .status { margin-left: auto; color: var(--accent); font-weight: 500; }

/* ===== Cards / services grid ===== */

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

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

.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.card:hover {
  border-color: rgba(153, 86, 246, 0.5);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
}

.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}

.badge {
  display: inline-block;
  font-size: 0.66rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-left: 10px;
  vertical-align: middle;
}

.badge-live { background: var(--accent-soft); color: var(--accent-hover); border: 1px solid rgba(153, 86, 246, 0.4); }
.badge-soon { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border-soft); }

/* ===== Service detail blocks ===== */

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-soft);
}

.service-block:last-child { border-bottom: none; }

@media (max-width: 860px) {
  .service-block { grid-template-columns: 1fr; gap: 20px; }
}

.service-block .num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.feature-list { list-style: none; margin: 20px 0 0; padding: 0; }
.feature-list li {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border-soft);
}
.feature-list li:first-child { border-top: none; }
.feature-list .check { color: var(--accent); flex-shrink: 0; }

/* ===== Stats ===== */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat .num { font-family: var(--font-mono); font-size: 2rem; color: var(--accent); font-weight: 600; }
.stat .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ===== CTA banner ===== */

.cta-banner {
  background: linear-gradient(135deg, rgba(153, 86, 246, 0.1), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}

@media (max-width: 600px) { .cta-banner { padding: 32px 20px; } }

/* ===== Contact page ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px 0 28px;
  background: var(--bg-alt);
}

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

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--accent-hover); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== About page ===== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }
