/* ═══════════════════════════════════════════════════════════
   Vadient — Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --green: #34c859;
  --green-dim: #2aa648;
  --teal: #1a7a5c;
  --bg: #0d1b1a;
  --bg-card: #12272599;
  --bg-nav: rgba(13, 27, 26, 0.92);
  --text: #e8f0ee;
  --text-dim: #8fa8a0;
  --border: #1e3d38;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #5cff7e;
}
ul,
ol {
  list-style: none;
}

/* ── Typography ────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
h3 {
  font-size: 1.25rem;
}
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 6rem 0;
}

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__link {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.active {
  color: var(--green);
}
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .nav__links.open {
    display: flex;
  }
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 26, 0.4) 0%,
    var(--bg) 90%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero__tagline {
  margin-bottom: 1rem;
}
.hero h1 {
  margin-bottom: 1.25rem;
}
.hero h1 span {
  color: var(--green);
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: var(--green);
  color: var(--bg);
}
.btn--primary:hover {
  color: var(--bg);
  box-shadow: 0 8px 30px rgba(52, 200, 89, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}
.btn__icon {
  width: 20px;
  height: 20px;
}

/* ── Feature / Metric cards ────────────────────────────── */
.metrics {
  background: linear-gradient(
    180deg,
    transparent,
    rgba(26, 122, 92, 0.06) 50%,
    transparent
  );
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.metric-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.metric-card__value {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
  display: block;
  margin-bottom: 0.25rem;
}
.metric-card__label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .metrics__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Features section ──────────────────────────────────── */
.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.features__header h2 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.features__header p {
  color: var(--text-dim);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(52, 200, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Showcase (image + text) ───────────────────────────── */
.showcase {
  overflow: hidden;
}
.showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.showcase__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.showcase__image img {
  width: 100%;
  display: block;
}
.showcase__text .label {
  margin-bottom: 0.75rem;
  display: block;
}
.showcase__text h2 {
  margin-bottom: 1rem;
}
.showcase__text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.showcase__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.showcase__list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.showcase__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .showcase__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .showcase__inner--reverse {
    direction: ltr;
  }
  .showcase__inner--reverse .showcase__image {
    order: -1;
  }
}

.showcase__inner--reverse {
  direction: rtl;
}
.showcase__inner--reverse > * {
  direction: ltr;
}

/* ── CTA banner ────────────────────────────────────────── */
.cta-banner {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(52, 200, 89, 0.08),
    rgba(26, 122, 92, 0.12)
  );
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-dim);
}
.footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.footer__links {
  display: flex;
  gap: 1.5rem;
}
.footer__link {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--green);
}
.footer__copy {
  width: 100%;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Page hero (inner pages) ───────────────────────────── */
.page-hero {
  padding: 8rem 0 3rem;
  text-align: center;
}
.page-hero .label {
  display: block;
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  margin-bottom: 1rem;
}
.page-hero p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Legal / prose ─────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.prose p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.75;
}
.prose ul,
.prose ol {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li {
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  line-height: 1.65;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── FAQ accordion ─────────────────────────────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.25rem 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font);
}
.faq__question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item.open .faq__question::after {
  transform: rotate(45deg);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq__item.open .faq__answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}
.faq__answer p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Support contact card ──────────────────────────────── */
.support-contact {
  text-align: center;
  padding: 3rem 0 5rem;
}
.support-contact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.support-contact__card h3 {
  margin-bottom: 0.75rem;
}
.support-contact__card p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

/* ── Scroll reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glow effect ───────────────────────────────────────── */
.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 200, 89, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.glow--top-right {
  top: -100px;
  right: -100px;
}
.glow--bottom-left {
  bottom: -150px;
  left: -150px;
}

/* ── Apple Watch badge ─────────────────────────────────── */
.badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.badge-row__text {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Utilities ─────────────────────────────────────────── */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
