/* ===========================================================
   Willian Soares Dev — tema escuro tech/geek
   =========================================================== */

:root {
  --bg: #0a0d14;
  --bg-alt: #0d121b;
  --surface: #121826;
  --surface-2: #171f30;
  --border: #232d40;
  --text: #e7ecf5;
  --text-dim: #9aa7bd;
  --text-faint: #6b7690;

  --accent: #5b8cff;
  --accent-2: #7c5cff;
  --accent-3: #35e0c8;
  --accent-grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);

  --font-sans: 'Space Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 0 1px rgba(91,140,255,.15), 0 20px 60px -20px rgba(91,140,255,.35);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 40vh at 85% -5%, rgba(124,92,255,.16), transparent 60%),
    radial-gradient(50vw 40vh at 0% 15%, rgba(91,140,255,.12), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--accent-3);
  margin-bottom: 12px;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.2; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { color: var(--text-dim); }

/* ===== buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-grad);
  color: #08101f;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10,13,20,.7);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.logo-icon { width: 30px; height: 30px; border-radius: 8px; }
.logo-dot { color: var(--text-faint); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: .95rem;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--text); }
.nav-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ===== hero ===== */
.hero {
  position: relative;
  padding: 168px 0 110px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 140%;
  background-image:
    linear-gradient(rgba(91,140,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,140,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 55% at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 20%, black, transparent 75%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-sub { font-size: 1.15rem; margin: 22px 0 30px; max-width: 52ch; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-faint);
}
.hero-stack li {
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-media { position: relative; }
.hero-media-glow {
  position: absolute;
  inset: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(124,92,255,.35), transparent 65%);
  filter: blur(10px);
  z-index: -1;
}
.hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 4px;
  animation: scrollcue 1.6s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ===== sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-lead { font-size: 1.15rem; color: var(--text); }

.section-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.section-grid.reverse { grid-template-columns: .85fr 1.15fr; }

.section-media { position: relative; }
.frame-tag {
  position: absolute;
  top: -14px; left: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent-3);
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.section-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 1/1;
  object-fit: cover;
}

.section-text p { margin-bottom: 16px; }
.section-text strong { color: var(--text); }

.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  background: rgba(91,140,255,.1);
  border: 1px solid rgba(91,140,255,.25);
  padding: 7px 14px;
  border-radius: 999px;
}

/* ===== cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(91,140,255,.4); }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.card p { font-size: .95rem; }

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(91,140,255,.12), rgba(124,92,255,.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
}
.cta-banner p { color: var(--text); font-size: 1.15rem; font-weight: 500; max-width: 46ch; margin: 0; }

/* ===== contato ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--surface-2); }
.contact-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-3);
  margin-bottom: 14px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-icon .icon-wa { width: 20px; height: 20px; }
.contact-card p { font-size: .9rem; margin-bottom: 10px; word-break: break-word; }
.contact-link { font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }

.insta-cta {
  text-align: center;
  font-size: 1rem;
  color: var(--text-dim);
}
.insta-cta a { color: var(--accent-3); font-weight: 600; }
.insta-cta a:hover { text-decoration: underline; }

/* ===== footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: .85rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { font-size: .85rem; color: var(--text-dim); }
.footer-social a:hover { color: var(--accent); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto; }
  .section-grid, .section-grid.reverse { grid-template-columns: 1fr; }
  .section-media { max-width: 380px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10,13,20,.97);
    border-bottom: 1px solid var(--border);
    padding: 18px 24px 26px;
    gap: 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { justify-content: center; margin-left: 0; margin-top: 4px; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 130px 0 80px; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 30px 24px; }
  .cta-banner p { max-width: none; }
  .section { padding: 76px 0; }
}
