/* =========================================
   FeronOS Design System
   ========================================= */

:root {
  --bg: #0c0c14;
  --bg-2: #10101c;
  --bg-3: #14141f;
  --fg: #e8e8f0;
  --fg-muted: #8a8aa0;
  --accent: #00e5c3;
  --accent-dim: rgba(0, 229, 195, 0.12);
  --accent-glow: rgba(0, 229, 195, 0.25);
  --critical: #ff3b3b;
  --high: #ff8c00;
  --medium: #ffd600;
  --low: #8a8aa0;
  --border: rgba(255, 255, 255, 0.06);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(12, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-head);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 80px;
  position: relative;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 229, 195, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 195, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(to left, transparent 0%, black 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 229, 195, 0.25);
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

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

.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 460px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  padding: 0 24px;
}

.stat:first-child { padding-left: 0; }

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scan Display */
.scan-display {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  font-family: 'Space Grotesk', monospace;
  position: relative;
}

.scan-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 12px 12px 0 0;
}

.scan-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}

.scan-target {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.target-id {
  color: var(--fg);
  font-weight: 600;
}

.scan-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.scan-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  animation: scan-in 0.4s ease-out both;
  animation-delay: var(--delay);
}

@keyframes scan-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.line-addr {
  color: var(--fg-muted);
  font-size: 0.75rem;
  min-width: 48px;
}

.line-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  flex: 1;
  max-width: 120px;
  position: relative;
}

.line-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--fill, 0%);
  background: var(--line-color, var(--fg-muted));
  border-radius: 2px;
}

.scan-line:nth-child(1) .line-bar { --line-color: var(--critical); --fill: 72%; }
.scan-line:nth-child(2) .line-bar { --line-color: var(--high); --fill: 48%; }
.scan-line:nth-child(3) .line-bar { --line-color: var(--critical); --fill: 83%; }
.scan-line:nth-child(4) .line-bar { --line-color: var(--medium); --fill: 31%; }
.scan-line:nth-child(5) .line-bar { --line-color: var(--high); --fill: 65%; }
.scan-line:nth-child(6) .line-bar { --line-color: var(--low); --fill: 19%; }
.scan-line:nth-child(7) .line-bar { --line-color: var(--high); --fill: 55%; }
.scan-line:nth-child(8) .line-bar { --line-color: var(--critical); --fill: 78%; }

.line-val {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
}

.scan-line:nth-child(1) .line-val { color: var(--critical); background: rgba(255,59,59,0.12); }
.scan-line:nth-child(2) .line-val { color: var(--high); background: rgba(255,140,0,0.12); }
.scan-line:nth-child(3) .line-val { color: var(--critical); background: rgba(255,59,59,0.12); }
.scan-line:nth-child(4) .line-val { color: var(--medium); background: rgba(255,214,0,0.12); }
.scan-line:nth-child(5) .line-val { color: var(--high); background: rgba(255,140,0,0.12); }
.scan-line:nth-child(6) .line-val { color: var(--low); background: rgba(138,138,160,0.12); }
.scan-line:nth-child(7) .line-val { color: var(--high); background: rgba(255,140,0,0.12); }
.scan-line:nth-child(8) .line-val { color: var(--critical); background: rgba(255,59,59,0.12); }

.scan-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar::after {
  content: '';
  display: block;
  width: 37.5%;
  height: 100%;
  background: var(--accent);
}

.progress-label {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* Methodology */
.methodology {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 64px;
}

.section-tag {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

.method-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: border-color 0.3s;
}

.method-card:hover {
  border-color: rgba(0, 229, 195, 0.3);
}

.method-icon {
  margin-bottom: 24px;
}

.method-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
}

.method-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.method-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.method-list li {
  font-size: 0.88rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.method-philosophy {
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
}

.philosophy-text p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Clients */
.clients {
  padding: 64px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.clients-label {
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 32px;
  font-family: var(--font-head);
}

.clients-logos {
  max-width: 1200px;
  margin: 0 auto;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-row + .logo-row {
  margin-top: 24px;
}

.client-logo {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg-muted);
  opacity: 0.7;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.client-logo:hover { opacity: 1; }

/* Services */
.services {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.services .section-header {
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(0, 229, 195, 0.25);
  transform: translateY(-2px);
}

.service-icon {
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Community */
.community {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 40px;
}

.community-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.community-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.2;
}

.community-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.community-facts {
  display: flex;
  gap: 40px;
}

.fact-number {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.fact-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 80px;
}

.community-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.cta-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

.cta-box p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Closing */
.closing {
  padding: 120px 40px;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.15;
}

.closing h2 em {
  font-style: normal;
  color: var(--critical);
}

.closing p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  padding: 48px 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--fg);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-family: var(--font-head);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 48px;
  }

  .hero-visual { display: none; }

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

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

  .community-inner {
    grid-template-columns: 1fr;
  }

  .nav-links { display: none; }

  .logo-row { gap: 28px; }
}

@media (max-width: 600px) {
  .hero {
    padding: 80px 24px 60px;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .methodology,
  .services,
  .community,
  .closing {
    padding: 60px 24px;
  }

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

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider { display: none; }

  .stat { padding: 0; }

  .logo-row { gap: 20px; }

  .client-logo { font-size: 0.78rem; }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
