:root {
  --teal: #14635d;
  --teal-dark: #173a32;
  --teal-deep: #0b2b25;
  --amber: #f7a531;
  --gold: #ffd75e;
  --ink: #17211f;
  --paper: #edf1ee;
  --card: #ffffff;
  --muted: #5d6d67;
  --line: #d8e0dc;
}

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

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

header {
  background: linear-gradient(180deg, var(--teal-dark), var(--teal-deep));
  color: #fff;
  padding: 20px 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { height: 44px; width: 44px; }
.brand strong { font-size: 1.2rem; letter-spacing: 1px; }

.nav a.link { color: #dff3ed; text-decoration: none; font-weight: 700; margin-left: 18px; font-size: 0.95rem; }
.nav a.link:hover { color: var(--gold); }

.lang-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.hero {
  background: linear-gradient(180deg, var(--teal-deep), var(--teal-dark));
  color: #fff;
  text-align: center;
  padding: 72px 24px 84px;
}

.hero img.mark { height: 140px; width: 140px; }
.hero h1 { font-size: 2.6rem; margin-top: 18px; letter-spacing: 2px; font-weight: 800; }
.hero p.tag { color: #dff3ed; font-size: 1.3rem; margin-top: 10px; font-weight: 700; }
.hero p.sub { color: var(--amber); font-weight: 800; margin-top: 4px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.cta {
  display: inline-block;
  background: var(--amber);
  color: #3b2303;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 1.05rem;
}
.cta:hover { background: var(--gold); }
.cta.ghost {
  background: transparent;
  color: #dff3ed;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta.ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.cta.small { padding: 11px 22px; font-size: 0.98rem; margin-top: 14px; }

main { max-width: 1080px; margin: 0 auto; padding: 48px 24px; }
main a { color: var(--teal); font-weight: 700; }

h2.section { color: var(--ink); margin: 40px 0 18px; font-size: 1.6rem; font-weight: 800; }
h2.section:first-child { margin-top: 0; }

.cards { display: grid; gap: 20px; margin-top: 12px; }
.cards.features { grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards.features { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.card h3 { color: var(--teal); margin-bottom: 8px; font-size: 1.12rem; }
.card p { color: var(--muted); font-size: 0.98rem; }

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--teal-dark), var(--teal));
  color: var(--gold);
  margin-bottom: 14px;
}
.icon-chip svg { width: 24px; height: 24px; }

/* How it works */
.how {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.how-art { width: 100%; max-width: 760px; display: block; margin: 0 auto 18px; }
.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
  list-style: none;
}
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr 1fr; } }
.steps li {
  counter-increment: step;
  padding-left: 52px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amber);
  color: #3b2303;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { display: block; color: var(--teal-dark); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: 0.95rem; }

/* App band */
.app-band {
  background: linear-gradient(180deg, var(--teal-dark), var(--teal-deep));
  color: #fff;
  padding: 56px 24px;
}
.app-band-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) { .app-band-inner { grid-template-columns: 1.1fr 1fr; } }
.app-copy h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.app-copy p { color: #dff3ed; margin-bottom: 20px; max-width: 46ch; }
.app-copy .app-note { color: #b9d4ca; font-size: 0.9rem; margin: 14px 0 0; }
.app-shots { display: flex; gap: 18px; justify-content: center; }
.app-shots img {
  width: 46%;
  max-width: 230px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Specs */
.specs {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 760px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.spec span { display: block; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.spec strong { color: var(--teal-dark); font-size: 1.05rem; }

.card.partner { text-align: left; }
.card.partner p { color: var(--ink); font-size: 1rem; max-width: 70ch; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.doc h1 { color: var(--teal-dark); margin-bottom: 6px; }
.doc h2 { color: var(--teal); margin: 26px 0 8px; font-size: 1.15rem; }
.doc p, .doc li { color: #31433d; margin-bottom: 8px; }
.doc ul { padding-left: 22px; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

footer {
  background: var(--teal-deep);
  color: #b9d4ca;
  text-align: center;
  padding: 28px 24px;
  font-size: 0.9rem;
}
footer a { color: #dff3ed; }
footer p + p { margin-top: 4px; }

/* Language visibility: hide only the inactive language so elements keep
   their own display values (revert-based hiding broke .cta inline-block). */
html[lang="en"] [data-lang="es"] { display: none !important; }
html[lang="es"] [data-lang="en"] { display: none !important; }

.scene { background: #0d1b17; text-align: center; }
.scene img { width: 100%; max-width: 1200px; display: block; margin: 0 auto; }
.scene-caption {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 18px 24px 34px;
  margin: 0;
}
.demo-banner {
  background: var(--amber);
  color: #3b2303;
  font-weight: 900;
}

@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 10px; }
  .nav > div { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .nav a.link { margin-left: 0; }
  .brand strong { font-size: 1.05rem; }
  .hero { padding: 48px 20px 60px; }
  .hero img.mark { height: 110px; width: 110px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.tag { font-size: 1.1rem; }
  .scene-caption { font-size: 1.05rem; }
  h2.section { font-size: 1.35rem; }
  .app-copy h2 { font-size: 1.45rem; }
}
