/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0D12;
  --bg-card: #111520;
  --fg: #E8EDF3;
  --fg-muted: #8892A4;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 13, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245,158,11,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(245,158,11,0.02) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 48px;
}

.hero-specs {
  display: flex;
  gap: 40px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.spec-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Hero right — power grid visual */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.power-grid {
  position: relative;
  width: 300px;
  height: 300px;
}

.grid-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(245,158,11,0.6), 0 0 32px rgba(245,158,11,0.2);
  transform: translate(-50%, -50%);
}

.node-center { top: 50%; left: 50%; width: 18px; height: 18px; }
.node-tl { top: 22%; left: 22%; }
.node-tr { top: 22%; left: 78%; }
.node-bl { top: 78%; left: 22%; }
.node-br { top: 78%; left: 78%; }

/* Manifesto */
.manifesto {
  padding: 120px 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 28px;
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 48px;
}

.manifesto-divider {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 48px;
}

.manifesto-shift {
  color: var(--fg-muted);
  font-weight: 400;
}

/* Platform */
.platform {
  padding: 120px 48px;
}

.platform-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  color: var(--fg);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.pk-card {
  background: var(--bg);
  padding: 48px;
  transition: background 0.2s;
}

.pk-card:hover { background: var(--bg-card); }

.pk-icon {
  margin-bottom: 24px;
}

.pk-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pk-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Applications */
.applications {
  padding: 120px 48px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.apps-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.app-card {
  background: var(--bg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.app-card:hover { background: #141824; }

.app-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  opacity: 0.04;
  background: repeating-linear-gradient(
    45deg,
    var(--accent) 0,
    var(--accent) 1px,
    transparent 1px,
    transparent 8px
  );
}

.app-content { position: relative; z-index: 1; }

.app-domain {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.app-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.app-card p {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-metrics span {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* Closing */
.closing {
  padding: 140px 48px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(245,158,11,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { max-width: 720px; margin: 0 auto; position: relative; }

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--fg);
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 64px;
}

.closing-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.stamp-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-slow 12s linear infinite;
}

.stamp-core {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.closing-stamp span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Footer */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: block;
}

.footer-sub {
  font-size: 0.72rem;
  color: var(--fg-muted);
  display: block;
  margin-top: 4px;
}

.footer-note {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-right { display: none; }
  .hero-sub { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .manifesto, .platform, .applications, .closing { padding: 80px 24px; }
  .platform-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .hero-specs { gap: 28px; }
}

@media (max-width: 480px) {
  .hero-specs { flex-direction: column; gap: 16px; }
  .spec-val { font-size: 1.2rem; }
}