:root {
  --bg: #0d0d0f;
  --surface: #151519;
  --surface-2: #1b1b20;
  --text: #f5f5f3;
  --dim: #8a8a90;
  --faint: #5c5c63;
  --accent: #ffb000;
  --accent-soft: rgba(255, 176, 0, 0.08);
  --border: #26262c;
  --border-bright: #33333a;

  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'Space Mono', 'SF Mono', ui-monospace, monospace;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---- Top bar ---- */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; display: block; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.nav a {
  font-family: var(--mono);
  color: var(--dim);
  font-size: 13px;
  margin-left: 22px;
}
.nav a:hover { color: var(--accent); text-decoration: none; }

/* ---- Hero (studio) ---- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 104px 24px 88px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  max-width: 130%;
  height: 820px;
  background: radial-gradient(circle, rgba(255,176,0,0.16) 0%, rgba(255,176,0,0.05) 38%, rgba(255,176,0,0) 70%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-eyebrow::before { content: "> "; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 0;
  color: var(--text);
}
.hero h1 .amber { color: var(--accent); }
.hero-sub {
  color: var(--dim);
  font-size: 18px;
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.6;
}

/* ---- Content ---- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}
.section-head {
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.section-head::before { content: "// "; color: var(--accent); }
.section-sub {
  text-align: center;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 36px;
}

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.product:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.product-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.4px;
}
.status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.status.soon { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(255,176,0,0.3); }
.status.building { background: rgba(255,255,255,0.05); color: var(--dim); border: 1px solid var(--border-bright); }
.product-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--faint);
  margin-bottom: 12px;
}
.product-desc {
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.product-links a {
  font-family: var(--mono);
  font-size: 13px;
  margin-right: 16px;
}
.product-links a:hover { text-decoration: underline; }
.product.placeholder {
  background: transparent;
  border-style: dashed;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--faint);
  min-height: 150px;
}
.product.placeholder:hover { transform: none; border-color: var(--border); }
.placeholder-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--dim);
  margin-bottom: 4px;
}

/* ---- About / contact ---- */
.about {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 36px;
  margin-top: 56px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,176,0,0.07), rgba(255,176,0,0) 60%),
    var(--surface);
}
.about h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: -0.5px;
}
.about p { color: var(--dim); max-width: 560px; margin: 0 auto 10px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1200;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  margin-top: 10px;
  transition: filter 0.18s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255,176,0,0.4);
}
.btn.ghost:hover { background: var(--accent-soft); }

/* ---- Long-form (privacy / support) ---- */
.doc .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 14px;
}
.doc .eyebrow::before { content: "> "; }
.doc h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0 0 8px;
}
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}
.doc h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 24px 0 6px;
}
.doc .updated { color: var(--faint); font-family: var(--mono); font-size: 13px; margin-bottom: 10px; }
.doc .lead { font-size: 18px; color: var(--text); }
.doc p { margin: 0 0 14px; color: var(--dim); }
.doc ul { margin: 0 0 14px; padding-left: 22px; color: var(--dim); }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--text); }
.doc .email { font-weight: 600; color: var(--accent); }

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(255,176,0,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15px;
  color: var(--text);
}
.callout strong { color: var(--accent); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 22px 0;
}
.card h2 { margin-top: 0; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  font-family: var(--mono);
  line-height: 1.8;
}
footer a { color: var(--dim); }
footer a:hover { color: var(--accent); }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 18px;
}
.footer-brand img { width: 30px; height: 30px; display: block; }
.footer-brand span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  color: var(--dim);
  letter-spacing: -0.3px;
}

@media (max-width: 600px) {
  .hero { padding: 76px 20px 64px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .doc h1 { font-size: 30px; }
  main { padding: 56px 20px 72px; }
}

/* ============ Motion ============ */

/* Blinking terminal caret */
.caret {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -0.12em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* Hero entrance — staggered fade-up on load */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.7s cubic-bezier(0.2,0.65,0.2,1) forwards; }
.rise.d1 { animation-delay: 0.05s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.31s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll-reveal — applied via IntersectionObserver (script.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2,0.65,0.2,1),
              transform 0.6s cubic-bezier(0.2,0.65,0.2,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Soft pulse on the hero glow */
.hero::before { animation: glow 7s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}
