*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0d0a1f;
  --navy-mid: #18103a;
  --navy-light: #231856;
  --accent: #5b8af0;
  --accent-glow: #7da4ff;
  --accent-muted: rgba(91, 138, 240, 0.12);
  --teal: #2ecfb1;
  --teal-muted: rgba(46, 207, 177, 0.1);
  --text-primary: #f0eef9;
  --text-secondary: rgba(240, 238, 249, 0.55);
  --text-tertiary: rgba(240, 238, 249, 0.3);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(13, 10, 31, 0.7);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Noise texture overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ─── Background orbs ─── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: #3a5fbf;
  top: -200px;
  left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  bottom: 100px;
  right: -80px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #7b4fbf;
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 40px) scale(1.08);
  }
}

/* ─── Content wrapper ─── */
.page {
  position: relative;
  z-index: 1;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(13, 10, 31, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--card-bg);
  border-color: var(--border);
}

.nav-links a svg {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0 rgba(91, 138, 240, 0);
}

.btn-primary:hover {
  background: var(--accent-glow);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(91, 138, 240, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ─── Hero ─── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  position: relative;
}

.hero-inner {
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-muted);
  border: 1px solid rgba(91, 138, 240, 0.25);
  color: var(--accent-glow);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-badge span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 44px;
  font-weight: 300;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta {
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 11px;
}

.btn-cta svg {
  width: 16px;
  height: 16px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ─── Section ─── */
.section {
  padding: 100px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.7;
}

/* ─── Features grid ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.feat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(91, 138, 240, 0.08) 0%,
    transparent 70%
  );
}

.feat-card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.feat-icon-blue {
  background: rgba(91, 138, 240, 0.15);
}

.feat-icon-teal {
  background: rgba(46, 207, 177, 0.12);
}

.feat-icon-purple {
  background: rgba(151, 100, 220, 0.12);
}

.feat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feat-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

.feat-arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--text-tertiary);
  font-size: 18px;
  transition: all 0.2s;
}

.feat-card:hover .feat-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ─── Feature highlighted row ─── */
.features-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.feat-card-wide {
  grid-column: 1 / -1;
}

/* ─── Bento grid ─── */
.bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-top: 56px;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  position: relative;
}

.bento-card.span-full {
  grid-column: 1 / -1;
}

.bento-card.accent-bg {
  background: linear-gradient(
    135deg,
    rgba(91, 138, 240, 0.15) 0%,
    rgba(46, 207, 177, 0.08) 100%
  );
  border-color: rgba(91, 138, 240, 0.2);
}

.bento-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.bento-title {
  font-family: "Instrument Serif", serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
  max-width: 340px;
}

/* Mini chart inside bento */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-top: 24px;
}

.bar {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: var(--accent-muted);
  border: 1px solid rgba(91, 138, 240, 0.2);
  transition: all 0.3s ease;
  cursor: default;
}

.bar:hover {
  background: rgba(91, 138, 240, 0.3);
}

.bar.active {
  background: var(--accent);
  border-color: transparent;
}

/* Status list */
.status-list {
  list-style: none;
  margin-top: 22px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.status-item:last-child {
  border-bottom: none;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.dot-green {
  background: var(--teal);
}

.dot-blue {
  background: var(--accent);
}

.dot-amber {
  background: #f0a050;
}

.status-name {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.status-val {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 12px;
}

/* ─── CTA Banner ─── */
.cta-section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.cta-box {
  background: linear-gradient(
    135deg,
    var(--navy-mid) 0%,
    rgba(35, 24, 86, 0.8) 100%
  );
  border: 1px solid rgba(91, 138, 240, 0.2);
  border-radius: 24px;
  padding: 64px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(91, 138, 240, 0.5),
    transparent
  );
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 138, 240, 0.12) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-title {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -1px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section,
  .cta-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-stats {
    gap: 24px;
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-row {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 44px 28px;
  }
}
