:root {
  --bg: #000;
  --surface: #0f0f13;
  --text: #e2e2ea;
  --text-muted: #b0b0bc;
  --text-dim: #6a6a78;
  --border: rgba(255, 255, 255, 0.04);
  --card-border: rgba(94, 142, 255, 0.12);
  --card-bg: linear-gradient(135deg, rgba(94, 142, 255, 0.06), rgba(193, 100, 224, 0.06));
  --gradient-logo: linear-gradient(135deg, #5e8eff, #c164e0);
  --gradient-hero: linear-gradient(135deg, #8e44ad, #3b6ff8);
  --accent-start: #5e8eff;
  --accent-end: #c164e0;
  --font: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 110%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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


/* ---- Layout ---- */

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.wrap-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3.5rem;
}


/* ---- Gradient utilities ---- */

.grad-logo {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-hero {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4.5rem;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

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

.wordmark {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}


/* ---- Hero ---- */

.hero {
  padding: 14rem 0 15rem;
  text-align: center;
}

.hero-heading {
  font-size: 4.25rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  animation: hero-in 0.8s ease both;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  animation: hero-in 0.8s 0.2s ease both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---- Sections ---- */

.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  border-radius: 1px;
  opacity: 0.3;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}


/* ---- Product cards ---- */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card-outer {
  position: relative;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  opacity: 0.1;
  filter: blur(12px);
  pointer-events: none;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 2.25rem;
  transition: border-color 0.3s ease;
  height: 100%;
}

.card:hover {
  border-color: rgba(94, 142, 255, 0.22);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-underline {
  width: 3.75rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  border-radius: 1px;
  margin-bottom: 1.25rem;
}

.card-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.card-coming {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card-coming .card-title {
  color: var(--text-dim);
}

.card-coming .card-desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
}


/* ---- About ---- */

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.about-brand {
  flex-shrink: 0;
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding-top: 0.125rem;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
}


/* ---- Legal pages ---- */

.legal-header {
  margin-bottom: 1.25rem;
}

.legal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.legal-date {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-top: 0.125rem;
}

.legal {
  padding-bottom: 2rem;
  text-align: justify;
}

.legal h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  text-align: left;
}

.legal h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 1rem 0 0.375rem;
  text-align: left;
}

.legal p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal ul,
.legal ol {
  margin: 0 0 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal li {
  margin-bottom: 0.25rem;
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--accent-start);
}

.legal hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.legal th,
.legal td {
  text-align: left;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.legal th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.legal .legal-intro {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}


/* ---- Contact ---- */

.contact-email {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--text);
}


/* ---- Footer ---- */

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

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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


/* ---- Scroll reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ---- Focus ---- */

a:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ---- Responsive ---- */

@media (max-width: 42.5em) {
  .wrap,
  .wrap-wide {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 8rem 0 5rem;
  }

  .hero-heading {
    font-size: 2.5rem;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .card {
    padding: 1.5rem;
  }

  .about-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .legal table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    flex-direction: column-reverse;
    gap: 0.75rem;
    align-items: flex-start;
  }
}