/* ==========================================================================
   Marcos Túlio — Landing Page
   Design system: dark & confortável, acentos cyan/indigo, Raleway + JetBrains Mono
   ========================================================================== */

:root {
  --bg: #070b14;
  --bg-soft: #0b1220;
  --surface: rgba(148, 163, 184, 0.05);
  --surface-hover: rgba(148, 163, 184, 0.09);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);

  --text: #c9d4e3;
  --muted: #8b98ac;
  --heading: #f2f6fb;

  --accent: #22d3ee;
  --accent-2: #6366f1;
  --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --max: 1120px;

  --font-body: "Raleway", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ============================== Base ============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

strong { color: var(--heading); font-weight: 700; }

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

::selection { background: rgba(34, 211, 238, 0.25); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container--narrow { max-width: 820px; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }

/* ============================== Botões ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }

.btn-primary {
  background: var(--grad);
  color: #04101a;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(99, 102, 241, 0.55);
}

.btn-ghost {
  background: var(--surface);
  color: var(--heading);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

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

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(7, 11, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.logo-dot { color: var(--accent); }

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

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--heading); }
.nav-link:hover::after { width: 100%; }

/* Hamburguer */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 70%);
}
.hero-glow--2 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  right: -140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16), transparent 70%);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-title {
  font-size: clamp(2.05rem, 5.4vw, 3.55rem);
  max-width: 900px;
  font-weight: 800;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 640px;
  color: var(--muted);
}

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

.hero-hint {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ============================== Seções ============================== */

.section { padding: clamp(72px, 10vw, 116px) 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.9;
}

.section-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.section-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}

/* ============================== Sobre ============================== */

.sobre-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.sobre-foto img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.sobre-texto p + p { margin-top: 16px; }
.sobre-texto p { color: var(--text); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.tags li {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
}

/* ============================== Grids e Cards ============================== */

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow);
}

.card h3 { font-size: 1.2rem; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card-plain p { margin: 0; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ic);
  background: color-mix(in srgb, var(--ic) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 28%, transparent);
}
.card-icon--small { width: 46px; height: 46px; border-radius: 12px; }
.card-icon .icon { width: 24px; height: 24px; }
.card-icon--small .icon { width: 21px; height: 21px; }

.card-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
}
.card-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--accent);
  transition: gap 0.25s ease, color 0.25s ease;
}
.card-link:hover { gap: 12px; color: #7de8fa; }

/* ============================== Tecnologias ============================== */

.tech-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pill {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--heading);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  cursor: default;
}
.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* ============================== Processo ============================== */

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

.step {
  position: relative;
  text-align: left;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  opacity: 0.6;
}

.step h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ============================== Portfólio ============================== */

.pf-emoji {
  font-size: 2rem;
  line-height: 1;
}

.card-portfolio h3 { font-size: 1.05rem; margin: 14px 0 10px; }
.card-portfolio p { margin-bottom: 18px; }

/* ============================== Depoimentos ============================== */

.card-quote {
  position: relative;
  padding: 34px 30px 28px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  height: 32px;
}

.card-quote blockquote {
  font-size: 15.5px;
  color: var(--text);
  font-style: italic;
  margin: 8px 0 22px;
}

.card-quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.card-quote figcaption strong { font-size: 15px; }
.card-quote figcaption span { font-size: 13.5px; color: var(--muted); }

/* ============================== FAQ ============================== */

.faq { display: grid; gap: 14px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-hover); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.plus {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  background: var(--accent);
  border-radius: 2px;
}
.plus::before { width: 10px; height: 2px; }
.plus::after { width: 2px; height: 10px; }

.faq-item[open] .plus { transform: rotate(45deg); background: var(--accent); }
.faq-item[open] .plus::before,
.faq-item[open] .plus::after { background: #04101a; }

.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ============================== Contato / CTA ============================== */

.cta { padding-bottom: clamp(72px, 10vw, 116px); }

.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(48px, 7vw, 80px) 28px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(34, 211, 238, 0.06), rgba(99, 102, 241, 0.08)),
    var(--bg-soft);
}

.cta-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  translate: -50% 0;
  width: 500px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
  pointer-events: none;
}

.cta-title { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 640px; }
.cta-sub { max-width: 560px; color: var(--muted); font-size: 17px; }

.cta-phone {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand { font-weight: 800; color: var(--heading); font-size: 17px; }
.footer-role { font-weight: 600; color: var(--muted); }

.social { display: flex; gap: 14px; }

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.social .icon { width: 19px; height: 19px; }

.footer-copy { font-size: 13.5px; color: var(--muted); }

/* ============================== Reveal ============================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero-inner.reveal { transition-delay: 0s; }

/* ============================== Responsivo ============================== */

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sobre-foto img { max-width: 260px; }
  .tags { justify-content: center; }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 32px 24px 40px;
    background: rgba(7, 11, 20, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .btn-lg { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .card { padding: 26px 22px; }
}

/* ============================== Acessibilidade ============================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}
