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

:root {
  --bg:        #080a0e;
  --bg-subtle: #0d1117;
  --surface:   rgba(255, 255, 255, 0.04);
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #f0f4ff;
  --muted:     #8892a4;
  --accent:    #5b8af0;
  --accent-2:  #9b6dff;
  --success:   #34d399;
  --radius:    14px;
  --max-w:     1100px;
}

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

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 10, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.header__cta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
}

.header__cta:hover { opacity: 0.85; }

.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(91, 138, 240, 0.18) 0%, rgba(155, 109, 255, 0.10) 40%, transparent 70%);
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--success);
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 99px;
  padding: 4px 14px;
  margin-bottom: 32px;
}

.badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #f0f4ff 30%, #9b6dff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(91, 138, 240, 0.30);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.positioning {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 32px 0;
  text-align: center;
}

.positioning__label {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.positioning__sub {
  font-size: 0.875rem;
  color: var(--muted);
}

.how {
  padding: 96px 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.2;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.step__num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(91, 138, 240, 0.12);
  border: 1px solid rgba(91, 138, 240, 0.20);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.step__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  padding-top: 48px;
  color: var(--border);
  flex-shrink: 0;
}

.step-arrow svg {
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

.features {
  padding: 0 0 96px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  position: relative;
}

.bento-card--wide { grid-column: span 2; }
.bento-card--narrow { grid-column: span 1; }

.bento-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.bento-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.3;
}

.bento-card__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 360px;
}

.bento-card--calibration {
  background: linear-gradient(135deg, rgba(91, 138, 240, 0.08) 0%, rgba(155, 109, 255, 0.06) 100%);
  border-color: rgba(91, 138, 240, 0.18);
}

.bento-card--patterns {
  background: linear-gradient(135deg, rgba(155, 109, 255, 0.08) 0%, rgba(91, 138, 240, 0.04) 100%);
  border-color: rgba(155, 109, 255, 0.18);
}

.calibration-viz {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calibration-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  align-items: center;
  gap: 10px;
}

.calibration-row__label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bar-wrap {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.bar-fill--conf { background: rgba(91, 138, 240, 0.70); }
.bar-fill--actual { background: rgba(52, 211, 153, 0.70); }

.calibration-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-dot--conf { background: rgba(91, 138, 240, 0.70); }
.legend-dot--actual { background: rgba(52, 211, 153, 0.70); }

.patterns-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.ptag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.03);
}

.ptag--hi { border-color: rgba(52, 211, 153, 0.30); color: var(--success); background: rgba(52, 211, 153, 0.08); }
.ptag--lo { border-color: rgba(91, 138, 240, 0.30); color: var(--accent); background: rgba(91, 138, 240, 0.08); }

.screenshots {
  padding: 0 0 96px;
}

.screenshots__track {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.screenshot {
  flex-shrink: 0;
  width: clamp(180px, 18vw, 240px);
  text-align: center;
  scroll-snap-align: center;
}

.screenshot img {
  width: 100%;
  border-radius: 20px;
  display: block;
  border: 1px solid var(--border);
}

.screenshot figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.01em;
}

.carousel-controls { display: none; }

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.carousel-btn:hover { background: var(--border); }

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cdot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.cdot.active {
  width: 20px;
  background: var(--accent);
}

.access {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.access__inner { text-align: center; }

.access__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.access__sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  opacity: 0.7;
}

.footer__inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer__inner a:hover { color: var(--text); }

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0;
  }

  .step-arrow {
    padding: 8px 0;
    padding-top: 8px;
    transform: rotate(90deg);
    justify-content: center;
  }

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

  .bento-card--wide { grid-column: span 1; }
}

@media (max-width: 700px) {
  .screenshots__track {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 0 20px;
    gap: 16px;
  }

  .screenshots__track::-webkit-scrollbar { display: none; }

  .screenshot { width: 70vw; max-width: 230px; }

  .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .hero { padding: 80px 0 60px; }
  .hero__subtitle { font-size: 1rem; }
  .header__cta { display: none; }
  .footer__inner { flex-direction: column; gap: 8px; }
}
