/* ============================================================
   COMPONENTS — Nav, Hero, Buttons, Cards, Forms, Footer, etc.
   ============================================================ */

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border-subtle);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

@media (min-width: 768px)  { .nav__container { padding: 0 48px; } }
@media (min-width: 1280px) { .nav__container { padding: 0 40px; } }

.nav__logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--text-0);
  text-transform: uppercase;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav__logo:hover { opacity: 0.75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-1);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  letter-spacing: -0.01em;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text-0);
  background: var(--bg-2);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.nav__toggle:hover { background: var(--bg-2); }

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-0);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s var(--ease);
  transform-origin: center;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav__overlay.is-visible { opacity: 1; }

/* Mobile menu panel */
.nav__mobile {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 101;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: right 0.35s var(--ease);
}
.nav__mobile.is-open { right: 0; }

.nav__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav__mobile-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.nav__mobile-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--text-1);
  transition: color 0.2s, background 0.2s;
}
.nav__mobile-close:hover { color: var(--text-0); background: var(--bg-2); }
.nav__mobile-close svg { width: 16px; height: 16px; }

.nav__mobile-link {
  display: block;
  font-size: 16px;
  font-weight: 450;
  color: var(--text-1);
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: color 0.2s, background 0.2s;
}
.nav__mobile-link:hover,
.nav__mobile-link.is-active { color: var(--text-0); background: var(--bg-2); }

.nav__mobile-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .nav__links   { display: none; }
  .nav__cta     { display: none; }
  .nav__toggle  { display: flex; }
  .nav__overlay { display: block; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 28px var(--accent-glow);
}

.btn--secondary {
  background: var(--bg-2);
  color: var(--text-0);
  border-color: var(--border);
}
.btn--secondary:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-1);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--text-0);
  background: var(--bg-2);
}

.btn--sm {
  font-size: 13px;
  padding: 7px 14px;
  border-radius: var(--r-sm);
}

.btn--lg {
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--r-lg);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  border: 1px solid;
}

.badge--coming-soon {
  color: var(--accent-hover);
  background: var(--accent-dim);
  border-color: rgba(99, 102, 241, 0.25);
}

.badge--new {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.25);
}

.badge--dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Section header ──────────────────────────────────────────── */
.section-header {
  margin-bottom: 64px;
}
.section-header--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 64px;
}
.section-header .eyebrow { margin-bottom: 16px; }
.section-header h2       { margin-bottom: 16px; }
.section-header p        { font-size: 17px; line-height: 1.7; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% -5%,
    rgba(99, 102, 241, 0.13) 0%,
    transparent 70%);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at 50% 0%, black 0%, transparent 100%);
  opacity: 0.55;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

@media (min-width: 768px)  { .hero__content { padding: 0 48px; } }
@media (min-width: 1280px) { .hero__content { padding: 0 40px; } }

.hero__eyebrow  { margin-bottom: 28px; }

.hero__title {
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 900px;
  margin: 0 auto 28px;
  color: var(--text-0);
}

.hero__description {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-1);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% -10%,
    rgba(99, 102, 241, 0.09) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  max-width: 780px;
  margin: 0 auto 20px;
}
.page-hero p {
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Grid layouts ────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-auto { grid-template-columns: 1fr; }
}

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.card:hover {
  border-color: var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
}

/* Product card */
.product-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
              transform 0.35s var(--ease);
}
.product-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 48px rgba(99, 102, 241, 0.08), var(--shadow-md);
  transform: translateY(-2px);
}
.product-card__glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}
.product-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.product-card__icon {
  width: 52px;
  height: 52px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.product-card__icon svg { width: 26px; height: 26px; }
.product-card__name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.product-card__description {
  font-size: 16px;
  color: var(--text-1);
  line-height: 1.7;
  margin-bottom: 32px;
}
.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.product-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-1);
}
.product-card__feature-icon {
  width: 20px;
  height: 20px;
  background: var(--bg-3);
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.product-card__feature-icon svg { width: 12px; height: 12px; }

/* ── Value card ──────────────────────────────────────────────── */
.value-card {
  background: var(--bg-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 32px;
  transition: border-color 0.3s, background 0.3s;
}
.value-card:hover {
  border-color: var(--border);
  background: var(--bg-2);
}
.value-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.value-card__icon svg { width: 20px; height: 20px; }
.value-card h4 { margin-bottom: 10px; }
.value-card p  { font-size: 15px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-0);
  letter-spacing: 0;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-0);
  font-size: 15px;
  font-family: var(--font);
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-2); }
.form-input:hover,
.form-textarea:hover { border-color: var(--border-hover); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-error {
  font-size: 13px;
  color: #f87171;
  margin-bottom: 16px;
}

.form-success {
  padding: 48px 32px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-1);
}
.form-success h3 { margin-bottom: 12px; }
.form-success p  { font-size: 15px; }

/* ── Contact layout ──────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-info__item:first-child { border-top: 1px solid var(--border-subtle); }
.contact-info__icon {
  width: 40px;
  height: 40px;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.contact-info__icon svg { width: 18px; height: 18px; }
.contact-info__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}
.contact-info__value { font-size: 15px; color: var(--text-0); }
.contact-info__value a { color: var(--accent); }
.contact-info__value a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
}

.footer__brand { max-width: 280px; }
.footer__logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-0);
  display: inline-block;
  margin-bottom: 12px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

.footer__nav-groups {
  display: flex;
  gap: 56px;
}
@media (max-width: 768px) {
  .footer__nav-groups { gap: 40px; flex-wrap: wrap; }
}

.footer__nav-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}

.footer__nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: 14px;
  color: var(--text-1);
  transition: color 0.2s;
}
.footer__nav-link:hover { color: var(--text-0); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--text-2);
}

.footer__legal {
  display: flex;
  gap: 20px;
}
.footer__legal-link {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer__legal-link:hover { color: var(--text-1); }

/* ── Prose (Legal pages) ─────────────────────────────────────── */
.prose {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}
.prose h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}
.prose h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p  { margin-bottom: 16px; font-size: 15px; line-height: 1.8; }
.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.prose ul li { font-size: 15px; color: var(--text-1); line-height: 1.75; margin-bottom: 6px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text-0); font-weight: 600; }

/* ── About section ───────────────────────────────────────────── */
.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 768px) {
  .vision-mission { grid-template-columns: 1fr; }
}

.vision-mission__item {
  background: var(--bg-1);
  padding: 48px 40px;
}
.vision-mission__item .eyebrow { margin-bottom: 16px; }
.vision-mission__item h3 { margin-bottom: 16px; }
.vision-mission__item p  { font-size: 16px; line-height: 1.75; }

/* ── Feature list (home teaser) ──────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 64px;
}
@media (max-width: 768px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-list__item {
  background: var(--bg-0);
  padding: 32px;
  border-radius: 0;
}
.feature-list__item .eyebrow { margin-bottom: 12px; }
.feature-list__item p { font-size: 15px; }

/* ── Misc ────────────────────────────────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
}
