/* ══════════════════════════════════════════════
   DSP · STING — Portal Design System
   Distinct from Adjektivtestet (indigo/purple).
   Identity: Teal + warm neutrals, editorial grid,
   Space Grotesk headings, monospaced accents.
   ══════════════════════════════════════════════ */

:root {
  --bg:        #08090c;
  --bg-raised: #0e1014;
  --surface:   #14161c;
  --card:      #191b24;
  --border:    #1f2230;
  --border-hi: #2a2d3e;

  --accent:      #2dd4bf;
  --accent-dim:  rgba(45,212,191,0.12);
  --accent-mid:  rgba(45,212,191,0.25);
  --accent-text: #5eead4;

  --warm:      #f59e0b;
  --warm-dim:  rgba(245,158,11,0.12);

  --text:   #e8eaed;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --text-4: #4b5563;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

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

html {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }
::selection { background: var(--accent); color: var(--bg); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════
   NAV
   ═══════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,9,12,0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.nav-sigil {
  width: 28px; height: 28px; color: var(--accent);
}
.nav-sigil.small { width: 22px; height: 22px; }
.nav-sigil svg { width: 100%; height: 100%; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-name {
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.88rem; letter-spacing: -0.01em;
}
.nav-descriptor {
  font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-3); letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 5px 12px; border-radius: 6px; font-size: 0.82rem;
  color: var(--text-3); text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  color: var(--accent-text) !important;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-dim) !important; }
.nav-mobile-btn {
  display: none; background: none; border: none;
  color: var(--text-3); font-size: 1.1rem; cursor: pointer;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-size: 0.88rem; font-weight: 500;
  font-family: var(--font-head);
  border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  background: #5eead4;
  box-shadow: 0 0 24px rgba(45,212,191,0.25);
}
.btn-outline {
  background: transparent; color: var(--text-2);
  border-color: var(--border-hi);
}
.btn-outline:hover {
  color: var(--text); border-color: var(--text-3);
  background: var(--surface);
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius-lg); }

/* ═══════════════════════════════
   SECTION INTRO
   ═══════════════════════════════ */
.section-intro { margin-bottom: 48px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; color: var(--accent-text);
  margin-bottom: 14px;
}
.section-intro h2 {
  font-family: var(--font-head); font-size: 2rem;
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.2; margin-bottom: 12px;
}
.section-intro p {
  color: var(--text-2); max-width: 540px;
  font-size: 0.95rem; line-height: 1.7;
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
  padding: 140px 0 100px; position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  opacity: 0.4;
}
.hero-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--text-3);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.hero h1 {
  font-family: var(--font-head); font-size: 3rem;
  font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.08; margin-bottom: 20px;
}
.hero-lead {
  color: var(--text-2); font-size: 1rem;
  line-height: 1.75; margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Matrix display */
.matrix-display {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  position: relative;
}
.matrix-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.matrix-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em; color: var(--text-3);
}
.matrix-status {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.matrix-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.matrix-cell {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px;
  font-family: var(--font-head); font-size: 0.82rem;
  font-weight: 500; color: var(--text-2);
  text-align: center; transition: all 0.3s;
  position: relative;
}
.matrix-cell::after {
  content: attr(data-dim);
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.55rem;
  color: var(--text-4); letter-spacing: 0.04em;
}
.matrix-cell.active {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
  color: var(--accent-text);
}
.matrix-footer {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-4);
}

/* ═══════════════════════════════
   THESIS
   ═══════════════════════════════ */
.thesis { padding: 80px 0; }
.thesis-card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px;
  max-width: 720px; margin: 0 auto;
  position: relative;
}
.thesis-number {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-4); letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.thesis-card h2 {
  font-family: var(--font-head); font-size: 1.45rem;
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.45; margin-bottom: 12px;
}
.thesis-card p { color: var(--text-3); font-size: 0.92rem; line-height: 1.7; }

/* ═══════════════════════════════
   FRAMEWORK
   ═══════════════════════════════ */
.framework { padding: 100px 0; }
.framework-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fw-card {
  display: flex; gap: 20px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s;
}
.fw-card:hover { border-color: var(--border-hi); }
.fw-index {
  font-family: var(--font-mono); font-size: 1.4rem;
  font-weight: 500; color: var(--accent);
  line-height: 1; flex-shrink: 0;
  opacity: 0.6;
}
.fw-content h3 {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 600; margin-bottom: 8px;
}
.fw-content p {
  color: var(--text-2); font-size: 0.85rem; line-height: 1.65;
}
.fw-meta {
  display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap;
}
.fw-tag {
  padding: 3px 10px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.65rem;
  background: var(--surface); color: var(--text-3);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════
   TOOLS
   ═══════════════════════════════ */
.tools { padding: 100px 0; background: var(--bg-raised); }
.tools-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.tool-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.tool-card-primary:hover {
  border-color: var(--accent-mid);
  transform: translateY(-2px);
}
.tool-status {
  font-family: var(--font-mono); font-size: 0.6rem;
  font-weight: 500; letter-spacing: 0.08em;
  color: var(--accent-text);
  padding: 3px 10px; border-radius: 99px;
  background: var(--accent-dim);
  align-self: flex-start;
}
.tool-status.upcoming {
  color: var(--text-4); background: var(--surface);
}
.tool-icon-wrap {
  width: 48px; height: 48px; color: var(--accent);
}
.tool-card-upcoming .tool-icon-wrap { color: var(--text-4); }
.tool-icon-wrap svg { width: 100%; height: 100%; }
.tool-card h3 {
  font-family: var(--font-head); font-size: 1.1rem;
  font-weight: 600;
}
.tool-card-upcoming h3 { color: var(--text-3); }
.tool-card p {
  color: var(--text-2); font-size: 0.85rem; line-height: 1.65;
  flex: 1;
}
.tool-card-upcoming p { color: var(--text-4); }
.tool-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--text-3);
}
.tool-meta i { margin-right: 4px; }
.tool-link {
  font-family: var(--font-head); font-size: 0.85rem;
  font-weight: 500; color: var(--accent-text);
  display: flex; align-items: center; gap: 6px;
}
.tool-link i { transition: transform 0.2s; }
.tool-card-primary:hover .tool-link i { transform: translateX(3px); }

/* ═══════════════════════════════
   LIVE DATA
   ═══════════════════════════════ */
.live-data { padding: 100px 0; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef4444; display: inline-block;
  animation: blink 1.5s infinite;
}
.data-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.data-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.data-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.04em; color: var(--text-3);
  margin-bottom: 8px;
}
.data-value {
  font-family: var(--font-head); font-size: 2.4rem;
  font-weight: 700; letter-spacing: -0.03em;
  color: var(--text);
}
.skeleton {
  display: inline-block; min-width: 48px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: 4px; color: transparent;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ═══════════════════════════════
   PROCESS
   ═══════════════════════════════ */
.process { padding: 100px 0; background: var(--bg-raised); }
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  max-width: 560px; margin: 0 auto;
}
.process-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0;
}
.process-num {
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 500; color: var(--accent);
  flex-shrink: 0; padding-top: 2px;
  opacity: 0.7;
}
.process-content h3 {
  font-family: var(--font-head); font-size: 0.95rem;
  font-weight: 600; margin-bottom: 4px;
}
.process-content p {
  color: var(--text-2); font-size: 0.85rem; line-height: 1.6;
}
.process-line {
  width: 1px; height: 20px;
  background: var(--border); margin-left: 10px;
}

/* ═══════════════════════════════
   ECOSYSTEM
   ═══════════════════════════════ */
.ecosystem { padding: 100px 0; }
.eco-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.eco-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color 0.3s;
}
.eco-card:hover { border-color: var(--border-hi); }
.eco-role {
  font-family: var(--font-head); font-size: 0.95rem;
  font-weight: 600; margin-bottom: 8px;
}
.eco-card p {
  color: var(--text-2); font-size: 0.82rem; line-height: 1.65;
}

/* ═══════════════════════════════
   CTA
   ═══════════════════════════════ */
.cta {
  padding: 120px 0; position: relative;
}
.cta-inner {
  text-align: center;
}
.cta h2 {
  font-family: var(--font-head); font-size: 2.2rem;
  font-weight: 700; letter-spacing: -0.03em;
  margin: 14px 0 12px; line-height: 1.2;
}
.cta p {
  color: var(--text-2); font-size: 1rem;
  margin-bottom: 32px;
}
.cta-details {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 20px; flex-wrap: wrap;
}
.cta-details span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--text-3);
}
.cta-details i { color: var(--accent); font-size: 0.75rem; }

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600;
  font-size: 0.88rem; margin-bottom: 6px;
}
.footer-desc { font-size: 0.78rem; color: var(--text-4); max-width: 300px; }
.footer-copy { font-size: 0.75rem; color: var(--text-4); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 120px 0 80px; }
  .framework-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-lead { font-size: 0.92rem; }
  .section-intro h2 { font-size: 1.6rem; }
  .thesis-card { padding: 32px 20px; }
  .thesis-card h2 { font-size: 1.2rem; }
  .cta h2 { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .eco-grid { grid-template-columns: 1fr; }
  .data-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .data-grid { grid-template-columns: 1fr; }
  .cta-details { flex-direction: column; align-items: center; }
  .matrix-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix-cell:last-child { display: none; }
}
