:root {
  --bg: #0a0a0c;
  --bg-elevated: #111114;
  --ink: #e8e6e1;
  --ink-dim: #a8a59e;
  --ink-muted: #6b6862;
  --line: rgba(232, 230, 225, 0.08);
  --line-strong: rgba(232, 230, 225, 0.16);
  --accent: #d4ff3a;
  --accent-warm: #ffb84d;
  --serif: 'PP Editorial New', 'Editorial New', Georgia, serif;
  --body: 'PP Neue Montreal', 'Neue Montreal', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ================================================================
   ANIMATED BACKGROUND — generative aurora with scroll-driven motion
   ================================================================ */
.bg-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform, opacity;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.6s ease;
}

.aurora-1 {
  width: 60vw;
  height: 60vw;
  top: -15vw;
  left: -10vw;
  background: radial-gradient(circle, rgba(80, 140, 180, 0.35) 0%, transparent 65%);
}
.aurora-2 {
  width: 55vw;
  height: 55vw;
  top: 10vh;
  right: -15vw;
  background: radial-gradient(circle, rgba(212, 255, 58, 0.14) 0%, transparent 65%);
}
.aurora-3 {
  width: 65vw;
  height: 65vw;
  bottom: -20vw;
  left: 20vw;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.18) 0%, transparent 65%);
}
.aurora-4 {
  width: 50vw;
  height: 50vw;
  top: 40vh;
  left: 30vw;
  background: radial-gradient(circle, rgba(140, 100, 220, 0.2) 0%, transparent 65%);
}

/* Slow ambient drift animation (independent of scroll) */
@keyframes drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, 3vh) scale(1.05); }
  66% { transform: translate(-3vw, 5vh) scale(0.98); }
}
@keyframes drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5vw, 4vh) scale(1.08); }
}
.aurora-1 { animation: drift-a 28s ease-in-out infinite; }
.aurora-2 { animation: drift-b 34s ease-in-out infinite; }
.aurora-3 { animation: drift-a 40s ease-in-out infinite reverse; }
.aurora-4 { animation: drift-b 32s ease-in-out infinite; }

/* Subtle grain overlay on top of the aurora */
.bg-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* Very faint vignette to anchor edges */
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 12, 0.6) 100%);
}

/* ================================================================ */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 10, 12, 0.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 12, 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
  flex-shrink: 0;
}

.brand-wordmark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-wordmark em {
  font-style: italic;
  font-weight: 200;
  color: var(--ink-dim);
}

/* ============ HERO ============ */
.hero {
  padding: 180px 0 140px;
  position: relative;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  max-width: 16ch;
  color: var(--ink-dim);
}

/* Weight contrast: emphasis word jumps from thin (300) to semibold (500)
   in the same serif. No italic, no pill — just typographic heft. */
.hero h1 strong {
  font-weight: 500;
  color: var(--ink);
}

.hero-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 52ch;
  margin-bottom: 56px;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
}
.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta .label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
}
.hero-meta .value {
  color: var(--ink);
  font-size: 13px;
}

/* ============ SECTION ============ */
section {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--line);
}

.section-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: baseline;
}

.section-number {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 8px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
  color: var(--ink-dim);
}

.section-title strong {
  font-weight: 500;
  color: var(--ink);
}

/* ============ PRODUCTS ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.product-card {
  grid-column: span 6;
  background: rgba(17, 17, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 40px;
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  overflow: hidden;
}

.product-card.live:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  background: rgba(17, 17, 20, 0.8);
}

.product-card.live::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.product-card.live:hover::before { opacity: 0.6; }

.product-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.product-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-muted);
}
.product-card.live .product-status { color: var(--accent); }
.product-card.live .product-status .dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.product-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 46px;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1;
}

.product-domain {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.product-desc {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 40ch;
  margin-top: auto;
}

.product-card.placeholder {
  border-style: dashed;
  background: transparent;
}
.product-card.placeholder .product-name {
  color: var(--ink-muted);
}

.product-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.product-card.live:hover .product-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

/* ============ SERVICES ============ */
.services-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
}

.services-list > div:first-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 20px;
}

.services-items {
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  cursor: default;
}
.service-item:last-child { border-bottom: 1px solid var(--line); }

.service-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}

.service-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
}

.service-desc {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  max-width: 40ch;
  text-align: right;
  line-height: 1.5;
}

/* ============ CONTACT ============ */
.contact-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
}

.contact-body {
  max-width: 60ch;
}

.contact-body p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink-dim);
  margin-bottom: 48px;
}

.contact-body p strong {
  font-weight: 500;
  color: var(--ink);
}

.email-block {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 17, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.email-block:hover {
  border-color: var(--accent);
  background: rgba(212, 255, 58, 0.05);
}
.email-block .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.email-block .addr {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.email-block:hover .addr { color: var(--accent); }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 40ch;
}
.footer-mark {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .aurora { animation: none !important; transition: none !important; }
}

/* ============ LONGFORM (privacy, terms) ============ */
.longform {
  max-width: 65ch;
  margin: 0 auto;
  padding: 160px 0 120px;
  color: var(--ink-dim);
}

.longform .last-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.longform h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 48px;
}

.longform h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 56px 0 16px;
  line-height: 1.2;
}

.longform h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 12px;
}

.longform p,
.longform li {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-dim);
}

.longform p { margin-bottom: 20px; }

.longform ul {
  margin: 0 0 20px 1.2em;
}
.longform li { margin-bottom: 8px; }

.longform a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.longform a:hover { text-decoration-color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .hero { padding: 140px 0 100px; }
  section { padding: 80px 0; }

  .section-header,
  .services-list,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .section-header { margin-bottom: 48px; }

  .product-card { grid-column: span 12; padding: 32px; min-height: 280px; }
  .product-arrow { top: 32px; right: 32px; }

  .service-item {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 24px 0;
  }
  .service-desc {
    grid-column: 2;
    text-align: left;
    margin-top: 8px;
  }

  .hero-meta { gap: 20px 32px; }
  .footer-inner { flex-direction: column; }

  .aurora { filter: blur(60px); }

  .longform { padding: 120px 0 80px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 22px; height: 22px; }
  .brand-wordmark { font-size: 20px; }
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
