:root {
  --bg: #0b0f14;
  --surface: #141a22;
  --surface-secondary: #10161d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e5e7eb;
  --muted: #8a94a6;
  --primary: #5a6bff;
  --accent: #2dd4bf;
  --light: #f7f8fa;
  --warning: #f59e0b;
  --success: #10b981;
  --error: #ef4444;
  --radius: 20px;
  --radius-sm: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(90, 107, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 84% 0%, rgba(45, 212, 191, 0.12), transparent 32rem),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 42px;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.brand-mark span {
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(5),
.brand-mark span:nth-child(8),
.brand-mark span:nth-child(11),
.brand-mark span:nth-child(14) {
  background: var(--primary);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(15) {
  background: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.hero {
  padding: 108px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.68fr);
  gap: 64px;
  align-items: center;
}

.badge,
.status,
.type,
.microcopy {
  font-family: "JetBrains Mono", monospace;
}

.badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 18px;
  border: 1px solid rgba(90, 107, 255, 0.38);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(90, 107, 255, 0.08);
  color: #b9c0ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-primary {
  border-color: rgba(45, 212, 191, 0.36);
  background: rgba(45, 212, 191, 0.08);
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: white;
}

.button-primary:hover {
  background: #6d7cff;
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(45, 212, 191, 0.06);
}

.strong-line {
  margin: 26px 0 0;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.96rem;
}

.system-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(90, 107, 255, 0.12), transparent 38%),
    var(--surface-secondary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
}

.panel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.panel-dot-error {
  background: var(--error);
}

.panel-dot-warning {
  background: var(--warning);
}

.panel-dot-success {
  background: var(--success);
}

.panel-title {
  margin-left: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 24px;
}

.module {
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.module-noise {
  opacity: 0.42;
  transform: translateY(8px);
}

.module-primary {
  background: rgba(90, 107, 255, 0.22);
  border-color: rgba(90, 107, 255, 0.46);
}

.module-accent {
  background: rgba(45, 212, 191, 0.18);
  border-color: rgba(45, 212, 191, 0.42);
}

.status-stack {
  display: grid;
  gap: 10px;
  padding: 0 24px 24px;
}

.status-stack article {
  display: grid;
  grid-template-columns: 42px minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.status-stack span {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-stack strong {
  font-family: "Sora", sans-serif;
}

.status-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 94px 0;
}

.section-dark {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 22, 29, 0.78);
}

.section-heading {
  max-width: 780px;
}

.wide-heading {
  max-width: 880px;
  margin-bottom: 36px;
}

.wide-heading h2 {
  margin-bottom: 14px;
}

.wide-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.position-grid,
.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.position-cards {
  display: grid;
  gap: 14px;
}

.position-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--surface);
}

.position-card span {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
}

.position-card p {
  margin: 0;
  color: var(--muted);
}

.active-card {
  border-color: rgba(45, 212, 191, 0.34);
  background: rgba(45, 212, 191, 0.06);
}

.active-card span,
.active-card p {
  color: var(--text);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li,
.product-card,
.principles-list article {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-grid li {
  min-height: 240px;
  padding: 24px;
}

.process-grid span,
.principles-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.process-grid p,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 107, 255, 0.38);
  background: #171e28;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.status,
.type {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.type {
  color: var(--muted);
}

.status-exploration {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.38);
}

.status-prototype {
  color: var(--primary);
  border-color: rgba(90, 107, 255, 0.42);
}

.status-internal {
  color: var(--accent);
  border-color: rgba(45, 212, 191, 0.4);
}

.status-released {
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.4);
}

.product-card a {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 11px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 160ms ease, background 160ms ease;
}

.product-card a:hover {
  border-color: rgba(45, 212, 191, 0.48);
  background: rgba(45, 212, 191, 0.06);
}

.principles-list {
  display: grid;
  gap: 12px;
}

.principles-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  min-height: 70px;
  padding: 0 18px;
}

.principles-list span {
  margin: 0;
}

.principles-list p {
  margin: 0;
  font-weight: 700;
}

.contact {
  padding: 94px 0;
}

.contact-panel {
  border: 1px solid rgba(90, 107, 255, 0.3);
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(90, 107, 255, 0.14), rgba(45, 212, 191, 0.06)),
    var(--surface-secondary);
}

.contact-panel h2 {
  max-width: 880px;
  margin-bottom: 16px;
}

.contact-panel p {
  max-width: 740px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.06rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero-grid,
  .position-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .process-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 66px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section,
  .contact {
    padding: 70px 0;
  }

  .process-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .status-stack article {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .position-card,
  .principles-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
