/*
 * Arteractive LLC website palette.
 * Nebula preset, ported from the Revres design system at
 * packages/app/src/theme.ts (see also the Claude Design handoff:
 * Revres Design System.html, sections.jsx::CoverSection).
 */

:root {
  --bg: #080716;
  --bg-card: rgba(18, 16, 42, 0.82);
  --bg-card-strong: #4c1d95;
  --text: #f8f5ff;
  --text-secondary: #c9bee8;
  --text-muted: #a998ce;
  --text-subtle: #80719f;
  --accent: #a855f7;
  --accent-hover: #c084fc;
  --accent-deep: #8b5cf6;
  --rule: rgba(168, 85, 247, 0.24);
  --rule-subtle: rgba(244, 114, 182, 0.18);
  --eyebrow: #c084fc;
  --selection: rgba(168, 85, 247, 0.45);
  --max-width: 1100px;
  --legal-max-width: 720px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

/*
 * Cosmic-dust backdrop: three large radial gradients hint at the
 * Nebula atmosphere without animating anything. The pseudo-element
 * sits behind the page content via z-index stacking on the layout
 * containers.
 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 14% 22%,
      rgba(168, 85, 247, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at 78% 6%,
      rgba(244, 114, 182, 0.18),
      transparent 55%
    ),
    radial-gradient(
      circle at 88% 64%,
      rgba(34, 211, 238, 0.12),
      transparent 55%
    );
  z-index: 0;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
  transition: color 120ms cubic-bezier(0.25, 0.1, 0.25, 1),
    text-decoration-color 120ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

a:hover {
  color: var(--text);
  text-decoration-color: var(--accent-hover);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  font-size: 14px;
  color: var(--text-muted);
}

.site-header .brand {
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 24px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.site-header nav a[aria-current="page"],
.site-footer nav a[aria-current="page"] {
  color: var(--text);
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 32px 0;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  padding: 64px 0 88px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 28px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 32px;
  text-wrap: balance;
}

.hero h1 .gradient-line {
  display: block;
  background: linear-gradient(
    110deg,
    #f0abfc 0%,
    #c084fc 32%,
    #22d3ee 64%,
    #5eead4 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .tagline {
  font-size: 20px;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.78);
  margin: 0 0 8px;
  max-width: 620px;
  text-wrap: pretty;
}

/* ---- Body sections ------------------------------------------------------- */

section + section {
  margin-top: 56px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 16px;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

p,
address {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

address {
  font-style: normal;
  color: var(--text-muted);
}

.product {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

.product h3 {
  margin-top: 0;
  color: var(--accent-hover);
}

/* ---- Legal pages --------------------------------------------------------- */

.legal {
  max-width: var(--legal-max-width);
  margin: 0 auto;
}

.legal h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 32px 0 8px;
}

.legal .effective {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 8px;
}

.legal .disclaimer {
  font-size: 13px;
  color: var(--text-subtle);
  border: 1px solid var(--rule-subtle);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0 40px;
  background: var(--bg-card);
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  color: var(--text);
}

.legal p {
  color: var(--text-secondary);
}

/* All-caps emphasis blocks (warranty/liability disclaimers) read more
 * like serious legal copy and less like shouted prose at slightly
 * smaller, looser tracking. */
.legal .emphasis {
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 40px 0 64px;
  }
  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
  }
  .hero .tagline {
    font-size: 18px;
  }
  .legal h1 {
    font-size: 30px;
  }
  .site-header,
  .site-footer,
  .page {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}
