/* ===================================================================
   Mach-9 — single page, modern dark theme
   =================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-soft: #111114;
  --bg-card: #15151a;
  --bg-card-hover: #1c1c22;
  --border: #232329;
  --border-strong: #2f2f37;

  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;

  --accent: #f5c518;
  --accent-soft: rgba(245, 197, 24, 0.12);
  --accent-strong: #ffd633;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4),
    0 12px 40px -16px rgba(0, 0, 0, 0.7);

  --container: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.text-accent {
  color: var(--accent);
}

.muted {
  color: var(--text-muted);
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.brand-logo-sm {
  height: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

.nav-links a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

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

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.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);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--text-faint);
}

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  border-radius: 0;
}

.btn-link:hover {
  color: var(--accent-strong);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -10% 10% auto 10%;
  height: 480px;
  background: radial-gradient(
    closest-side,
    rgba(245, 197, 24, 0.22),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
  z-index: -2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid rgba(245, 197, 24, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.06;
  margin: 28px 0 18px;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.lede {
  max-width: 64ch;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  margin: 0 auto 36px;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 72px 0 0;
  width: 100%;
  max-width: 720px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 700;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 64ch;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ============ SERVIÇOS ============ */
.grid {
  display: grid;
  gap: 20px;
}

.services {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    rgba(245, 197, 24, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(245, 197, 24, 0.2);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.tags {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.tags li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

/* ============ SHOWCASE ============ */
.showcase {
  display: grid;
  gap: 48px;
}

.showcase-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.showcase-card img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.showcase-printer img {
  object-fit: contain;
  background: linear-gradient(180deg, #1d1d22 0%, #0e0e12 100%);
  padding: 30px;
}

.showcase-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.showcase-body p {
  color: var(--text-muted);
  margin: 0;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.specs strong {
  color: var(--text);
  font-weight: 600;
}

.specs span {
  color: var(--text-muted);
  text-align: right;
}

/* ============ PROCESSO ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.6px;
}

.steps h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ============ CTA ============ */
.cta-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: linear-gradient(
    140deg,
    rgba(245, 197, 24, 0.08),
    rgba(245, 197, 24, 0)
  );
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: var(--radius-lg);
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}

.cta-card p {
  color: var(--text-muted);
  margin: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ============ FOOTER ============ */
.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner .brand-mark {
  margin-right: 8px;
  vertical-align: middle;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    background: rgba(10, 10, 12, 0.96);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-cta {
    margin: 12px 0 0;
    text-align: center;
    justify-content: center;
  }

  .hero {
    padding: 88px 0 72px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .section {
    padding: 72px 0;
  }

  .showcase-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .showcase-printer {
    direction: ltr;
  }

  .showcase-printer img {
    order: -1;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    width: calc(100% - 10px);
    margin-left: 5px;
    margin-right: 5px;
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .step-num {
    font-size: 28px;
    line-height: 1;
    letter-spacing: 1px;
  }

  .steps li {
    gap: 12px;
    padding: 28px 24px;
  }

  .company-sep {
    display: none;
  }

  .company-doc {
    display: block;
    margin-top: 2px;
  }
}

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