/* elAIguide website. Colors and fonts from brand/BRAND.md. Fonts are served from this server (no Google Fonts). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}
@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B0B0C;
  --charcoal: #1C1A18;
  --line: rgba(245, 243, 238, 0.10);
  --line-gold: rgba(201, 162, 83, 0.35);
  --glass: rgba(28, 26, 24, 0.55);
  --text: #F5F3EE;
  --muted: #A9A6A0;
  --graphite: #8C8A86;
  --gold: #C9A253;
  --gold-light: #F1D27F;
  --gold-deep: #94661C;
  --gold-grad: linear-gradient(120deg, #FFF0B3 0%, #E8C066 28%, #B7852A 55%, #F1D27F 78%, #94661C 100%);
  --radius: 24px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* 3D background. Fallback glow when WebGL is off. */
#scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 35%, rgba(201, 162, 83, .16), transparent 70%);
}
#scene canvas { display: block; width: 100%; height: 100%; }
.page { position: relative; z-index: 1; }
/* Keep text readable over the gold particles */
.lead, .checks li, .eyebrow, .scroll-cue, .prose p, .small, .section-head h2, .hero h1, .statement h2, .center h2 { text-shadow: 0 2px 18px rgba(11, 11, 12, .95), 0 0 2px rgba(11, 11, 12, .6); }
.gold { text-shadow: none; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 6vw, 3.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; color: var(--graphite); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--gold-grad); color: var(--ink);
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 34px rgba(201, 162, 83, .3); }
.btn-ghost { background: rgba(11, 11, 12, .35); color: var(--text); border-color: var(--line-gold); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold-light); box-shadow: none; }
.btn-small { min-height: 38px; padding: 0 18px; font-size: .9rem; }
.link-arrow { color: var(--gold-light); text-decoration: none; font-weight: 600; }
.link-arrow::after { content: " →"; transition: margin .2s var(--ease); }
.link-arrow:hover::after { margin-left: 4px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .cta-row { justify-content: center; }

/* Header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: rgba(11, 11, 12, .6);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand img { width: 124px; }
.menu { display: none; gap: 30px; }
.menu a { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.top-right { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  position: relative; width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--text); cursor: pointer;
}
.menu-btn span { display: none; }
.menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1.5px; margin-top: -0.75px;
  background: currentColor; transition: transform .25s var(--ease);
}
.menu-btn::before { transform: translateY(-4px); }
.menu-btn::after { transform: translateY(4px); }
.menu-open .menu-btn::before { transform: rotate(45deg); }
.menu-open .menu-btn::after { transform: rotate(-45deg); }
.menu-open .menu {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 60px; left: 0; right: 0;
  background: var(--ink); border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px;
}
.menu-open .menu a { font: 600 1.5rem/1 var(--head); color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--line); }

/* Sections */
.section { padding: 110px 0; position: relative; }
section[id] { scroll-margin-top: 60px; }
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero h1 { max-width: 13ch; margin-bottom: 26px; }
.hero.center h1 { margin-left: auto; margin-right: auto; }
.page-hero { padding: 160px 0 60px; }
.page-hero h1 { font-size: clamp(2.4rem, 8vw, 5rem); max-width: 16ch; margin-bottom: 22px; }
.page-hero.center h1 { margin-left: auto; margin-right: auto; }
.scroll-cue { margin-top: 56px; color: var(--graphite); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 48px; margin: 14px auto 0; background: linear-gradient(var(--gold), transparent); }

.statement { min-height: 80svh; display: flex; align-items: center; }
.statement h2 { font-size: clamp(2.2rem, 7.5vw, 5.4rem); max-width: 15ch; margin: 0 auto; }

.section-head { margin-bottom: 56px; }
.section-head h2 { max-width: 18ch; }
.section-head.center h2 { margin: 0 auto; }
.section-head .lead { margin-top: 18px; }

/* Glass cards */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.tiles { display: grid; gap: 16px; }
.tile { padding: 32px 26px; position: relative; overflow: hidden; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.tile:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.tile p { color: var(--muted); }
.tile h3 { margin-bottom: 12px; }
.tile .num { display: block; font: 700 .85rem/1 var(--head); color: var(--gold); letter-spacing: .1em; margin-bottom: 40px; }
.badge {
  display: inline-block; font: 600 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-gold); color: var(--gold-light);
  margin-bottom: 18px;
}
.badge-soft { border-color: var(--line); color: var(--graphite); }

/* Feature (product spotlight) */
.feature { display: grid; gap: 40px; align-items: center; }
.device {
  position: relative; padding: 12px; border-radius: 34px;
  background: linear-gradient(160deg, rgba(241, 210, 127, .35), rgba(148, 102, 28, .12) 40%, rgba(255, 255, 255, .04));
  box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 80px rgba(201, 162, 83, .12);
  max-width: 440px; margin: 0 auto; width: 100%;
}
.device video, .device img { border-radius: 24px; background: #000; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 22px 0; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 15px; height: 8px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* Numbers */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 28px 22px; }
.stat strong { display: block; font: 700 clamp(1.8rem, 4vw, 2.8rem)/1 var(--head); margin-bottom: 10px; white-space: nowrap; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; padding: 30px 26px; }
.steps li::before {
  content: "0" counter(step);
  display: block; font: 700 2.2rem/1 var(--head); margin-bottom: 26px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.gallery a:hover { border-color: var(--gold); transform: translateY(-3px); }

/* Product page */
.product { padding: 34px 24px; }
.product-grid { display: grid; gap: 36px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.price strong { font: 700 1.5rem/1 var(--head); }
.price span { color: var(--graphite); font-size: .92rem; }
.spec { display: grid; gap: 0; margin: 0; }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--graphite); font-size: .92rem; }
.spec dd { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font: 600 1.1rem/1.4 var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 1.6rem/1 var(--body); color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 64ch; }

/* Case study */
.case { display: grid; gap: 16px; }
.case .glass { padding: 30px 26px; }
.case h3 { color: var(--gold-light); margin-bottom: 12px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.case p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; gap: 40px; align-items: start; }
.about-card { padding: 30px 26px; }
.about-card dl { margin: 0; }
.about-card dt { color: var(--graphite); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-top: 18px; }
.about-card dt:first-child { margin-top: 0; }
.about-card dd { margin: 4px 0 0; }
.prose p { color: var(--muted); font-size: 1.1rem; }
.prose p strong { color: var(--text); font-weight: 600; }

/* Social links */
.socials { display: grid; gap: 12px; }
.social {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px; text-decoration: none; color: var(--text);
  transition: border-color .3s, transform .3s var(--ease);
}
.social:hover { color: var(--text); border-color: var(--line-gold); transform: translateY(-2px); }
.social small { display: block; color: var(--graphite); font-size: .85rem; margin-top: 2px; }
.social b { font: 600 1.05rem/1.2 var(--head); }
.social::after { content: "↗"; color: var(--gold); font-size: 1.2rem; }

/* Contact form */
.contact-grid { display: grid; gap: 40px; align-items: start; }
.form { padding: 30px 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text);
  background: rgba(11, 11, 12, .6); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; transition: border-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: .85rem; color: var(--graphite); }
.form-error { border: 1px solid #b4533c; background: rgba(180, 83, 60, .12); border-radius: 14px; padding: 14px 16px; display: none; }
.has-error .form-error { display: block; }

/* Footer */
.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(11, 11, 12, .85); color: var(--graphite); font-size: .92rem; }
.foot-grid { display: grid; gap: 32px; }
.foot h4 { font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--gold-light); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-brand img { width: 130px; margin-bottom: 14px; }

/* Legal pages */
.legal { padding: 140px 0 90px; }
.legal h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 24px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.fill { color: var(--gold-light); font-weight: 600; }
.draft { border: 1px solid var(--gold); border-radius: 14px; background: rgba(201, 162, 83, .08); padding: 16px 18px; color: var(--text); margin-bottom: 28px; }

/* Small helpers (no inline styles: the site's security policy blocks them) */
.mt-14 { margin-top: 14px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.section.pt-0 { padding-top: 20px; }
.h-sub { font-size: 1.6rem; margin-bottom: 22px; }
.socials.one { grid-template-columns: 1fr; }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

/* Wider screens */
@media (min-width: 760px) {
  .wrap { padding: 0 36px; }
  .section { padding: 120px 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .stats { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .case { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .socials { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .product { padding: 48px; }
  .form { padding: 40px; }
  .brand img { width: 140px; }
}
@media (min-width: 960px) {
  .menu { display: flex; }
  .menu-btn { display: none; }
  .feature { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature.flip > :first-child { order: 2; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 80px; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .gallery a, .social { transition: none; }
}
