/* ============================================================
   BOOM AI — PROJECT ULYSSES theme
   Dark command-deck look: warm graphite, gold core, cyan accents (aligned with the ULYSSES console, 31.08).
   Matches the ULYSSES console and the /ulysses demo gate.
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #171316;
  --bg-soft: #1d191c;
  --panel: #221e21;
  --ink: #f2eef0;
  --text: #d8d3d6;
  --muted: #9a929a;
  --line: #383236;
  --gold: #f5a623;
  --gold-soft: rgba(245, 166, 35, 0.08);
  --gold-bright: #ffd080;
  --cyan: #00e5ff;
  --cyan-soft: rgba(0, 229, 255, 0.07);

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --header-height: 72px;
  --shadow-card: 0 0 0 rgba(0, 0, 0, 0);
  --shadow-card-hover: 0 8px 40px rgba(245, 166, 35, 0.08);
  --mono: "Share Tech Mono", ui-monospace, monospace;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0; min-width: 320px;
  background:
    radial-gradient(1100px 600px at 50% -10%, rgba(0, 229, 255, 0.05), transparent 60%),
    radial-gradient(900px 700px at 50% 30%, rgba(245, 166, 35, 0.05), transparent 65%),
    var(--bg);
  color: var(--text); line-height: 1.65;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-height);
  padding: 12px max(20px, calc((100vw - 1200px) / 2));
  background: rgba(23, 19, 22, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }

.brand__mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: #171316;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  font-family: var(--mono);
}

.brand__name { font-size: 1rem; letter-spacing: 0.04em; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.site-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.94rem; font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--gold); background: var(--gold-soft); outline: none;
}

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 12px; min-height: 40px;
  border-left: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem; font-weight: 700;
}

.lang-switch button {
  background: none; border: 0; padding: 4px 6px; cursor: pointer;
  color: var(--muted); font-weight: 700;
  border-radius: 6px;
  transition: color 160ms ease, background 160ms ease;
}

.lang-switch button[aria-pressed="true"] { color: var(--gold); background: var(--gold-soft); }
.lang-switch button:hover { color: var(--ink); }
.lang-switch__sep { color: var(--line); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink); cursor: pointer;
  margin-left: auto;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ----- Buttons ----- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.96rem; line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease,
              color 160ms ease, box-shadow 160ms ease;
}

.button svg { width: 18px; height: 18px; flex: 0 0 auto; }

.button:hover { transform: translateY(-1px); }

.button--primary {
  color: #171316;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.25);
}
.button--primary:hover, .button--primary:focus-visible {
  box-shadow: 0 0 34px rgba(245, 166, 35, 0.45); outline: none;
}

.button--secondary {
  color: var(--cyan); background: transparent;
  border-color: rgba(0, 229, 255, 0.35);
}
.button--secondary:hover, .button--secondary:focus-visible {
  background: var(--cyan-soft); border-color: var(--cyan); outline: none;
}

.button--header { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }

/* ----- Hero: the orb ----- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.hero__inner--orb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 0 72px;
  gap: 4px;
}

.orb-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(560px, 86vw);
  aspect-ratio: 1;
  cursor: pointer;
  outline: none;
}
.orb-wrap canvas { width: 100%; height: 100%; }

.orb-cta {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  padding: 9px 22px;
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 22px;
  background: rgba(23, 19, 22, 0.65);
  transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease,
              background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.orb-wrap:hover .orb-cta, .orb-wrap:focus-visible .orb-cta {
  color: #171316;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: var(--gold-bright);
  box-shadow: 0 0 34px rgba(245, 166, 35, 0.5);
  transform: translateX(-50%) translateY(-2px);
}

.hero__copy h1 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  max-width: 860px;
}

.hero-typed {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-height: 1em;
  font-weight: 800;
}

.typed-cursor { color: var(--gold); font-weight: 400; }

.hero__lead {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
  justify-content: center;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.76rem; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin: 0;
}

/* ----- Section base ----- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.section--violet { background: var(--bg-soft); }

.section__intro { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__intro h2 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section__intro p { margin: 16px auto 0; color: var(--muted); max-width: 620px; }

/* ----- Products ----- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.product-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: var(--shadow-card-hover);
}

.product-card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--cyan);
}
.product-card__icon svg { width: 24px; height: 24px; }

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan);
  font-weight: 700; font-size: 0.92rem;
}
.product-card__link:hover { color: var(--gold); }
.product-card__link svg { width: 16px; height: 16px; transition: transform 160ms ease; }
.product-card__link:hover svg { transform: translateX(2px); }

/* Featured card */
.product-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-featured__copy .eyebrow { color: var(--cyan); }
.product-featured__copy h3 {
  margin: 12px 0 16px;
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.product-featured__copy p { color: var(--muted); margin: 0 0 24px; }

.product-featured__visual img, .product-featured__visual svg {
  width: 100%; height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  opacity: 0.92;
}

/* ----- About ----- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
}

.about-grid h2 { color: var(--ink); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  padding: 24px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
}

.metric strong {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ----- Contact band ----- */
.contact-band {
  padding: 88px 0;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(245, 166, 35, 0.07), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.contact-band__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-band h2 {
  margin: 16px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.contact-band p { margin: 16px auto 28px; color: var(--muted); max-width: 560px; }
.contact-band__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}

/* ----- Footer ----- */
.site-footer {
  padding: 32px 0;
  color: var(--muted);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.site-footer p { margin: 0; font-size: 0.88rem; }
.site-footer__link {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
}
.site-footer__link:hover { color: var(--gold-bright); text-decoration: underline; }

/* ----- Reveal (legacy fallback, AOS does the work now) ----- */
.reveal { opacity: 1; }

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .reveal { opacity: 1; transform: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  #hero-particles { display: none !important; }
}

/* ----- Focus ----- */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .site-header { padding-inline: 20px; gap: 12px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); right: 20px; left: 20px;
    display: none; flex-direction: column; gap: 4px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; justify-content: flex-start; min-height: 44px; }
  .lang-switch { border-left: 0; padding-left: 0; margin-top: 8px; }

  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .product-featured { grid-template-columns: 1fr; padding: 32px; gap: 28px; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1200px); }
  .section { padding: 64px 0; }

  .products-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }

  .hero__inner--orb { padding: 24px 0 56px; }
  .orb-wrap { width: min(360px, 92vw); }
  .orb-cta { font-size: 0.8rem; letter-spacing: 0.16em; }

  .hero__copy h1 { font-size: 1.7rem; }
  .hero__lead { font-size: 1rem; }

  .button { width: 100%; }
  .hero__actions, .contact-band__actions { flex-direction: column; }
}
