:root {
  --bg: #0a0e14;
  --bg-alt: #0d1420;
  --surface: #10161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --text-dim: #8b96a5;
  --accent: #00e5ff;
  --accent-2: #1a4f9e;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --max-width: 980px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.nav__logo-mark {
  display: block;
  border-radius: 7px;
}
.nav__logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__link {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.active {
  color: var(--text);
}
.nav__link--cta {
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 32%, rgba(0, 229, 255, 0.14), rgba(26, 79, 158, 0.12) 45%, transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent);
}
.hero__content {
  max-width: 720px;
  text-align: center;
  position: relative;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero__subline {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--accent);
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}
.btn--large {
  font-size: 1rem;
  padding: 1rem 2.2rem;
}

/* Sections */
.section {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}
.section--alt {
  background: var(--bg-alt);
}
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section__inner--center {
  text-align: center;
}
.section__title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.section__text {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 1.2rem;
}
.section__inner--center .section__text {
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
}
.card__title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.card__text {
  color: var(--text-dim);
  font-size: 0.92rem;
}
.card__link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  transition: opacity 0.2s;
}
.card__link:hover {
  opacity: 0.75;
}

/* Product (Eltwo Expense) */
.product__layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.product__copy {
  flex: 1;
  min-width: 0;
}
.product__points {
  list-style: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
  display: grid;
  gap: 0.6rem;
}
.product__points li {
  padding-left: 1.3rem;
  position: relative;
}
.product__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.product__status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}
.product__art {
  flex: none;
}
.product__icon {
  border-radius: 27px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
  .product__layout {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  .product__points {
    justify-items: center;
  }
  .product__points li {
    padding-left: 0;
    text-align: left;
    display: inline-block;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer__tag {
  font-family: var(--font-mono);
}

/* Scroll reveal (progressive enhancement: only hidden once JS confirms it can reveal) */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .nav__toggle {
    display: flex;
  }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav__links.is-open {
    display: flex;
  }
  .hero {
    padding-top: 7rem;
  }
}
