/* /<locale>/ai/ section. Mirrors the ErosAI product look "glass" with the amber
   accent (eros-frontend: src/assets/styles/looks.css, main.css, glass.css). Keep the
   tokens in sync with those files; this page has no JS and no Tailwind. */

@font-face {
  font-family: "TT Hoves";
  src: url("https://eros-previews.fra1.cdn.digitaloceanspaces.com/frontend/fonts/TTHoves-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TT Hoves";
  src: url("https://eros-previews.fra1.cdn.digitaloceanspaces.com/frontend/fonts/TTHoves-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "TT Hoves";
  src: url("https://eros-previews.fra1.cdn.digitaloceanspaces.com/frontend/fonts/TTHoves-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  font-weight: 300 400;
  font-display: swap;
  src: url("jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Jost";
  font-weight: 300 400;
  font-display: swap;
  src: url("jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-weight: 300 400;
  font-display: swap;
  src: url("jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* look "glass", accent "amber" */
  --bg-shade: 16 14 12;
  --bg-photo: url("https://eros-previews.fra1.cdn.digitaloceanspaces.com/frontend/media/blur/t07-desert-rider.webp");
  --fg: #f5f5f7;
  --fg-85: rgb(255 255 255 / 0.85);
  --fg-70: rgb(255 255 255 / 0.7);
  --fg-55: rgb(255 255 255 / 0.55);
  --fg-45: rgb(255 255 255 / 0.45);
  --surface: rgb(255 255 255 / 0.08);
  --surface-2: rgb(255 255 255 / 0.12);
  --hairline: rgb(245 245 247 / 0.08);
  --accent: #ffb04d;
  --accent-soft: rgb(255 165 58 / 0.2);
  --glow: 0 10px 30px -10px rgb(255 150 50 / 0.55);
  --glass-edge:
    inset 0 1px 0 rgb(255 255 255 / 0.32), inset 0 0 0 1px rgb(255 255 255 / 0.12),
    inset 0 -1px 0 rgb(255 255 255 / 0.05);
  --font-sans: "TT Hoves", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Jost", "TT Hoves", ui-sans-serif, sans-serif;
  --radius-card: 1.5rem;
  --dk: 1.08;
  color-scheme: dark;
}

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

html {
  background: rgb(var(--bg-shade));
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgb(255 255 255 / 0.18) transparent;
}

body {
  margin: 0;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-soft);
}

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

:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.25);
  outline-offset: 2px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ── backdrop: the product's blurred photo, lighter on top, darker below ── */
.page-base {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: rgb(var(--bg-shade));
}
.page-base::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: var(--bg-photo) 50% 40% / cover no-repeat;
  filter: blur(48px) saturate(0.42) brightness(0.8);
}
.page-base::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(var(--bg-shade) / 0.12),
    rgb(var(--bg-shade) / 0.38) 45%,
    rgb(var(--bg-shade) / 0.72)
  );
}

/* ── top bar: floating glass pill ── */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0.5rem 0;
}
.topbar__glass {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  max-width: 160rem;
  height: 3.5rem;
  padding: 0 0.5rem 0 1.25rem;
  border-radius: 999px;
  background: rgb(18 13 10 / 0.92);
  box-shadow:
    var(--glass-edge),
    0 2px 6px rgb(12 8 5 / 0.18),
    0 24px 60px -18px rgb(12 8 5 / 0.55);
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.014em;
}
.brand__ring {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid var(--accent);
  border-radius: 999px;
  box-shadow: var(--glow);
}
.nav {
  display: none;
}
.topbar__end {
  margin-left: auto;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: #141011;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.btn-white:hover {
  background: #ececf0;
}
.btn-white:active {
  transform: scale(0.98);
}
.btn-white--lg {
  height: 3rem;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
}

/* ── page shell ── */
.shell {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 6rem 1rem 4rem;
}

.type-page {
  margin: 0;
  font-family: var(--font-display);
  font-size: calc(2.375rem * var(--dk));
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.lead {
  max-width: 42rem;
  margin: 0;
  color: var(--fg-70);
}
.page-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── article ── */
.article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 42rem;
  margin: 0 auto;
}
.back {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  margin: -0.5rem 0;
  color: var(--fg-55);
  font-size: 0.8125rem;
  line-height: 1.4;
  transition: color 0.2s;
}
.back:hover {
  color: #fff;
}
.back svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: -0.75rem 0 0;
  color: var(--fg-55);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.cta p {
  flex: 1 1 15rem;
  margin: 0;
  color: var(--fg-85);
}

/* body copy produced by the engine */
.prose {
  color: var(--fg-70);
  overflow-wrap: break-word;
}
.prose section + section {
  margin-top: 2.25rem;
}
.prose h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.prose h3 {
  margin: 1.5rem 0 0.375rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.6;
}
.prose p {
  margin: 0 0 0.875rem;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong,
.prose b {
  color: #fff;
  font-weight: 600;
}
.prose a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}
.prose ul,
.prose ol {
  margin: 0 0 0.875rem;
  padding-left: 1.25rem;
}
.prose li {
  margin: 0.375rem 0;
}
.prose li::marker {
  color: var(--fg-45);
}
.prose small {
  color: var(--fg-45);
}
.prose blockquote {
  margin: 0 0 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: var(--surface);
  color: var(--fg-85);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}
.prose table {
  display: block;
  width: 100%;
  margin: 0 0 0.875rem;
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: 1rem;
  background: var(--surface);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.prose th,
.prose td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  vertical-align: top;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose th {
  color: #fff;
  font-weight: 500;
}

/* ── cards (guides grid) ── */
.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem;
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: background-color 0.2s;
}
.card:hover {
  background: var(--surface-2);
}
.card__caption {
  margin: 0;
  color: var(--fg-45);
  font-size: 0.75rem;
  line-height: 1.35;
}
.card__title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.014em;
}
.card__text {
  margin: 0;
  color: var(--fg-70);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.section-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.014em;
}
.related {
  margin-top: 1rem;
}

/* ── hub ── */
.hub {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hub .page-head {
  gap: 0.75rem;
}
.hub__cta {
  align-self: flex-start;
}
.empty {
  margin: 0;
  color: var(--fg-55);
}

/* ── footer ── */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--fg-45);
  font-size: 0.75rem;
  line-height: 1.35;
}
.site-foot p {
  margin: 0;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.site-foot a {
  color: var(--fg-55);
  transition: color 0.2s;
}
.site-foot a:hover {
  color: #fff;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .topbar {
    padding: 0.75rem 1rem 0;
  }
  .topbar__glass {
    height: 4rem;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.07));
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    backdrop-filter: blur(40px) saturate(150%);
  }
  .nav {
    display: flex;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .nav a {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 0.875rem;
    border-radius: 999px;
    color: var(--fg-70);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
  }
  .nav a:hover {
    color: #fff;
  }
  .shell {
    padding: 8rem 2rem 5rem;
  }
  .type-page {
    font-size: calc(3.25rem * var(--dk));
  }
  .site-foot {
    padding: 1.5rem 2rem 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
