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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #18181f;
  --accent: #6b7cff;
  --accent-glow: rgba(107,124,255,0.15);
  --accent-border: rgba(107,124,255,0.3);
  --text: #e8e8f0;
  --text2: #9090a8;
  --text3: #505068;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --green: #22d3a8;
  --amber: #f59e0b;
  --purple: #a78bfa;
  --r: 10px;
  --r-sm: 6px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.025em; color: #fff;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 0.125rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; color: var(--text2);
  padding: 0.4rem 0.8rem; border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-contact {
  font-size: 0.875rem; font-weight: 600;
  color: #fff; background: var(--accent);
  padding: 0.4rem 1rem; border-radius: 999px;
  transition: opacity 0.15s;
}
.nav-contact:hover { opacity: 0.85; }

/* ── HERO ── */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 0 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(107,124,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-title-wrap {
  position: relative;
  padding: 0 2rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-detail-wrap {
  padding: 2.5rem 2rem 5rem;
  min-height: 8rem;
}
.slide-detail-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text2);
  transition: color 0.2s;
}

.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-glow); border: 1px solid var(--accent-border);
  color: #8b9aff; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  color: #fff; margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--accent); font-style: normal; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.175rem);
  color: var(--text2); line-height: 1.7;
  max-width: 580px; margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 600;
  padding: 0.65rem 1.5rem; border-radius: 999px;
  transition: all 0.15s; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5a6be0; }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); }

/* ── SECTIONS ── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.section-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; color: #fff;
  margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--text2); max-width: 520px;
}

/* ── ARCHITECTURE DIAGRAM ── */
.diagram-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem 1.5rem;
  overflow: hidden;
}
.diagram-wrap svg { width: 100%; height: auto; display: block; }

.diagram-note {
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  justify-content: center; margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.diagram-note-item {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; color: var(--text3);
}
.diagram-note-item span {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── PILLARS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.pillar {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.pillar:hover { border-color: var(--accent-border); transform: translateY(-2px); }

.pillar-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--accent-glow); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; color: var(--accent);
}
.pillar h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.45rem; }
.pillar p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

/* ── PRODUCT CARDS ── */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.75rem;
  display: flex; flex-direction: column;
  transition: all 0.2s;
}
.product-card:hover {
  border-color: var(--accent-border); background: var(--bg3);
  transform: translateY(-3px);
}
.product-card-type {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 1rem;
}
.product-card h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 0.4rem; }
.product-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.product-card-link {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.product-card-link::after { content: '→'; }

/* ── PRODUCT PAGE HERO ── */
.product-hero {
  position: relative; text-align: center;
  padding: 6rem 2rem 4rem;
}
.product-hero::before {
  content: '';
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(107,124,255,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.product-hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.product-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800; letter-spacing: -0.03em; color: #fff;
  margin-bottom: 1rem; line-height: 1.1;
}
.product-hero p {
  font-size: 1.1rem; color: var(--text2);
  max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7;
}

/* ── FEATURE LIST ── */
.feature-list {
  max-width: 600px; margin: 0 auto 3rem;
  display: flex; flex-direction: column; gap: 0.875rem;
}
.feature-item {
  display: flex; gap: 0.875rem; align-items: flex-start;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.125rem 1.25rem;
  text-align: left;
}
.feature-check {
  flex-shrink: 0; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-glow); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.feature-text strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.feature-text span { font-size: 0.85rem; color: var(--text2); line-height: 1.55; }

/* ── COMING SOON BAND ── */
.coming-soon {
  text-align: center;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 4rem 2rem;
}
.coming-soon h2 { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.6rem; }
.coming-soon p { font-size: 0.95rem; color: var(--text2); margin-bottom: 1.75rem; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.83rem; color: var(--text3);
}
footer a { color: var(--text2); transition: color 0.15s; }
footer a:hover { color: var(--text); }

/* ── PRODUCT SLIDESHOW ── */
.slides-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem 0;
  /* peek cards on the sides */
  padding-left: calc(50% - 220px);
  padding-right: calc(50% - 220px);
  /* hide scrollbar */
  scrollbar-width: none;
}
.slides-track::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 440px;
  height: 280px;
  scroll-snap-align: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  color: var(--text3);
  transition: border-color 0.25s, color 0.25s;
  cursor: pointer;
  user-select: none;
}
.slide:hover {
  border-color: var(--accent-border);
  color: var(--text2);
}
.slide-active {
  border-color: var(--accent-border);
  color: var(--text);
}

@media (max-width: 540px) {
  .slides-track {
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
  }
  .slide { flex: 0 0 280px; height: 200px; font-size: 3rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .nav-links { display: none; }
  footer { justify-content: center; text-align: center; }
}
