/* ============================================================
   RayX Studios — shared design system
   Light, inviting, modern. Warm off-white + bold accent.
   ============================================================ */

:root {
  /* color — overridable by Tweaks via --accent */
  --bg:        oklch(0.975 0.004 90);
  --bg-2:      oklch(0.955 0.006 90);
  --surface:   oklch(1 0 0);
  --surface-2: oklch(0.945 0.006 90);
  --line:      oklch(0.88 0.008 90);
  --line-soft: oklch(0.91 0.006 90 / 0.7);

  --text:      oklch(0.22 0.02 264);
  --muted:     oklch(0.48 0.02 264);
  --faint:     oklch(0.62 0.015 264);

  --accent:    oklch(0.55 0.19 255);   /* rich blue */
  --accent-2:  oklch(0.60 0.17 175);   /* teal */
  --accent-ink: oklch(0.98 0.005 90);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --maxw: 1240px;
  --shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset, 0 20px 50px -20px oklch(0 0 0 / 0.08);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient glow field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% -10%, oklch(0.55 0.19 255 / 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* faint grid texture — disabled for cleaner look */
/*
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(oklch(0 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0 0 0 / 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 50% 0%, black, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
*/

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(100% - 44px, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); opacity: 0.6; }

.lede { color: var(--muted); font-size: 1.18rem; max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #ffffff !important;
  text-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.5), 0 0 8px rgba(255,255,255,0.4);
  box-shadow: 0 10px 30px -12px oklch(0.55 0.19 255 / 0.35), 0 0 20px oklch(0.55 0.19 255 / 0.2);
}
.btn-primary .arrow { color: #ffffff !important; }
.btn-primary:hover { box-shadow: 0 12px 34px -10px oklch(0.55 0.19 255 / 0.45); transform: translateY(-1px); }
.btn-ghost {
  background: oklch(0 0 0 / 0.02);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px -8px oklch(0.55 0.19 255 / 0.25); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.975 0.004 90 / 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--text); }
.brand .mark {
  width: auto; min-width: 32px; padding: 0 9px; height: 32px; border-radius: 10px;
  background: oklch(0.95 0.005 90);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'DM Sans', system-ui, sans-serif; font-weight: 700; color: var(--text); font-size: 0.88rem;
  line-height: 1; white-space: nowrap; letter-spacing: -0.02em;
  box-shadow: 0 4px 12px -4px oklch(0 0 0 / 0.08);
}
.brand .x { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links .hide-sm { display: none; } }

/* ---------- sections ---------- */
section { padding: clamp(80px, 11vw, 150px) 0; position: relative; z-index: 1; }
.sec-head { max-width: 62ch; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 18px 0 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: border-color .25s ease, transform .25s ease;
}

/* striped image placeholder */
.ph {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, oklch(0 0 0 / 0.02) 0 11px, transparent 11px 22px),
    var(--bg-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.ph span {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--faint); text-transform: uppercase;
  background: var(--surface); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line);
}

footer { border-top: 1px solid var(--line-soft); padding: 56px 0 64px; position: relative; z-index: 1; }
