@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --hyp-navy: #050814;
  --hyp-cyan: #34D5FF;
  --hyp-cyan-bright: #4ADAFF;
  --hyp-cyan-deep: #1FB6E0;
  --hyp-slate: #141824;
  --hyp-grey: #4F5665;
  --hyp-cloud: #E3E7F0;
  --hyp-white: #FFFFFF;
  --hyp-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --hyp-font-body: 'Inter', 'SF Pro Display', system-ui, sans-serif;
  
  --surface-1: #0A0E1A;
  --surface-2: #12182B;
  --surface-hover: #1A223A;
  
  --border-subtle: rgba(52, 213, 255, 0.15);
  --border-strong: rgba(52, 213, 255, 0.4);
  
  --text-primary: #FFFFFF;
  --text-secondary: #9fb2c0;
  --text-muted: #4F5665;
}

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

body {
  font-family: var(--hyp-font-body);
  background-color: var(--hyp-navy);
  background-image: 
    linear-gradient(rgba(52, 213, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 213, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--hyp-cyan-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 8, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--hyp-font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-link img {
  height: 28px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--hyp-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-link:hover {
  color: var(--hyp-cyan);
}

.btn-app {
  background: transparent;
  border: 1px solid var(--hyp-cyan);
  color: var(--hyp-cyan);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  font-family: var(--hyp-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
}

.btn-app:hover {
  background: rgba(52, 213, 255, 0.1);
  box-shadow: 0 0 16px rgba(52, 213, 255, 0.2);
}

.main-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem 8rem;
}

.hero-section {
  margin-bottom: 5rem;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--hyp-cyan);
}

.tagline {
  font-family: var(--hyp-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--hyp-cyan);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  display: block;
}

h1 {
  font-family: var(--hyp-font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(52, 213, 255, 0.15);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 700px;
}

.public-system-flow {
  margin: 0 0 5rem;
}

.public-system-flow > h2 {
  margin: 0 0 2rem;
}

.system-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.system-flow-step {
  min-height: 250px;
  padding: 1.75rem;
  background: linear-gradient(145deg, rgba(52, 213, 255, 0.07), rgba(10, 14, 26, 0.96) 56%);
  border: 1px solid var(--border-subtle);
}

.system-flow-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--hyp-cyan);
  font-family: var(--hyp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.system-flow-step h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.system-flow-step p {
  margin: 0;
  font-size: 0.92rem;
}

.public-section {
  margin-top: 5rem;
}

.public-section > h2 {
  margin-top: 0;
}

.fatigue-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

.fatigue-type-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 104px;
  padding: 1.5rem;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
}

.fatigue-type-card:last-child {
  grid-column: 1 / -1;
}

.fatigue-type-card span {
  flex: 0 0 auto;
  color: var(--hyp-cyan);
  font-family: var(--hyp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.fatigue-type-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.recovery-action-section {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(52, 213, 255, 0.08), rgba(10, 14, 26, 0.98) 62%);
  border: 1px solid var(--border-strong);
}

.recovery-action-section .tagline {
  margin-bottom: 1rem;
}

.recovery-action-section h2 {
  margin-bottom: 1.25rem;
}

.recovery-action-section .lead {
  max-width: none;
  font-size: 1.08rem;
}

.recovery-parameter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.recovery-parameter-grid article {
  padding: 1.35rem;
  background: rgba(5, 8, 20, 0.72);
  border-top: 2px solid var(--hyp-cyan);
}

.recovery-parameter-grid span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-family: var(--hyp-font-display);
  font-weight: 700;
}

.recovery-parameter-grid p,
.recovery-action-section > p:last-child {
  margin: 0;
  font-size: 0.9rem;
}

.bri-context-section {
  padding-left: 1.5rem;
  border-left: 2px solid rgba(159, 178, 192, 0.35);
}

.bri-context-section h2 {
  font-size: 1.65rem;
}

h2 {
  font-family: var(--hyp-font-display);
  font-size: 2.25rem;
  margin: 5rem 0 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h3 {
  font-family: var(--hyp-font-display);
  font-size: 1.25rem;
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.75rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 740px;
}

ul, ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

li {
  margin-bottom: 0.75rem;
}

.article-card {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hyp-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-card h2 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.article-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

blockquote {
  border-left: 2px solid var(--hyp-cyan);
  background: linear-gradient(90deg, rgba(52, 213, 255, 0.05) 0%, transparent 100%);
  padding: 2rem;
  margin: 3rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.reference-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}

.reference-list {
  list-style: none;
  padding: 0;
  font-size: 0.875rem;
}

.reference-list li {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  background: var(--surface-1);
}

.site-footer p {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
  .main-content {
    padding: 3rem 1.5rem 5rem;
  }
  .article-card {
    padding: 1.5rem;
  }
  .system-flow-grid,
  .recovery-parameter-grid {
    grid-template-columns: 1fr;
  }
  .system-flow-step {
    min-height: 0;
  }
  .fatigue-type-grid {
    grid-template-columns: 1fr;
  }
  .fatigue-type-card:last-child {
    grid-column: auto;
  }
  .recovery-action-section {
    padding: 1.5rem;
  }
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.data-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  position: relative;
}

.data-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: var(--hyp-cyan);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.data-card:hover::after {
  opacity: 1;
}

.data-card-title {
  font-family: var(--hyp-font-display);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.data-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

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

.data-card--more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 152px;
  border-style: dashed;
  background: linear-gradient(135deg, rgba(52, 213, 255, 0.07), rgba(8, 15, 35, 0.96));
  text-align: center;
}

.data-card--more .data-card-title {
  margin: 0;
  color: var(--hyp-cyan);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

@media (max-width: 768px) {
  .smartphone-signal-grid {
    grid-template-columns: 1fr;
  }
}

.highlight {
  color: var(--hyp-cyan);
}
