:root {
  --bg: #0b0d11;
  --bg-soft: #12151c;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f4;
  --text-soft: #9aa3b2;
  --accent: #4ade80;
  --accent-deep: #22c55e;
  --accent-dim: rgba(74, 222, 128, 0.12);
  --wa: #25d366;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% -5%, rgba(74, 222, 128, 0.09), transparent 60%),
    radial-gradient(ellipse 40% 30% at 90% 30%, rgba(56, 130, 246, 0.05), transparent 55%),
    radial-gradient(ellipse 45% 35% at 5% 75%, rgba(74, 222, 128, 0.05), transparent 55%);
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.1rem, 4vw, 3rem);
  background: rgba(11, 13, 17, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 13, 17, 0.9);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: none;
  gap: 1.35rem;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.site-header > .btn {
  display: none;
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 45;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem clamp(1.1rem, 4vw, 3rem) 1.25rem;
  background: rgba(11, 13, 17, 0.97);
  border-bottom: 1px solid var(--line);
  animation: drop 0.35s var(--ease);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a:not(.btn) {
  padding: 0.85rem 0;
  font-weight: 500;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 0.75rem;
  justify-self: start;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.7rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-lg {
  min-height: 3.2rem;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-primary {
  background: var(--accent);
  color: #08130c;
  box-shadow: 0 8px 28px rgba(74, 222, 128, 0.22);
}

.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 12px 32px rgba(74, 222, 128, 0.28);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--surface-hover);
}

/* Hero */
.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.1rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2.2s var(--ease) infinite;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  margin: 1.25rem auto 0;
  max-width: 44ch;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.metrics {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 2.75rem auto 0;
  padding: 1.25rem;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metrics li {
  display: grid;
  gap: 0.1rem;
}

.metrics strong {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.metrics span {
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 3rem);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-lead {
  margin: 0.85rem auto 0;
  max-width: 42ch;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* Project showcase */
.project-grid {
  display: grid;
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.35);
  background: var(--surface-hover);
}

.project-preview {
  position: relative;
  min-height: 11rem;
  display: grid;
  place-items: end start;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.15));
}

.project-preview--burger {
  background-image:
    linear-gradient(135deg, rgba(26, 16, 10, 0.55), rgba(90, 40, 12, 0.35)),
    url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=900&q=80");
}

.project-preview--dental {
  background-image:
    linear-gradient(135deg, rgba(8, 45, 48, 0.45), rgba(180, 210, 215, 0.2)),
    url("https://images.unsplash.com/photo-1629909615184-74f495363b67?auto=format&fit=crop&w=900&q=80");
}

.project-preview-brand {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.project-body {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem 1.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.project-body h3 {
  font-size: 1.25rem;
}

.project-body p:not(.project-tag) {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.project-link {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.project-card:hover .project-link {
  color: var(--accent);
}

@media (min-width: 680px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
  max-width: 1040px;
  margin: 0 auto;
}

.card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.35);
  background: var(--surface-hover);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--accent-dim);
  color: var(--accent);
}

.card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card-tag {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* Custom project callout */
.custom-callout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  max-width: 1040px;
  margin: 1.5rem auto 0;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(74, 222, 128, 0.08), transparent 60%),
    var(--surface);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.custom-callout:hover {
  border-color: rgba(74, 222, 128, 0.45);
  transform: translateY(-2px);
}

.custom-callout h3 {
  margin-bottom: 0.35rem;
}

.custom-callout p {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 52ch;
}

.custom-callout .btn {
  justify-self: start;
}

@media (min-width: 680px) {
  .custom-callout {
    grid-template-columns: 1fr auto;
  }

  .custom-callout .btn {
    justify-self: end;
  }
}

/* Story */
.story {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.story p {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 0.75rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.step:hover {
  transform: translateX(4px);
  border-color: rgba(74, 222, 128, 0.3);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 0.25rem;
}

.step h3 {
  margin-bottom: 0.3rem;
}

.step p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* Contact */
.contact {
  padding-bottom: clamp(4rem, 9vw, 6rem);
}

.contact-card {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.4rem);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(74, 222, 128, 0.08), transparent 60%),
    var(--bg-soft);
}

.contact-card h2 {
  margin-bottom: 0.85rem;
}

.contact-lead {
  color: var(--text-soft);
  max-width: 38ch;
  margin: 0 auto 1.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.socials a:hover {
  color: var(--text);
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-2px);
}

.socials svg {
  width: 1.05rem;
  height: 1.05rem;
}

.contact-meta {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.6rem clamp(1.1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.site-footer .brand {
  font-size: 1rem;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--wa);
  color: #08130c;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: float-in 0.7s var(--ease) 0.7s both;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 38px rgba(37, 211, 102, 0.4);
}

.wa-float svg {
  width: 1.6rem;
  height: 1.6rem;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 680px) {
  .metrics {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 820px) {
  .nav,
  .site-header > .btn {
    display: inline-flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }

  .wa-float {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}
