:root {
  --bg: #0b0d0f;
  --bg-alt: #101316;
  --surface: #15181c;
  --surface-border: #23272c;
  --text: #eef0f2;
  --text-dim: #a7adb4;
  --text-faint: #6b7278;
  --accent: #c9a15a;
  --accent-soft: rgba(201, 161, 90, 0.14);
  --accent-strong: #e0b96f;
  --radius: 14px;
  --container: 1140px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f5f1;
    --bg-alt: #f0ede6;
    --surface: #ffffff;
    --surface-border: #e4e0d8;
    --text: #16181a;
    --text-dim: #4d5257;
    --text-faint: #8a8f94;
    --accent: #a97f34;
    --accent-soft: rgba(169, 127, 52, 0.12);
    --accent-strong: #8c6a2c;
  }
}

:root[data-theme="light"] {
  --bg: #f7f5f1;
  --bg-alt: #f0ede6;
  --surface: #ffffff;
  --surface-border: #e4e0d8;
  --text: #16181a;
  --text-dim: #4d5257;
  --text-faint: #8a8f94;
  --accent: #a97f34;
  --accent-soft: rgba(169, 127, 52, 0.12);
  --accent-strong: #8c6a2c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.05rem; margin-bottom: 6px; font-family: var(--sans); font-weight: 600; }

em { font-style: italic; color: var(--accent-strong); }

p { color: var(--text-dim); margin: 0 0 16px; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.section-lede {
  max-width: 620px;
  font-size: 1.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--surface-border);
}

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

.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark.small { font-size: 1.2rem; }

.accent { color: var(--accent); }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.btn-nav {
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
}

.btn-nav:hover {
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* Hero */
.hero {
  padding: 110px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-inner { max-width: 560px; }

.lede {
  font-size: 1.1rem;
  max-width: 560px;
}

/* Hero hologram */
.hero-visual { display: flex; justify-content: center; }

.hologram-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1.05;
  border-radius: 24px;
  background: radial-gradient(120% 120% at 50% 18%, #1b1e22, #0b0d0f 72%);
  border: 1px solid #2a2d31;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hologram-panel svg { width: 84%; height: 84%; overflow: visible; }

.hologram-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.aura-outer, .aura-mid { transform-origin: 50% 58%; }
.aura-outer { animation: holo-breathe-outer 9s ease-in-out infinite; }
.aura-mid { animation: holo-breathe-mid 7s ease-in-out infinite; }
.holo-body { animation: holo-hue 16s linear infinite; transform-origin: 50% 58%; }
.scan-group rect { animation: holo-scan 1.6s linear infinite; }
.hub { animation: holo-pulse-hub 3.2s ease-in-out infinite; transform-origin: 120px 150px; }
.node-dot { animation: holo-pulse-node 2.6s ease-in-out infinite; }
.node-dot:nth-of-type(2) { animation-delay: 0.4s; }
.node-dot:nth-of-type(3) { animation-delay: 0.8s; }
.node-line { stroke-dasharray: 6 6; animation: holo-dash 1.6s linear infinite; }
.particle { animation: holo-float 6s ease-in infinite; }

@keyframes holo-breathe-outer {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.08); opacity: 0.32; }
}
@keyframes holo-breathe-mid {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(0.95); opacity: 0.42; }
}
@keyframes holo-hue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}
@keyframes holo-scan {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}
@keyframes holo-pulse-hub {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.25); opacity: 1; }
}
@keyframes holo-pulse-node {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
@keyframes holo-dash { to { stroke-dashoffset: -24; } }
@keyframes holo-float {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.55; }
  100% { transform: translateY(-46px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .aura-outer, .aura-mid, .holo-body, .scan-group rect,
  .hub, .node-dot, .node-line, .particle {
    animation: none !important;
  }
  .particle { opacity: 0.6; }
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

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

.btn-primary {
  background: var(--accent);
  color: #14110a;
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  border-color: var(--surface-border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--surface-border);
}

.hero-stats > div { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  overflow: hidden;
  background: var(--bg-alt);
  padding: 16px 0;
}

.marquee-track {
  display: flex;
  gap: 14px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 32s linear infinite;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.marquee-track span:nth-child(odd) { color: var(--accent); }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* Modules grid */
.grid { display: grid; gap: 24px; }
.grid-modules { grid-template-columns: repeat(3, 1fr); margin-top: 48px; }

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
}

.card-icon svg { width: 100%; height: 100%; }

.card p { margin: 0; font-size: 0.95rem; }

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.approach-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.approach-steps li {
  display: flex;
  gap: 20px;
}

.step-index {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 34px;
}

.approach-steps p { font-size: 0.92rem; margin: 0; }

/* Hardware */
.hardware-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.hardware-visual {
  display: flex;
  justify-content: center;
}

.server-box {
  width: 220px;
  height: 300px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px),
    linear-gradient(160deg, #2a2d31, #16181b);
  border-radius: 10px;
  border: 1px solid #3a3d41;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-brand {
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
  border-bottom: 1px solid #34373b;
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.server-slot {
  height: 52px;
  border-radius: 5px;
  background: #1c1f22;
  border: 1px solid #34373b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.server-slot span {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.server-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px 1px var(--accent-soft);
  flex-shrink: 0;
}

.server-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #34373b;
}

.server-id {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.server-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px var(--accent-soft);
}

.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Licensing */
.grid-license { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }

.license-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.license-card p { font-size: 0.92rem; margin: 0; }

/* Contact */
.contact-inner { max-width: 640px; }

.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: flex; flex-direction: column; gap: 8px; }

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

.form-row input, .form-row textarea {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  resize: vertical;
}

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form .btn { align-self: flex-start; margin-top: 4px; }

.form-note {
  font-size: 0.88rem;
  color: var(--accent);
  min-height: 1.2em;
  margin: 4px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 48px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.footer-fine { color: var(--text-faint); font-size: 0.82rem; }

/* Responsive */
@media (max-width: 860px) {
  .approach-grid, .hardware-grid, .hero-grid { grid-template-columns: 1fr; }
  .grid-modules, .grid-license { grid-template-columns: 1fr 1fr; }
  .hardware-visual { order: -1; }
  .hero-inner, .lede { max-width: 100%; }
  .hologram-panel { max-width: 300px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .grid-modules, .grid-license { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 56px; }
  .hero-stats { gap: 32px; }
  .section { padding: 64px 0; }
}
