:root {
  --bg: #0b1020;
  --fg: #e5e7eb;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .10);
  --accent: #60a5fa;
  --accent2: #34d399;
}

/* Reset + Base */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(96, 165, 250, .22), transparent 60%),
    radial-gradient(1000px 500px at -10% 110%, rgba(94, 234, 212, .16), transparent 60%);
  opacity: .95;
}

@media (max-width:900px) {
  body::before {
    background: linear-gradient(180deg, rgba(96, 165, 250, .16), rgba(94, 234, 212, .12) 35%, transparent 70%);
  }
}

main {
  flex: 1
}

.container-padding {
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 560px) {
  .container-padding {
    padding-left: 18px;
    padding-right: 18px;
  }
}

section {
  scroll-margin-top: 100px
}

/* --- Header --- */
.site-header {
  width: 100%;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
  padding: 20px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .35);
  vertical-align: middle;
  transform: translateY(2px);
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .3px;
  transition: color .2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width .3s ease;
  margin-top: 3px;
}

.nav a:hover::after {
  width: 100%;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 48px;
  max-width: 1040px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.accent {
  background: linear-gradient(135deg, #93c5fd, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  font-size: clamp(15px, 2.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 780px;
  margin: 10px 0 14px;
}

/* Short vs long hero copy */
.sub-short {
  display: inline;
}

.sub-long {
  display: none;
}

@media (min-width:900px) {
  .sub-short {
    display: none;
  }

  .sub-long {
    display: inline;
  }
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 10px 0 18px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

input[type=email] {
  flex: 1;
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--fg);
  outline: none;
}

button {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b1020;
  font-weight: 700;
  cursor: pointer;
}

.kicker {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* --- Features --- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  max-width: 1040px;
  margin: 60px auto 100px;
  align-items: stretch;
}

.feature {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* --- About --- */
.about {
  max-width: 1040px;
  margin: 72px auto 40px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}

.about h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.about-lead {
  color: var(--muted);
  font-size: 16px;
  margin: 6px 0 18px;
  max-width: 800px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  align-items: stretch;
}

.about-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.about-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about-card summary::-webkit-details-marker {
  display: none;
}

.about-card summary h3 {
  margin: 0;
  font-size: 16px;
}

.about-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.about-card:not([open]) p {
  display: none;
}

/* Keep cards opened on large screens */
@media (min-width:900px) {
  .about-card {
    display: block;
  }

  .about-card p {
    display: block !important;
  }
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  margin-top: 120px;
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .25) inset;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
}

.site-footer a:hover {
  opacity: .85;
}

/* --- Responsive --- */
@media (max-width:900px) {
  .logo-img {
    width: 48px;
    height: 48px;
    transform: translateY(1px);
  }

  .brand-name {
    font-size: 18px;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 14px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 36px auto 64px;
  }

  .feature h3 {
    font-size: 15px;
  }

  .feature p {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width:560px) {
  .hero {
    padding: 56px 0 40px;
  }

  input[type=email] {
    min-width: 0;
  }
}

/* --- Waitlist preferences + honeypot --- */
.opt-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.opt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

#website {
  /* honeypot hidden but accessible off-flow */
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Button loading state */
button[data-loading] {
  position: relative;
  opacity: .8;
  cursor: wait;
}

button[data-loading]::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .3);
  border-top-color: #000;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg)
  }
}

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 12vh auto;
  background: rgba(15, 23, 42, .98);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0b1020;
  font-weight: 700;
  cursor: pointer;
}

/* Clamp padding on main containers (so text never hits the edge) */
.hero,
.features,
.about,
.footer-inner,
.header-inner {
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}