/* Magnum Chat AI — landing page. No external dependencies (works offline from the zip). */
:root {
  --bg: #f4f2ed;
  --bg-2: #ece9e1;
  --surface: #ffffff;
  --ink: #16171b;
  --muted: #5f6068;
  --line: #ddd8cc;
  --gold: #b8954f;
  --gold-soft: #d6bd89;
  --night: #101114;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(16, 17, 20, 0.35);
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101114;
    --bg-2: #17181c;
    --surface: #1d1e23;
    --ink: #f4f2ed;
    --muted: #a8a7a2;
    --line: #2c2d33;
    --gold: #d6bd89;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.6 'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* Language: content is written in both languages; the active one is shown. */
html[data-lang='pt'] .en,
html[data-lang='en'] .pt {
  display: none !important;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
}
.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover {
  color: var(--ink);
}
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font: 600 12px/1 inherit;
}
.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero .wrap.split {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
}
.btn.primary {
  background: var(--night);
  color: #f4f2ed;
  border-color: var(--night);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn.primary {
    background: var(--gold);
    color: var(--night);
    border-color: var(--gold);
  }
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}
.facts > span::before {
  content: '✓ ';
  color: var(--gold);
  font-weight: 700;
}
.stage {
  position: relative;
}
.browser {
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.browser::before {
  content: '';
  display: block;
  height: 28px;
  background: var(--bg-2);
  background-image:
    radial-gradient(circle, #e0605a 4px, transparent 5px),
    radial-gradient(circle, #e8b54d 4px, transparent 5px),
    radial-gradient(circle, #5fb565 4px, transparent 5px);
  background-size: 18px 28px;
  background-repeat: no-repeat;
  background-position:
    12px 0,
    30px 0,
    48px 0;
}
.phone {
  width: 190px;
  border-radius: 30px;
  padding: 8px;
  background: var(--night);
  box-shadow: var(--shadow);
}
.phone img {
  border-radius: 23px;
}
.stage .phone {
  position: absolute;
  right: -14px;
  bottom: -36px;
}
@media (max-width: 960px) {
  .hero .wrap.split {
    grid-template-columns: 1fr;
  }
  .stage .phone {
    width: 130px;
    right: 6px;
    bottom: -24px;
  }
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 56px 0 0;
}
.highlight {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.highlight b {
  display: block;
  font-size: 15px;
}
.highlight small {
  color: var(--muted);
  font-size: 13px;
}
.highlight i {
  font-style: normal;
  font-size: 22px;
}

/* Sections */
section {
  padding: 72px 0;
}
section.alt {
  background: var(--bg-2);
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 10px 0 14px;
  letter-spacing: -0.01em;
}
.sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 46em;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
  counter-reset: s;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  counter-increment: s;
}
.step::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--night);
  font-weight: 700;
  margin-bottom: 10px;
}
.step b {
  display: block;
  margin-bottom: 4px;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.feature.flip {
  grid-template-columns: 1.3fr 0.9fr;
}
.feature.flip .copy {
  order: 2;
}
@media (max-width: 960px) {
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }
  .feature.flip .copy {
    order: 0;
  }
}
.feature ul {
  padding: 0;
  list-style: none;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.feature li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.feature li b {
  color: var(--ink);
}
.feature li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold-soft);
}
.shot {
  cursor: zoom-in;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.thumbs figure {
  margin: 0;
}
.thumbs img {
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.phones {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}
.phones figure {
  margin: 0;
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.phones .phone {
  width: 220px;
}
.phones figcaption {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
}
th,
td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--night);
  font-size: 12px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}
.tag.alt {
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  th,
  td {
    padding: 10px;
    font-size: 14px;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card b {
  display: block;
  margin-bottom: 4px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
pre {
  background: var(--night);
  color: #f4f2ed;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
  font:
    14px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 10px;
}
summary {
  font-weight: 600;
  cursor: pointer;
}
details p {
  color: var(--muted);
  margin: 10px 0 0;
}
footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: grid;
  gap: 10px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.88);
  display: none;
  place-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open {
  display: grid;
}
.lightbox img {
  max-height: 90vh;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lightbox p {
  color: #f4f2ed;
  text-align: center;
  margin: 12px 0 0;
}
/* Grid children may shrink below their content (long code lines scroll inside <pre>). */
.feature > *,
.hero .wrap.split > * {
  min-width: 0;
}

.plans {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  gap: 18px;
  margin-top: 28px;
  max-width: 860px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.plan.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.plan-name {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.price {
  font-size: clamp(34px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
}
.price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.setup {
  margin: -10px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.plan li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.plan li.off {
  color: var(--muted);
}
.plan li.off::before {
  content: '•';
}
