:root {
  --bg: #12081f;
  --bg-alt: #180c28;
  --surface: #1e1233;
  --surface-2: #251640;
  --border: #3a2358;
  --text: #fdfbff;
  --text-muted: #c9bbdd;
  --text-dim: #9a87bd;
  --purple: #a855f7;
  --pink: #ec4899;
  --yellow: #facc15;
  --gradient: linear-gradient(90deg, var(--purple), var(--pink));
  --gradient-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.1));
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 20px 60px -20px rgba(168, 85, 247, 0.35);
  --font-title: "Sora", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--yellow);
  color: #12081f;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

/* Escondido só quando o JS confirmou que está rodando (classe "js" no
   <html>, adicionada por um script inline no <head>). Sem JS, ou se o
   script falhar, o conteúdo permanece visível por padrão. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

a {
  color: inherit;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 8, 31, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #12081f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.6);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 480px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(168, 85, 247, 0.35), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, rgba(236, 72, 153, 0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--yellow);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #12081f;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(236, 72, 153, 0.55);
}

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

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--text);
}

.hero-stats {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  margin-top: 36px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-stats > div {
  padding: 18px 28px;
  border-right: 1px solid var(--border);
}

.hero-stats > div:last-child {
  border-right: none;
}

.hero-stats .stat-value {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
}

.hero-stats .stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Section shell ---------- */

section {
  padding: 56px 0;
}

section#projetos {
  padding-top: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  color: var(--pink);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 36px);
  letter-spacing: -0.01em;
}

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

/* ---------- Projects grid ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #12081f;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--purple);
}

.project-mock {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-mock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-mock .monogram {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--gradient);
  color: #12081f;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-mock .mock-browser-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(18, 8, 31, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}

.project-mock .mock-browser-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(253, 251, 255, 0.25);
}

.project-status {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(18, 8, 31, 0.7);
  backdrop-filter: blur(4px);
}

.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-status.live {
  color: #7cf5c4;
}
.project-status.live::before {
  background: #7cf5c4;
}

.project-status.ready {
  color: var(--yellow);
}
.project-status.ready::before {
  background: var(--yellow);
}

.project-status.progress {
  color: var(--text-dim);
}
.project-status.progress::before {
  background: var(--text-dim);
}

.project-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.project-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
}

.project-body h3 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 19px;
}

.project-tagline {
  margin: -6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.project-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--yellow);
}

.project-link.disabled {
  color: var(--text-dim);
  cursor: default;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- About / Stack ---------- */

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

.about-grid p {
  color: var(--text-muted);
  font-size: 16px;
}

.stack-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-family: var(--font-title);
  font-size: 30px;
  margin: 0 0 12px;
}

.contact-info p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.contact-channel .icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  flex-shrink: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
}

.form-status {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
}

.form-status.success {
  color: #7cf5c4;
}

.form-status.error {
  color: #f87171;
}

/* ---------- Footer ---------- */

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

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Responsive ---------- */

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

  .stack-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
  }

  .site-header.open .nav-cta {
    display: inline-flex;
    margin: 0 24px 20px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .hero-stats {
    display: flex;
    width: 100%;
  }

  .hero-stats > div {
    flex: 1 1 auto;
    padding: 14px 16px;
  }
}
