/*
 * Dark Matter Website Theme
 * Space-themed, TUI-inspired, dark by default
 * Enhanced by The Aesthete & The Wanderer
 *
 * Palette:
 *   - Background: #0d1117 (deep space)
 *   - Surface: #161b22 (panels)
 *   - Border: #30363d (subtle edges)
 *   - Text: #e6edf3 (starlight)
 *   - Muted: #8b949e (distant stars)
 *   - Cyan: #58a6ff (primary, links)
 *   - Magenta: #f778ba (accent, brand)
 *   - Yellow: #d29922 (highlights, warnings)
 *   - Green: #3fb950 (success)
 *   - Red: #f85149 (errors)
 */

:root {
  --dm-bg: #0d1117;
  --dm-surface: #161b22;
  --dm-border: #30363d;
  --dm-text: #e6edf3;
  --dm-muted: #8b949e;
  --dm-cyan: #58a6ff;
  --dm-magenta: #f778ba;
  --dm-yellow: #d29922;
  --dm-green: #3fb950;
  --dm-red: #f85149;

  /* Spacing */
  --dm-space-xs: 0.25rem;
  --dm-space-sm: 0.5rem;
  --dm-space-md: 1rem;
  --dm-space-lg: 2rem;
  --dm-space-xl: 4rem;

  /* Typography - Star of Voice */
  --dm-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
  --dm-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dm-bg);
  color: var(--dm-text);
  font-family: var(--dm-font-sans);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   Star of Navigation - Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dm-border);
  padding: var(--dm-space-sm) var(--dm-space-lg);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--dm-space-md);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--dm-space-sm);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-brand:hover {
  text-decoration: none;
}

.header-brand .logo-icon {
  font-size: 1.25rem;
  -webkit-text-fill-color: initial;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--dm-space-lg);
}

.header-nav a {
  color: var(--dm-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--dm-cyan);
  text-decoration: none;
}

.header-nav a.active {
  color: var(--dm-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--dm-space-sm);
}

.header-actions .btn {
  margin: 0;
  padding: var(--dm-space-xs) var(--dm-space-md);
  font-size: 0.875rem;
}

/* Mobile header */
.header-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dm-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--dm-space-xs);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .header-menu-toggle {
    display: block;
  }

  .header.menu-open .header-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
    padding: var(--dm-space-md);
    gap: var(--dm-space-md);
  }

  .header.menu-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 120px); /* Below nav links */
    left: 0;
    right: 0;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
    padding: var(--dm-space-md);
  }

  .header.menu-open .header-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--dm-space-lg);
}

/* ==========================================================================
   Star of Voice - Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--dm-text);
  font-weight: 600;
  margin-top: var(--dm-space-xl);
  margin-bottom: var(--dm-space-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid var(--dm-magenta);
  padding-bottom: var(--dm-space-sm);
}

h2 {
  font-size: 1.75rem;
  color: var(--dm-cyan);
}

h3 {
  font-size: 1.25rem;
  color: var(--dm-text);
}

p {
  margin-bottom: var(--dm-space-md);
  line-height: 1.8;
}

a {
  color: var(--dm-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--dm-magenta);
  text-decoration: underline;
}

/* Code blocks - Keep mono font */
code {
  font-family: var(--dm-font-mono);
  background-color: var(--dm-surface);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background-color: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  padding: var(--dm-space-md);
  overflow-x: auto;
  margin: var(--dm-space-lg) 0;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ==========================================================================
   Star of Cosmos - Starfield Background
   ========================================================================== */

.hero {
  text-align: center;
  padding: var(--dm-space-xl) 0;
  margin-bottom: var(--dm-space-xl);
  position: relative;
  overflow: hidden;
}

/* Starfield layers */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* Dense small stars */
.hero::before {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 50%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 10%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 60%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 30%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 80%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 95%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 15%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 5%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 55%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 75%, rgba(255,255,255,0.6) 0%, transparent 100%);
  opacity: 0.6;
}

/* Larger accent stars with color */
.hero::after {
  background-image:
    radial-gradient(2px 2px at 15% 30%, var(--dm-cyan) 0%, transparent 100%),
    radial-gradient(2px 2px at 85% 20%, var(--dm-magenta) 0%, transparent 100%),
    radial-gradient(3px 3px at 50% 10%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(2px 2px at 25% 70%, var(--dm-cyan) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 80%, var(--dm-magenta) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 90%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 60% 85%, var(--dm-cyan) 0%, transparent 100%);
  opacity: 0.8;
}

/* Fade at edges */
.hero {
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* ==========================================================================
   Star of Identity - Logomark
   ========================================================================== */

.logomark {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--dm-space-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logomark::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--dm-surface) 0%, var(--dm-bg) 100%);
  box-shadow:
    0 0 40px rgba(88, 166, 255, 0.3),
    0 0 80px rgba(247, 120, 186, 0.2),
    inset 0 0 20px rgba(0,0,0,0.5);
  border: 1px solid var(--dm-border);
}

/* Orbital ring */
.logomark::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 20px;
  border: 1px solid var(--dm-cyan);
  border-radius: 50%;
  transform: rotateX(70deg) rotateZ(-20deg);
  opacity: 0.6;
}

.hero h1 {
  font-size: 3.5rem;
  border: none;
  margin-bottom: var(--dm-space-sm);
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--dm-muted);
  margin-bottom: var(--dm-space-lg);
  position: relative;
  z-index: 1;
}

.hero .tagline strong {
  color: var(--dm-text);
}

/* ==========================================================================
   Star of Radiance - Glowing Terminal
   ========================================================================== */

.terminal-box {
  background-color: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  padding: var(--dm-space-md) var(--dm-space-lg);
  font-family: var(--dm-font-mono);
  font-size: 0.9rem;
  text-align: left;
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: var(--dm-space-lg) 0;
  position: relative;
  z-index: 1;

  /* The glow */
  box-shadow:
    0 0 20px rgba(88, 166, 255, 0.15),
    0 0 40px rgba(247, 120, 186, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.3);

  /* Subtle pulse animation */
  animation: terminal-glow 4s ease-in-out infinite;
}

/* Copy button */
.terminal-box .copy-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  outline: none;
  color: var(--dm-muted);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, color 0.2s;
}

.terminal-box:hover .copy-btn {
  opacity: 1;
}

.terminal-box .copy-btn:hover {
  color: var(--dm-cyan);
}

.terminal-box .copy-btn.copied {
  opacity: 1;
  color: var(--dm-green);
}

.terminal-box .copy-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

@keyframes terminal-glow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(88, 166, 255, 0.15),
      0 0 40px rgba(247, 120, 186, 0.1),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 30px rgba(88, 166, 255, 0.25),
      0 0 60px rgba(247, 120, 186, 0.15),
      0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

/* Scan line effect */
.terminal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  border-radius: 8px;
}

.terminal-box .prompt {
  color: var(--dm-green);
  user-select: none;  /* Don't copy the $ when selecting */
  -webkit-user-select: none;
}

.terminal-box .command {
  color: var(--dm-cyan);
}

.terminal-box .output {
  color: var(--dm-muted);
}

.terminal-box .success {
  color: var(--dm-magenta);
}

/* ==========================================================================
   Star of Motion - Typing Animation
   ========================================================================== */

.typing-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.typing-line.line-1 {
  width: 0;
  animation: typing-1 0.8s steps(22) 0.5s forwards;
}

.typing-line.line-2 {
  width: 0;
  opacity: 0;
  animation:
    typing-2 1.2s steps(35) 1.5s forwards,
    fade-in 0.1s 1.5s forwards;
}

.typing-line.line-3 {
  width: 0;
  opacity: 0;
  animation:
    typing-3 0.6s steps(18) 3s forwards,
    fade-in 0.1s 3s forwards;
}

@keyframes typing-1 {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes typing-2 {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes typing-3 {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Blinking cursor */
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--dm-cyan);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ==========================================================================
   Star of Breath - Section Dividers
   ========================================================================== */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--dm-space-xl) 0;
  gap: var(--dm-space-md);
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dm-border), transparent);
}

.divider-star {
  color: var(--dm-muted);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Hide plain hr, use .divider instead */
hr {
  border: none;
  margin: 0;
  padding: 0;
  height: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--dm-space-sm) var(--dm-space-lg);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  margin: var(--dm-space-sm);
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
  color: var(--dm-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 166, 255, 0.4);
  text-decoration: none;
  color: var(--dm-bg);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--dm-border);
  color: var(--dm-text);
}

.btn-secondary:hover {
  border-color: var(--dm-cyan);
  color: var(--dm-cyan);
  text-decoration: none;
}

/* Feature cards / sections */
.section {
  padding: var(--dm-space-xl) 0;
}

/* Lists */
ul, ol {
  margin-bottom: var(--dm-space-md);
  padding-left: var(--dm-space-lg);
}

li {
  margin-bottom: var(--dm-space-sm);
  line-height: 1.7;
}

/* Checkmark lists */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75em;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--dm-green);
  font-weight: bold;
}

/* Roadmap / Coming soon lists */
.roadmap {
  list-style: none;
  padding-left: 0;
}

.roadmap li {
  position: relative;
  padding-left: 1.75em;
}

.roadmap li::before {
  content: "◦";
  position: absolute;
  left: 0;
  color: var(--dm-yellow);
}

/* ==========================================================================
   Star of Invitation - Callout Boxes (Warmer)
   ========================================================================== */

.callout {
  background-color: var(--dm-surface);
  border-left: 4px solid var(--dm-cyan);
  padding: var(--dm-space-md) var(--dm-space-lg);
  margin: var(--dm-space-lg) 0;
  border-radius: 0 8px 8px 0;
}

.callout.warning {
  border-left-color: var(--dm-yellow);
  background: linear-gradient(90deg, rgba(210, 153, 34, 0.05), transparent);
}

.callout.partnership {
  border-left-color: var(--dm-magenta);
  background: linear-gradient(90deg, rgba(247, 120, 186, 0.05), transparent);
}

.callout.success {
  border-left-color: var(--dm-green);
}

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

/* Footer */
.footer {
  text-align: center;
  padding: var(--dm-space-xl) 0;
  color: var(--dm-muted);
  font-size: 0.875rem;
}

.footer a {
  color: var(--dm-muted);
}

.footer a:hover {
  color: var(--dm-cyan);
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--dm-space-xl) 0;
  position: relative;
}

.cta-section p {
  font-size: 1.35rem;
  color: var(--dm-muted);
  margin-bottom: var(--dm-space-md);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: var(--dm-space-md);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .logomark {
    width: 60px;
    height: 60px;
  }

  .logomark::before {
    width: 45px;
    height: 45px;
  }

  .logomark::after {
    width: 60px;
    height: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  pre {
    font-size: 0.8rem;
  }

  .terminal-box {
    font-size: 0.8rem;
    padding: var(--dm-space-sm) var(--dm-space-md);
  }
}

/* Syntax highlighting - GitHub dark style */
.highlight .c, .highlight .c1, .highlight .cm { color: var(--dm-muted); }
.highlight .k, .highlight .kd, .highlight .kn { color: var(--dm-magenta); }
.highlight .s, .highlight .s1, .highlight .s2 { color: #a5d6ff; }
.highlight .nf, .highlight .nb { color: #d2a8ff; }
.highlight .nc { color: #f0883e; }
.highlight .mi, .highlight .mf { color: #a5d6ff; }
.highlight .o, .highlight .p { color: var(--dm-text); }

/* ==========================================================================
   Light Mode
   ========================================================================== */

@media (prefers-color-scheme: light) {
  :root {
    --dm-bg: #ffffff;
    --dm-surface: #f6f8fa;
    --dm-border: #d0d7de;
    --dm-text: #1f2328;
    --dm-muted: #656d76;
    --dm-cyan: #0969da;
    --dm-magenta: #bf3989;
    --dm-yellow: #9a6700;
    --dm-green: #1a7f37;
    --dm-red: #cf222e;
  }

  .hero::before,
  .hero::after {
    opacity: 0.3;
  }

  .hero h1 {
    background: linear-gradient(135deg, var(--dm-cyan), var(--dm-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .btn-primary {
    color: #ffffff;
  }

  .btn-primary:hover {
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
  }

  .terminal-box {
    box-shadow:
      0 0 20px rgba(9, 105, 218, 0.1),
      0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .logomark::before {
    background: radial-gradient(circle at 30% 30%, var(--dm-surface) 0%, #e5e5e5 100%);
    box-shadow:
      0 0 30px rgba(9, 105, 218, 0.2),
      0 0 60px rgba(191, 57, 137, 0.1);
  }

  .highlight .c, .highlight .c1, .highlight .cm { color: #6e7781; }
  .highlight .k, .highlight .kd, .highlight .kn { color: #cf222e; }
  .highlight .s, .highlight .s1, .highlight .s2 { color: #0a3069; }
  .highlight .nf, .highlight .nb { color: #8250df; }
  .highlight .nc { color: #953800; }
  .highlight .mi, .highlight .mf { color: #0550ae; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--dm-cyan);
  outline-offset: 2px;
}

.btn-secondary {
  border-width: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--dm-cyan);
  color: var(--dm-bg);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Respect reduced motion */
@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;
  }

  .btn-primary:hover {
    transform: none;
  }

  .typing-line {
    width: 100% !important;
    opacity: 1 !important;
  }

  .cursor {
    display: none;
  }
}

/* ==========================================================================
   The Belief - Manifesto Callout
   ========================================================================== */

.callout.manifesto {
  border-left-color: var(--dm-cyan);
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.05), transparent);
  font-size: 1.1rem;
  text-align: center;
  border-left: none;
  border-top: 1px solid var(--dm-cyan);
  border-bottom: 1px solid var(--dm-cyan);
  border-radius: 0;
  padding: var(--dm-space-lg);
}

/* ==========================================================================
   The Proof - TUI Showcase
   ========================================================================== */

.terminal-box.tui-showcase {
  display: block;
  max-width: 500px;
  margin: var(--dm-space-lg) auto;
  line-height: 1.4;
  animation: none;
  box-shadow:
    0 0 30px rgba(88, 166, 255, 0.2),
    0 0 60px rgba(247, 120, 186, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   The Invitation - Contact Section
   ========================================================================== */

.contact-section {
  text-align: center;
  padding: var(--dm-space-lg) 0;
  margin: var(--dm-space-lg) 0;
}

.contact-section p {
  margin-bottom: var(--dm-space-sm);
}

.contact-email {
  font-size: 1.25rem;
}

.contact-email a {
  color: var(--dm-magenta);
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-email a:hover {
  color: var(--dm-cyan);
  text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.contact-note {
  color: var(--dm-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ==========================================================================
   The Horizon - Visual Roadmap
   ========================================================================== */

.horizon-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--dm-space-sm);
  margin: var(--dm-space-xl) 0;
  padding: var(--dm-space-lg);
  font-family: var(--dm-font-mono);
  font-size: 0.9rem;
}

.horizon-item {
  padding: var(--dm-space-sm) var(--dm-space-md);
  border-radius: 4px;
  border: 1px solid var(--dm-border);
  background: var(--dm-surface);
  transition: all 0.2s ease;
}

.horizon-item.horizon-now {
  border-color: var(--dm-green);
  color: var(--dm-green);
  box-shadow: 0 0 15px rgba(63, 185, 80, 0.3);
}

.horizon-item.horizon-next {
  border-color: var(--dm-cyan);
  color: var(--dm-cyan);
  opacity: 0.8;
}

.horizon-item.horizon-future {
  border-color: var(--dm-magenta);
  color: var(--dm-magenta);
  opacity: 0.6;
}

.horizon-arrow {
  color: var(--dm-muted);
  font-size: 1.25rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .horizon-visual {
    flex-direction: column;
    gap: var(--dm-space-md);
  }

  .horizon-arrow {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   Star of Value - Feature Grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dm-space-lg);
  margin: var(--dm-space-xl) 0;
  position: relative;
  z-index: 1;
}

.feature-card {
  text-align: center;
  padding: var(--dm-space-lg);
  background: var(--dm-surface);
  border: 1px solid var(--dm-border);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(88, 166, 255, 0.15);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: var(--dm-space-sm);
  display: block;
}

.feature-card h3 {
  margin: 0 0 var(--dm-space-sm);
  font-size: 1rem;
  color: var(--dm-text);
}

.feature-card p {
  color: var(--dm-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: var(--dm-space-md);
  }
}

/* Hero CTA button */
.hero-cta {
  margin-top: var(--dm-space-lg);
  position: relative;
  z-index: 1;
}

.hero-cta .btn {
  font-size: 1.1rem;
  padding: var(--dm-space-md) var(--dm-space-xl);
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .hero::before,
  .hero::after,
  .logomark {
    display: none;
  }

  .hero h1 {
    background: none;
    -webkit-text-fill-color: black;
    color: black;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid black;
    background: white;
    color: black;
  }

  pre, code {
    background: #f0f0f0;
    border: 1px solid #ccc;
  }
}
