/* AM Consultoria — React Bits inspired (dark + laser) */

:root {
  --bg: #05060a;
  --bg2: #0a0c12;
  --bg3: #10131c;
  --card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: #8b93a7;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --glow: rgba(59, 130, 246, 0.45);
  --radius: 16px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

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

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 6, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
}

.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 24px var(--glow);
}

.brand-name { font-size: .95rem; letter-spacing: -.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  padding: .45rem .85rem;
  border-radius: 999px;
  transition: color .2s, background .2s;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--blue), var(--violet)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  margin-left: .35rem;
  box-shadow: 0 8px 24px var(--glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 10px 30px var(--glow);
}

.btn-primary:hover { box-shadow: 0 14px 36px rgba(59, 130, 246, 0.55); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--border2);
  color: var(--text);
}

.btn-ghost:hover { border-color: rgba(59, 130, 246, 0.5); background: rgba(59, 130, 246, 0.08); }

.btn-full { width: 100%; }

/* HERO + LASER */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.laser-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(5,6,10,0.95), transparent 60%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.03);
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin-bottom: 1.25rem;
}

.text-glow {
  background: linear-gradient(90deg, #fff 0%, var(--cyan) 45%, var(--blue) 75%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}

/* MARQUEE */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg2);
  overflow: hidden;
  padding: .9rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-dim { background: var(--bg2); }
.section-hub {
  background:
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(59,130,246,0.08), transparent),
    var(--bg);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}

.section-head h2,
.hub-grid h2,
.about h2,
.contact-grid h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}

.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: #c5cbd8; margin-bottom: 1rem; line-height: 1.65; }

/* CARDS */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35), 0 0 30px rgba(59,130,246,0.08);
}

.card-icon {
  font-size: .85rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 1rem;
  letter-spacing: .05em;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.015em;
}

.card p {
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* HUB */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.hub-grid .muted { margin-bottom: 1.5rem; max-width: 32rem; }

.hub-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.mod {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  transition: border-color .2s;
}

.mod:hover { border-color: rgba(34, 211, 238, 0.3); }

.mod strong { font-size: .95rem; }
.mod span { font-size: .85rem; color: var(--muted); }
.mod-stack { grid-column: 1 / -1; }

/* FILTERS + WORK */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.75rem;
}

.filter {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

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

.filter.on {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  color: #fff;
}

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

.work {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s;
}

.work:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}

.work.hide { display: none; }

.tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .75rem;
}

.work h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .45rem;
  letter-spacing: -.02em;
}

.work p {
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
}

.work > a {
  margin-top: .85rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
}

.work > a:hover { color: var(--cyan); }

/* STEPS */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.step span {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: .75rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.step p {
  font-size: .88rem;
  color: var(--muted);
}

/* ABOUT */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
}

.about-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 40px var(--glow);
}

.role {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about .muted { max-width: 40rem; }
.about .muted strong { color: var(--text); }

.about-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.about-links a {
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
}

.about-links a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* CONTACT */
.section-contact {
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139,92,246,0.1), transparent),
    var(--bg2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1.5rem;
}

.contact-list a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  transition: border-color .2s;
}

.contact-list a:hover { border-color: rgba(59,130,246,0.4); }
.contact-list strong { font-size: .95rem; }
.contact-list span { font-size: .85rem; color: var(--muted); }

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.form input,
.form select,
.form textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: .8rem 1rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form textarea { resize: vertical; min-height: 100px; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: .88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

.footer strong { color: var(--text); }

/* REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .hub-grid, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: .25s ease;
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: .85rem 1rem; }
  .nav-cta { margin-left: 0 !important; text-align: center; }

  .cards-4,
  .work-grid,
  .steps,
  .hub-modules {
    grid-template-columns: 1fr;
  }

  .about { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .hero-stats { gap: 1.25rem; }
}

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