:root {
  /* Sentinel Palette (Light) */
  --bg-main: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-secondary: #F8F9FA;
  --text-main: #0F172A;
  --text-secondary: #475569;
  --accent-emerald: #064E3B;
  --accent-silver: #E5E7EB;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --neon-glow: rgba(0, 0, 0, 0.05);
  
  /* Fonts */
  --font-sharp: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

#grid-layer {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--accent-silver) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-silver) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

#noise {
  position: fixed;
  inset: 0;
  background-image: url('https://grain-y.com/images/grain-y.png');
  opacity: 0.03;
  pointer-events: none;
  z-index: 10000;
}

.monospace { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* Market Ticker */
.market-ticker-container {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--bg-dark);
  color: white; /* Forced white for contrast against dark header */
  padding: 0.5rem 0;
  z-index: 2000;
  overflow: hidden;
  border-bottom: 1px solid var(--accent-silver);
  border-radius: 0; /* Exception for full width bars */
}

.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.ticker-scroll span {
  padding-right: 4rem;
  font-size: 0.6rem;
  opacity: 0.8;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

/* Navigation */
.console-nav {
  position: fixed;
  top: 40px;
  width: 100%;
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-family: var(--font-sharp);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--text-main);
}

.telemetry-badge {
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

.status-beacon { width: 6px; height: 6px; background: #10B981; margin-right: 12px; }

/* Hero Section */
.sentinel-hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5% 2rem 5%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.main-title {
  font-family: var(--font-sharp);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 1.5rem 0 1.25rem 0; /* Tighter margin */
  text-transform: uppercase;
}

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

.sub-description {
  font-size: clamp(0.95rem, 1.15vw, 1.1rem); /* Slighly smaller */
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2rem; /* Tighter margin */
}

/* Pathogen Node Grid */
.pathogen-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.pathogen-node {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pathogen-node::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent-emerald);
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.4s;
}

.pathogen-node:hover {
  background: var(--bg-secondary);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 20px var(--neon-glow);
}

.pathogen-node.no-click {
  cursor: default !important;
}

.pathogen-node.no-click:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--glass-border);
}

.pathogen-node.no-click:hover::after {
  opacity: 0;
}

.pathogen-node:hover::after {
  opacity: 0.5;
}

.p-tag {
  background: transparent;
  color: var(--text-main);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.poly-icon, .p-tag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.p-info { 
  display: flex; 
  flex-direction: column; 
  overflow: hidden;
}
.p-name { 
  font-weight: 600; 
  font-size: 0.85rem; 
  white-space: nowrap; 
  text-overflow: ellipsis; 
  overflow: hidden; 
}
.p-status { font-size: 0.55rem; color: var(--accent-emerald); letter-spacing: 0.1em; margin-top: 0.2rem; }

/* Terminal */
.glass-panel-sharp {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 480px; /* Fixed height for consistency and layout health */
}

.panel-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.terminal-pulse-alert {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
}

.pulse-line {
  font-size: 0.6rem;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.label-emerald { color: var(--accent-emerald); font-weight: 700; }

.log-stream-sharp {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.6;
  opacity: 0.7;
  overflow: hidden;
  max-height: 150px;
}

.waitlist-inline {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.waitlist-input-group {
  display: flex;
  width: 100%;
}

.input-sharp-small {
  flex: 1;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  outline: none;
  border-radius: 6px 0 0 6px;
  backdrop-filter: blur(5px);
}
.input-sharp-small::placeholder {
  color: var(--text-secondary);
}

.btn-primary-sharp-small {
  background: var(--text-main);
  color: var(--bg-main);
  padding: 1rem 2rem;
  font-family: var(--font-sharp);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 6px 6px 0;
  transition: all 0.3s;
}

.btn-primary-sharp-small:hover { 
  background: var(--accent-emerald); 
  color: var(--bg-dark);
}

/* Waitlist feedback message */
.waitlist-feedback {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-height: 1.4rem;
    margin-top: 0.6rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.waitlist-feedback:not(:empty) { opacity: 1; }
.waitlist-feedback--success { color: #10B981; }
.waitlist-feedback--warn    { color: #F59E0B; }
.waitlist-feedback--error   { color: #EF4444; }

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; gap: 4rem; }
  .sentinel-hero { padding-top: 8rem; }
  .pathogen-grid { grid-template-columns: 1fr; }
}

footer { padding: 4rem 5%; }
