/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --bg: #070a0a;
  --bg-elevated: #0d1413;
  --bg-card: #111a18;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eef2f0;
  --text-muted: #93a19c;
  --text-faint: #55615c;
  --accent: #35c9a0; /* teal/emerald — dark blue-green premium accent */
  --accent-dim: rgba(53, 201, 160, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  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");
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 32px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 11, 0.85);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  transition: color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  max-width: none;
  padding: 128px 32px 56px;
  position: relative;
}

.hero-content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

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

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
}

.about-text p:not(.lead) {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: 24px 22px;
  transition: background 0.4s var(--ease);
}

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

.service-index {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 600;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   Featured project
   ========================================================================== */
.featured-project {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
}

.featured-project-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.project-icon-wrap {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  filter: blur(6px);
  animation: iconGlowPulse 5s ease-in-out infinite;
}

@keyframes iconGlowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.project-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  object-fit: cover;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  animation: iconFloat 6s ease-in-out infinite;
}

.project-icon.nq-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d1413, #131b19);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.featured-project-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-project-heading h3 {
  font-size: 24px;
  font-weight: 600;
}

.status-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 7px 14px;
  white-space: nowrap;
}

.status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.featured-project-content {
  max-width: 680px;
}

.featured-lead {
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.55;
}

.featured-project-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.tech-note {
  font-size: 12.5px !important;
  font-style: italic;
  color: var(--text-faint) !important;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 14px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.tag-list li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Interactive tag list (click-to-explain)
   ========================================================================== */
.tag-list-wrap .tag-list li {
  padding: 0;
  border: none;
}

.tag-item {
  font: inherit;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.tag-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-item.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.tag-detail {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
}

.tag-detail-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  transition: color 0.3s var(--ease);
}

.tag-detail.open .tag-detail-text {
  color: var(--text-muted);
}

/* ==========================================================================
   App screenshot gallery
   ========================================================================== */
.app-gallery {
  position: relative;
  margin: 4px -8px -8px;
}

.app-gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 8px 8px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.app-gallery-track::-webkit-scrollbar {
  height: 6px;
}

.app-gallery-track::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 10px;
}

.phone-shot {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transition: transform 0.4s var(--ease);
}

.phone-shot:hover {
  transform: translateY(-6px);
}

.phone-shot img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

.phone-shot figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   NQ Dashboard mockup visual
   ========================================================================== */
.dashboard-mockup {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(165deg, #0a0f0c, #050807);
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-mockup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.dashboard-mockup-badge {
  white-space: nowrap;
}

.dashboard-mockup-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 201, 160, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(53, 201, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 201, 160, 0); }
}

.dashboard-mockup-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #070a0a;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
}

.dashboard-chart {
  position: relative;
  height: 160px;
  margin-bottom: 20px;
}

.dashboard-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-area {
  fill: url(#chartGradient);
  stroke: none;
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(53, 201, 160, 0.5));
  transition: filter 0.25s var(--ease);
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin: -12px 0 20px;
  font-size: 10px;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Hover crosshair + tooltip */
.chart-crosshair {
  stroke: var(--text-faint);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
}

.chart-crosshair-dot {
  fill: var(--accent);
  stroke: var(--bg-elevated);
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
}

.dashboard-chart.chart-hovering .chart-crosshair,
.dashboard-chart.chart-hovering .chart-crosshair-dot {
  opacity: 1;
}

.dashboard-chart.chart-hovering .chart-line {
  filter: drop-shadow(0 0 9px rgba(53, 201, 160, 0.75));
}

.chart-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -120%);
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #0d1615;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6);
  font-family: "SF Mono", "Menlo", monospace;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
  z-index: 5;
}

.chart-tooltip.visible {
  opacity: 1;
}

.chart-tooltip strong {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.chart-tooltip span {
  font-size: 10px;
  color: var(--text-faint);
}

.chart-tooltip.align-right { transform: translate(-88%, -120%); }
.chart-tooltip.align-left { transform: translate(-12%, -120%); }

.bias-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bias-chip {
  flex: 1;
  min-width: 42px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 4px;
}

.bias-chip span {
  display: block;
  font-weight: 700;
  margin-top: 3px;
  font-size: 12px;
}

.bias-chip.up span { color: var(--accent); }
.bias-chip.down span { color: #e26565; }

.watchlist-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.watchlist-chip {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.watchlist-chip .wdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   Visual stages (tag-driven swappable mockup content)
   ========================================================================== */
.visual-stage {
  display: none;
}

.visual-stage.active {
  display: block;
  animation: visualFadeIn 0.4s var(--ease);
}

@keyframes visualFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mini table (MTF bias / orderflow / killzones / FVG / liquidity) */
.mini-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.mini-table-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  transition: background 0.25s var(--ease);
}

.mini-table-row:not(.head):hover {
  background: rgba(255, 255, 255, 0.02);
}

.mini-table-row:first-child {
  border-top: none;
}

.mini-table-row.head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--bg-elevated);
}

.mini-table-row > span:last-child {
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
}

.mini-table-row.head > span:last-child {
  font-family: inherit;
}

.mini-table-row .up { color: var(--accent); font-weight: 600; }
.mini-table-row .down { color: #e26565; font-weight: 600; }

/* Confidence gauge */
.gauge-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
}

.gauge {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

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

.gauge-label strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1;
}

.gauge-label strong span {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 1px;
}

.gauge-label > span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: inline-block;
}

.gauge-arc-end {
  fill: var(--accent);
  stroke: var(--bg-elevated);
  stroke-width: 2.5;
}

/* Stat block (backtesting) */
.stat-block-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-block-row strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.progress-bar {
  height: 8px;
  border-radius: 100px;
  background: rgba(53, 201, 160, 0.14);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(53, 201, 160, 0.6), var(--accent));
  border-radius: 100px;
  box-shadow: 0 0 8px rgba(53, 201, 160, 0.5);
  transition: width 0.6s var(--ease);
}

.stat-block-note {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.5;
}

/* Alerts */
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.alert-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.alert-item-text strong {
  font-size: 12.5px;
  color: var(--text);
}

.alert-item-text span {
  font-size: 12px;
  color: var(--text-faint);
}

.alert-item time {
  font-size: 11px;
  color: var(--text-faint);
  font-family: "SF Mono", "Menlo", monospace;
}

/* Report card */
.report-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.report-card-date {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-faint);
  font-family: "SF Mono", "Menlo", monospace;
}

.report-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 7px 0;
  border-top: 1px solid var(--border);
}

.report-card-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.report-card-export {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 5px 12px;
}

/* Watchlist — symbol + inline sparkline + change */
.watchlist-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.watchlist-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: #05080a;
  font-size: 12.5px;
  color: var(--text-muted);
  transition: background 0.25s var(--ease);
}

.watchlist-row-item:hover {
  background: var(--bg-elevated);
}

.wl-symbol {
  flex: 0 0 28px;
  font-weight: 600;
  color: var(--text);
}

.wl-spark {
  flex: 1;
  height: 20px;
  min-width: 0;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wl-spark.up { stroke: var(--accent); }
.wl-spark.down { stroke: #e26565; }

.wl-change {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.wl-change.up { color: var(--accent); }
.wl-change.down { color: #e26565; }

/* Settings preview */
.settings-preview {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-muted);
  background: #05080a;
}

.toggle-on {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--accent);
  position: relative;
}

.toggle-on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 5px;
  height: 8px;
  border: solid #070a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Highlighted screenshot (tag → gallery link) */
.phone-shot.highlighted img {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-icon.ind-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d1413, #131b19);
  border: 1px solid var(--border-strong);
}

.project-icon.zirkel-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d1413, #131b19);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}

/* ==========================================================================
   Project link (external CTA, e.g. joint projects)
   ========================================================================== */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.project-link-arrow {
  transition: transform 0.3s var(--ease);
}

.project-link:hover .project-link-arrow {
  transform: translateX(6px);
}

/* ==========================================================================
   ZIRKEL 51 brand card — exact tokens/fonts pulled from the zirkel51.com
   source (app/globals.css + layout.tsx): Bodoni Moda + IBM Plex Mono on
   --ink/--gilt, not this site's own teal/Inter palette.
   ========================================================================== */
.zirkel-card {
  --zk-ink: #0d1311;
  --zk-coal: #16201b;
  --zk-bone: #eae3d3;
  --zk-dim: #948c7a;
  --zk-gilt: #b3945a;
  --zk-line: rgba(234, 227, 211, 0.16);
  --zk-serif: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --zk-mono: "IBM Plex Mono", "Consolas", "SF Mono", monospace;

  position: relative;
  padding: 40px 28px 0;
  border: 1px solid var(--zk-line);
  border-radius: 14px;
  background: var(--zk-ink);
  overflow: hidden;
  text-align: center;
}

.zirkel-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 65% at 50% -10%, rgba(179, 148, 90, 0.14), transparent 65%);
  pointer-events: none;
}

.zirkel-card-eyebrow {
  position: relative;
  font-family: var(--zk-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--zk-gilt);
  margin-bottom: 18px;
}

.zirkel-card-wordmark {
  position: relative;
  font-family: var(--zk-serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--zk-bone);
  margin-bottom: 20px;
}

.zirkel-card-wordmark em {
  color: var(--zk-gilt);
  font-style: italic;
  font-weight: 600;
}

.zirkel-card-claim {
  position: relative;
  font-family: var(--zk-serif);
  font-weight: 600;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.4;
  max-width: 30em;
  margin: 0 auto 24px;
  color: var(--zk-bone);
}

.zirkel-card-claim em {
  color: var(--zk-dim);
  font-style: italic;
}

.zirkel-card-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.zirkel-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--zk-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zk-gilt);
  border: 1px solid var(--zk-gilt);
  padding: 13px 20px;
  transition: background 0.25s, color 0.25s;
}

.zirkel-card-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--zk-gilt);
  flex-shrink: 0;
}

.zirkel-card-pill:hover {
  background: var(--zk-gilt);
  color: var(--zk-ink);
}

.zirkel-card-pill:hover::before {
  background: var(--zk-ink);
}

.zirkel-card-link {
  font-family: var(--zk-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--zk-dim);
  border-bottom: 1px solid var(--zk-line);
  padding-bottom: 4px;
  transition: color 0.25s, border-color 0.25s;
}

.zirkel-card-link:hover {
  color: var(--zk-bone);
  border-color: var(--zk-gilt);
}

.zirkel-card-marquee {
  position: relative;
  border-top: 1px solid var(--zk-line);
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
}

.zirkel-card-marquee-track {
  display: inline-block;
  animation: zirkelMarquee 34s linear infinite;
}

.zirkel-card-marquee span {
  font-family: var(--zk-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--zk-dim);
  padding: 0 1.1em;
}

.zirkel-card-marquee span::after {
  content: "·";
  color: var(--zk-gilt);
  margin-left: 2.2em;
}

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

.zirkel-card-visit {
  position: relative;
  display: block;
  font-family: var(--zk-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zk-dim);
  background: var(--zk-coal);
  border-top: 1px solid var(--zk-line);
  padding: 12px;
  transition: color 0.25s, background 0.25s;
}

.zirkel-card-visit:hover {
  color: var(--zk-gilt);
  background: #1a251f;
}

.zirkel-card-visit-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.zirkel-card-visit:hover .zirkel-card-visit-arrow {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .zirkel-card-marquee-track { animation: none; }
}

/* ==========================================================================
   Chart / settings screenshot gallery (Indikatoren)
   ========================================================================== */
.chart-shot {
  flex: 0 0 auto;
  width: 340px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  transition: transform 0.4s var(--ease);
}

.chart-shot:hover {
  transform: translateY(-6px);
}

.chart-shot img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

.chart-shot figcaption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.chart-shot.wide {
  width: 420px;
}

/* ==========================================================================
   Concept panel (Pine Script — Indikator-Konzepte)
   ========================================================================== */
.concept-panel {
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(165deg, #0a0f0c, #050807);
  padding: 24px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.concept-panel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.concept-panel-mark {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #070a0a;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 100px;
  flex-shrink: 0;
}

.concept-panel-title {
  font-size: 13px;
  color: var(--text-muted);
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.concept-chip {
  background: #05080a;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: background 0.3s var(--ease);
}

.concept-chip:hover {
  background: var(--bg-elevated);
}

.concept-chip svg {
  color: var(--accent);
  flex-shrink: 0;
}

.concept-chip span {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Code preview (Pine Script — illustrative example)
   ========================================================================== */
.code-preview {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: linear-gradient(165deg, #0a0f0c, #050807);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.code-filename {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: "SF Mono", "Menlo", monospace;
}

.code-preview-wrap {
  display: flex;
}

.code-preview-lines {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 22px 20px;
  border-right: 1px solid var(--border);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  text-align: right;
  color: var(--text-faint);
  opacity: 0.5;
  user-select: none;
}

.code-preview-body {
  flex: 1;
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.code-preview-body .c-com { color: var(--text-faint); }
.code-preview-body .c-fn { color: var(--accent); }
.code-preview-body .c-str { color: #e0a951; }
.code-preview-body .c-kw { color: #6fa8ff; }
.code-preview-body .c-num { color: #e0a951; }

/* ==========================================================================
   Work
   ========================================================================== */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.4s var(--ease);
}

.work-item:last-child {
  border-bottom: 1px solid var(--border);
}

.work-item:hover {
  padding-left: 20px;
}

.work-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.work-item p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 480px;
}

.work-arrow {
  font-size: 18px;
  color: var(--text-faint);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.work-item:hover .work-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-email {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  transition: opacity 0.3s var(--ease);
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-socials {
  display: flex;
  gap: 20px;
}

.contact-socials a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.3s var(--ease);
}

.contact-socials a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 12px;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 128px 32px 96px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.legal-back:hover {
  color: var(--accent);
}

.legal-main h1 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 40px;
}

.legal-main h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal-main h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-muted);
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-main ul {
  list-style: disc;
  padding-left: 20px;
}

.legal-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-main .todo {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: italic;
  color: #e0a951;
}

/* ==========================================================================
   Back to top (+ scroll progress ring)
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), bottom 0.3s var(--ease);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body:has(.cookie-banner.visible) .back-to-top {
  bottom: 100px;
}

.back-to-top:hover {
  border-color: var(--accent);
}

.back-to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.back-to-top-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-arrow {
  position: relative;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.back-to-top:hover .back-to-top-arrow {
  color: var(--accent);
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 20px 22px;
  z-index: 800;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
}

.cookie-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #070a0a;
  transition: opacity 0.3s var(--ease);
}

.cookie-btn:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }


  .services-grid { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; gap: 24px; }

  section { padding: 48px 24px; }
  .hero { padding: 112px 24px 40px; }

  .featured-project { padding: 28px 20px; }
  .featured-project-header { flex-wrap: wrap; }
  .status-badge { margin-left: 0; order: 3; }
  .phone-shot { width: 150px; }
  .chart-shot { width: 260px; }
  .chart-shot.wide { width: 280px; }
  .bias-row { gap: 6px; }
  .watchlist-row { gap: 12px; }
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .code-preview-body { font-size: 11.5px; }
}

@media (max-width: 860px) {
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a {
    padding: 20px 32px;
    border-top: 1px solid var(--border);
  }
}
