/* ============================================
   Aureo — shared site styles
   Used across every page (marketing + sub-pages).
   Page-specific styles stay inline per page.
   ============================================ */

/* --- design tokens (sampled from the Aureo logo) --- */
:root {
  --bg: #0a0d10;
  --bg-alt: #0f1318;
  --bg-card: #141a1f;
  --line: #232b32;
  --line-soft: #1a2128;
  --text: #f3f1ea;
  --muted: #9aa3ab;
  --dim: #5f6770;
  --teal: #3aa6b9;
  --teal-deep: #2a7c91;
  --teal-soft: #3aa6b940;
  --gold: #c9a83a;
  --coral: #d77258;
  --amber: #3aa6b9;           /* legacy alias — maps to teal */
  --amber-soft: #3aa6b940;
  --cyan: #4ad9ff;
  --green: #4ade80;
  --red: #ff5e57;
  --display: "Encode Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

/* --- base reset --- */
* { box-sizing: border-box }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden }

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

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

::selection { background: var(--teal); color: #000 }

/* --- nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 10, 12, .72);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.brand img { height: 24px; width: auto; display: block }

.nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
  font-size: 13px;
  color: var(--muted);
}

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

.nav .buy {
  background: var(--teal);
  color: #06222a;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.nav .buy:hover { background: #4ebed1 }

/* language toggle — small boxes in the nav */
.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  font-weight: 500;
}

.lang-toggle a,
.lang-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: .15s ease;
}

.lang-toggle a { cursor: pointer }

.lang-toggle a:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(58, 166, 185, .08);
}

.lang-toggle .current {
  background: var(--teal);
  border-color: var(--teal);
  color: #06222a;
  font-weight: 600;
}

.lang-toggle .disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width:780px) {
  .nav ul { display: none }
}

/* --- eyebrow component --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--teal);
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: .15s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn.primary {
  background: var(--teal);
  color: #06222a;
  font-weight: 600;
}

.btn.primary:hover { background: #4ebed1 }

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

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

.btn .arrow { transition: transform .15s }
.btn:hover .arrow { transform: translateX(3px) }

/* --- code helpers --- */
code.k {
  font-family: var(--mono);
  font-size: .85em;
  color: var(--coral);
  background: rgba(215, 114, 88, .08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* --- sub-page header --- */
.page-head {
  padding: clamp(120px, 16vw, 180px) var(--pad) clamp(40px, 6vw, 56px);
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.page-head .eyebrow { margin-bottom: 20px }

.page-head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0;
}

.page-head .lead {
  max-width: 680px;
  margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.5;
  color: var(--muted);
}

.page-head .updated {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* --- sub-page container --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad);
}

/* --- article typography (sub-pages) --- */
article h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0 0 18px;
  scroll-margin-top: 80px;
}

article section + section { margin-top: clamp(40px, 5vw, 56px) }

article h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 26px 0 12px;
  color: var(--text);
}

article p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--muted);
  font-size: 16px;
}

article p strong { color: var(--text); font-weight: 600 }

article ul, article ol {
  margin: 14px 0 20px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

article li { margin: 6px 0 }
article li strong { color: var(--text); font-weight: 600 }

article a {
  color: var(--teal);
  border-bottom: 1px solid var(--teal-soft);
}

article a:hover { border-color: var(--teal) }

/* --- callout component --- */
.callout {
  margin: 24px 0 32px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
}

.callout strong {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}

.callout p {
  color: var(--text);
  margin: 0 0 10px;
  font-size: 15.5px;
}

.callout p:last-child { margin: 0 }

.callout.warn { border-left-color: var(--coral) }
.callout.warn strong { color: var(--coral) }

/* --- code block component --- */
.code-block {
  margin: 20px 0;
  background: #06080b;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.code-block .title {
  padding: 12px 18px;
  background: rgba(58, 166, 185, .04);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.code-block pre {
  margin: 0;
  padding: 18px 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}

.code-block .k { color: var(--teal) }

/* --- footer --- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 48px var(--pad);
  background: #070708;
}

.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}

footer .cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

footer .col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

footer .col strong {
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

footer .col a:hover { color: var(--text) }

footer .fine {
  font-size: 12px;
  color: var(--dim);
  max-width: 340px;
  line-height: 1.5;
}

/* --- utility --- */
.divider {
  height: 1px;
  background: var(--line-soft);
  max-width: var(--maxw);
  margin: 0 auto;
}
