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

:root {
  --navy:      #0a1628;
  --navy-mid:  #0d1f3c;
  --navy-card: #112240;
  --teal:      #00d4d4;
  --teal-dim:  #00a3a3;
  --teal-glow: rgba(0, 212, 212, 0.15);
  --white:     #f0f6ff;
  --muted:     #7a8fa8;
  --done:      #22c55e;
  --active:    #f59e0b;
  --planned:   #6366f1;
  --radius:    10px;
  --font-mono: 'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

em { color: var(--teal); font-style: normal; }

/* ── Nav ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 212, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
}
.nav-logo svg { width: 38px; height: 38px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--teal); text-decoration: none; }

.lang-switcher { display: flex; gap: 0.4rem; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--muted);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

/* ── Hero ───────────────────────────────────────────────────── */
#home {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,212,212,0.08) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(0,212,212,0.04) 39px,
      rgba(0,212,212,0.04) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(0,212,212,0.04) 39px,
      rgba(0,212,212,0.04) 40px
    );
  pointer-events: none;
}

.hero-logo { margin-bottom: 2.5rem; }
.hero-logo svg { width: 100px; height: 100px; }

#home h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 800px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--white) 40%, var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#home p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.cta-btn {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
}
.cta-btn:hover {
  background: var(--teal-dim);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ── Section Common ─────────────────────────────────────────── */
section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* ── About ──────────────────────────────────────────────────── */
#about .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.about-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,212,212,0.12);
  border-radius: var(--radius);
  padding: 2rem;
  font-size: 0.97rem;
  color: #b0c4d8;
  line-height: 1.75;
}

/* ── Product ────────────────────────────────────────────────── */
#product { max-width: 1100px; }

.product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.product-desc {
  font-size: 1rem;
  color: #b0c4d8;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.arch-title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#arch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

#arch-list li {
  font-size: 0.9rem;
  color: #b0c4d8;
  padding-left: 1.2rem;
  position: relative;
  font-family: var(--font-mono);
  line-height: 1.5;
}
#arch-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* ECC Diagram */
.ecc-diagram-wrap {
  background: var(--navy-card);
  border: 1px solid rgba(0,212,212,0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ecc-diagram-wrap h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-transform: uppercase;
}

.ecc-formula {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--teal);
  background: rgba(0,212,212,0.06);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  border: 1px solid rgba(0,212,212,0.2);
}

.ecc-diagram-caption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  max-width: 340px;
}

/* Curve Cards */
.curves-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.curve-card {
  background: var(--navy-card);
  border: 1px solid rgba(0,212,212,0.14);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.curve-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.curve-name {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.curve-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.15);
  color: var(--done);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  text-transform: uppercase;
}

/* ── Roadmap ────────────────────────────────────────────────── */
#roadmap { background: var(--navy-mid); max-width: 100%; padding: 6rem 2rem; }
#roadmap .inner { max-width: 1100px; margin: 0 auto; }

.roadmap-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

#roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy-card);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.roadmap-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.roadmap-done   .roadmap-dot { background: var(--done); box-shadow: 0 0 8px var(--done); }
.roadmap-active .roadmap-dot { background: var(--active); box-shadow: 0 0 8px var(--active); animation: pulse 1.8s ease-in-out infinite; }
.roadmap-planned .roadmap-dot { background: var(--planned); }

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

.roadmap-label {
  font-size: 0.92rem;
  color: #c8d8e8;
}
.roadmap-done .roadmap-label   { color: var(--white); }
.roadmap-active .roadmap-label { color: var(--white); }

/* ── Contact ────────────────────────────────────────────────── */
#contact {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 700px;
}

.contact-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--navy-card);
  border: 1px solid rgba(0,212,212,0.25);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-size: 1.05rem;
  color: var(--teal);
  font-family: var(--font-mono);
  transition: background 0.2s, border-color 0.2s;
}
.contact-email-link:hover {
  background: var(--teal-glow);
  border-color: var(--teal);
  text-decoration: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(0,212,212,0.08);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }

  #about .about-grid { grid-template-columns: 1fr; }
  .product-header   { grid-template-columns: 1fr; }
  .curves-grid      { grid-template-columns: 1fr; }
}
