:root {
  --bg: #0a0d1a;
  --bg-2: #0f1424;
  --surface: #131929;
  --surface-2: #1a2136;
  --fg: #e8e4dd;
  --fg-2: #a8a49c;
  --fg-3: #6b6860;
  --accent: #e07a2f;
  --accent-2: #f5a05c;
  --accent-dim: rgba(224, 122, 47, 0.12);
  --live: #4ade80;
  --border: rgba(255,255,255,0.06);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { font-size: 16px; 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;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: #e07a2f;
  top: -200px;
  right: 5%;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #6c63ff;
  bottom: -100px;
  left: 10%;
  opacity: 0.1;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(224,122,47,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  width: fit-content;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 6px var(--live);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 440px;
}

/* ── MOCKUP ── */
.app-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg-3);
}

.mockup-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-2);
  margin-left: auto;
  margin-right: auto;
}

.mockup-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.space-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background 0.2s;
  cursor: default;
}

.space-row:hover { background: var(--surface-2); }
.space-row.active { background: var(--accent-dim); }

.space-icon {
  font-size: 0.6rem;
  color: var(--accent);
  line-height: 1;
  width: 18px;
  text-align: center;
}

.space-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.space-name {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg);
}

.space-meta {
  font-size: 0.7rem;
  color: var(--fg-3);
}

.space-badge {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--live);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 100px;
  padding: 2px 8px;
}

.feed-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  padding: 0 2px;
}

.feed-divider span {
  font-size: 0.72rem;
  color: var(--fg-3);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feed-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.post-item {
  display: flex;
  gap: 10px;
  padding: 10px 2px;
}

.post-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0a0d1a;
  flex-shrink: 0;
}

.post-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.post-author {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg);
}

.post-time {
  font-size: 0.68rem;
  color: var(--fg-3);
  margin-left: 6px;
}

.post-text {
  font-size: 0.8rem;
  color: var(--fg-2);
  line-height: 1.5;
}

.peer-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 0.7rem;
  color: var(--fg-3);
}

.peer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 4px var(--live);
  animation: pulse 2s ease-in-out infinite;
}

/* ── FEATURES ── */
.features {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.features-header p {
  font-size: 1rem;
  color: var(--fg-2);
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(224,122,47,0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manifesto-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.manifesto-statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 680px;
}

.manifesto-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* ── ARCHITECTURE ── */
.architecture {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.arch-header {
  text-align: center;
  margin-bottom: 60px;
}

.arch-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.arch-header p {
  font-size: 1rem;
  color: var(--fg-2);
}

.arch-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}

.arch-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-number {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.arch-step h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

.arch-step p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.65;
}

.arch-connector {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.stack-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stack-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stack-tag {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-2);
  background: var(--accent-dim);
  border: 1px solid rgba(224,122,47,0.15);
  border-radius: 6px;
  padding: 4px 12px;
}

/* ── CLOSING ── */
.closing {
  padding: 100px 40px 80px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.closing-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.closing-inner p {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto;
}

.closing-note {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--fg-3);
  margin-top: 8px;
}

/* ── FOOTER ── */
footer {
  padding: 40px 40px 60px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.footer-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-3);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--fg-3);
}

.footer-sep { color: var(--fg-3); opacity: 0.4; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { display: none; }
  .hero { min-height: auto; padding: 80px 0 60px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .arch-flow { grid-template-columns: 1fr; gap: 8px; }
  .arch-connector { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-content, .features, .manifesto, .architecture, .closing, footer {
    padding-left: 24px;
    padding-right: 24px;
  }
}