@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600;6..72,700&display=swap");

:root {
  --bg: #0b0e14;
  --bg-elevated: #131821;
  --bg-soft: #171c26;
  --text: #f3f1ea;
  --text-soft: #a8aeb8;
  --brand: #c9a66b;
  --brand-strong: #e0c48a;
  --brand-dim: rgba(201, 166, 107, 0.14);
  --ink: #1a1408;
  --line: rgba(243, 241, 234, 0.1);
  --card: #131821;
  --ok: #8fbf9a;
  --danger: #d97a7a;
  --whatsapp: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
  --header-h: 76px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 8% -10%, rgba(201, 166, 107, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(90, 110, 150, 0.08), transparent 50%);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 4.1rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--brand);
}

.section {
  padding: 5.5rem 0;
}

.section-lead {
  max-width: 38rem;
  margin-bottom: 2.2rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--ink);
}

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

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #052e16;
}

.btn-whatsapp:hover {
  background: #4ade80;
  color: #052e16;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.header.is-scrolled {
  background: rgba(11, 14, 20, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle .nav-toggle-bar,
.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}

.nav-toggle .nav-toggle-bar::before,
.nav-toggle .nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle .nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle .nav-toggle-bar::after {
  top: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav ul {
  display: flex;
  gap: 1.35rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.header-cta {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero .subtitle {
  font-size: 1.12rem;
  max-width: 36rem;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.hero-actions.end {
  margin-bottom: 0;
}

.app-alias {
  margin: 0;
  color: var(--text-soft);
}

.brand-blurb {
  margin-top: 0.8rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 24, 33, 0.7);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.chip strong {
  color: var(--text);
  font-weight: 700;
}

.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(201, 166, 107, 0.08), rgba(19, 24, 33, 0.92));
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #fff;
}

.hero-float {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: rgba(11, 14, 20, 0.88);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.hero-float img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-float p {
  margin: 0;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-float span {
  display: block;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.72rem;
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.bento-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.bento-follow {
  margin-top: 1rem;
}

.section-tight {
  padding-top: 0;
}

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

.card:hover {
  border-color: rgba(201, 166, 107, 0.4);
  box-shadow: 0 0 0 1px rgba(201, 166, 107, 0.08), 0 18px 40px rgba(0, 0, 0, 0.25);
}

.card-lg {
  padding: 1.8rem;
  min-height: 100%;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-dim);
  color: var(--brand);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.card li + li {
  margin-top: 0.35rem;
}

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

.process-step {
  position: relative;
  padding: 1.4rem 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.process-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--brand);
  margin-bottom: 0.55rem;
  letter-spacing: -0.05em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.app-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card .hero-actions {
  margin-top: auto;
}

.app-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
}

.app-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.app-head img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.4rem 0 0.8rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-dim);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.app-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 1.3rem;
  padding: 0;
  color: var(--text-soft);
}

.app-highlights li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.app-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--brand);
}

.app-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.2rem 0 1.4rem;
}

.app-shots img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f4f4f4;
}

.app-shots img:nth-child(3) {
  display: none;
}

.portfolio-note {
  margin-top: -0.6rem;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.stat {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brand-strong);
  letter-spacing: -0.04em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #10151e;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-dim);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-status {
  min-height: 1.3rem;
  font-size: 0.9rem;
  margin: 0;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-pending {
  color: var(--text-soft);
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-aside p:last-child {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

.footer ul {
  list-style: none;
}

.footer li + li {
  margin-top: 0.4rem;
}

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

.footer a:hover {
  color: var(--brand-strong);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer-copy p {
  margin: 0;
}

.legal {
  padding: 4rem 0 5rem;
}

.legal-wrap {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.legal h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
}

.legal p,
.legal li {
  color: var(--text-soft);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 960px) {
  .hero-grid,
  .bento,
  .bento-wide,
  .process-grid,
  .portfolio-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 28rem;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(11, 14, 20, 0.97);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .main-nav.is-open {
    transform: none;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.85rem 0.2rem;
    font-size: 1.15rem;
    color: var(--text);
  }

  .header-cta {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .section {
    padding: 3.8rem 0;
  }

  .app-shots {
    grid-template-columns: 1fr;
  }
}

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

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

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