/* ==========================================================================
   Xeltriq Technologies — stylesheet
   Minimal dark UI: deep indigo surfaces, violet→blue brand, cyan accent.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #08061a;
  --bg-2:        #0a0820;
  --surface:     #100e28;
  --border:      #201b45;
  --border-soft: #191540;

  /* Brand */
  --violet:      #7c3aed;
  --violet-300:  #c4b5fd;
  --violet-400:  #a78bfa;
  --blue:        #2563eb;
  --cyan:        #22d3ee;
  --cyan-300:    #67e8f9;

  /* Text */
  --text:        #f0eefb;
  --text-2:      #a9a2c9;
  --text-3:      #736c96;

  /* Effects */
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #4f34e3 55%, #2563eb 100%);
  --grad-text:   linear-gradient(100deg, #ffffff 0%, #c4b5fd 60%, #67e8f9 100%);

  /* Metrics */
  --radius:      14px;
  --radius-lg:   20px;
  --wrap:        1080px;
  --nav-h:       68px;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }
a { color: var(--violet-300); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--cyan-300); }

h1, h2, h3 {
  color: var(--text);
  font-weight: 680;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.06rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }

::selection { background: rgba(124,58,237,.4); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }

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

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: 10px 18px;
}
.skip-link:focus { left: 0; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 620; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px 1px rgba(34,211,238,.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  font-size: .92rem; font-weight: 620;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary { background: var(--grad-brand); color: #fff; }
.btn--primary:hover { color: #fff; filter: brightness(1.1); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--violet-400); color: #fff; }

.btn--sm { padding: 9px 17px; font-size: .86rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.arrow-link span { transition: transform .18s ease; }
.arrow-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(8,6,26,.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand:hover { opacity: .88; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  font-size: .89rem; font-weight: 520; color: var(--text-2);
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: #fff; }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 9px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta { display: none; }

  .nav-panel {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: rgba(9,7,29,.985);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; display: none;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-panel.is-open { display: block; }
  .nav-panel ul { list-style: none; display: grid; gap: 2px; margin-bottom: 16px; }
  .nav-panel a {
    display: block; padding: 12px 13px; border-radius: 9px;
    font-size: .98rem; font-weight: 540; color: var(--text-2);
  }
  .nav-panel a:hover, .nav-panel a[aria-current="page"] { background: rgba(124,58,237,.14); color: #fff; }
  .nav-panel .btn { width: 100%; }
}
@media (min-width: 861px) { .nav-panel { display: none !important; } }

/* ---------- Ambient glow ---------- */
.glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(100px); opacity: .42;
}
.glow--violet { background: radial-gradient(circle, rgba(124,58,237,.6), transparent 70%); }
.glow--blue   { background: radial-gradient(circle, rgba(37,99,235,.45), transparent 70%); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
}
.hero .wrap { position: relative; z-index: 2; }
.hero .glow--violet { width: 640px; height: 640px; top: -330px; left: 50%; transform: translateX(-50%); }
.hero .glow--blue   { width: 460px; height: 460px; bottom: -300px; right: -100px; }

.hero h1 { margin-bottom: 20px; }
.hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--text-2); max-width: 54ch;
  margin: 0 auto 30px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  margin-top: 40px; font-size: .84rem; color: var(--text-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }

/* ---------- Page head (interior) ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(52px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border-soft);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head .glow--violet { width: 500px; height: 500px; top: -300px; left: 12%; }
.page-head h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); margin-bottom: 14px; }
.page-head p { font-size: clamp(.98rem, 1.3vw, 1.08rem); max-width: 58ch; margin-bottom: 0; }

/* ---------- Section head ---------- */
.section-head { max-width: 620px; margin-bottom: clamp(30px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); margin-bottom: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .22s ease, background .22s ease;
}
.card:hover { border-color: var(--border); background: #12102c; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; margin-bottom: 0; }
.card--static:hover { border-color: var(--border-soft); background: var(--surface); }

.icon-box {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(124,58,237,.14);
  color: var(--violet-300);
}
.icon-box svg { width: 19px; height: 19px; }
.icon-box--cyan { background: rgba(34,211,238,.12); color: var(--cyan-300); }

/* ---------- Compact list ---------- */
.mini-list { list-style: none; display: grid; gap: 7px; margin-top: 14px; }
.mini-list li {
  position: relative; padding-left: 15px;
  font-size: .875rem; color: var(--text-3);
}
.mini-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--violet-400);
}

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.ticks svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--cyan); }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: .82rem; font-weight: 520; color: var(--text-3);
  transition: border-color .18s ease, color .18s ease;
}
.chips li:hover { border-color: var(--violet-400); color: var(--text-2); }

/* ---------- Product card ---------- */
.product {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: border-color .22s ease, background .22s ease;
}
.product:hover { border-color: var(--border); background: #12102c; }

.product-icon {
  width: 62px; height: 62px; border-radius: 15px; flex-shrink: 0;
  background: #16133a; object-fit: cover;
}
.product-body h3 { margin-bottom: 4px; font-size: 1.1rem; }
.product-body p { font-size: .92rem; margin: 0 0 8px; color: var(--text-2); }
.product-tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none;
  font-size: .78rem; color: var(--text-3);
}
.product-tags li { display: inline-flex; align-items: center; gap: 6px; }
.product-tags li:not(:first-child)::before {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
}
.product-cta { flex-shrink: 0; }

@media (max-width: 700px) {
  .product { grid-template-columns: auto 1fr; }
  .product-cta { grid-column: 1 / -1; }
  .product-cta .btn { width: 100%; }
}

.product--soon { border-style: dashed; }
.product--soon:hover { background: var(--surface); border-color: var(--border-soft); }
.product--soon .product-icon {
  display: grid; place-items: center;
  border: 1px dashed var(--border); background: transparent; color: var(--text-3);
}
.product--soon .product-icon svg { width: 22px; height: 22px; }

/* ---------- Store button ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 10px;
  background: #fff; color: #0a0820;
  font-weight: 640; font-size: .88rem;
  transition: transform .16s ease, opacity .2s ease;
}
.store-btn:hover { transform: translateY(-1px); color: #0a0820; opacity: .92; }
.store-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-btn small {
  display: block; font-size: .62rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; opacity: .58; line-height: 1.35;
}

/* ---------- Contact card ---------- */
.mail-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(26px, 4vw, 40px);
  text-align: center;
}
.mail-card .icon-box { margin: 0 auto 18px; width: 44px; height: 44px; border-radius: 12px; }
.mail-card .icon-box svg { width: 21px; height: 21px; }
.mail-card h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin-bottom: 10px; }
.mail-card p { max-width: 46ch; margin-inline: auto; font-size: .95rem; }
.mail-link {
  display: inline-block; margin-top: 8px;
  font-size: clamp(1rem, 2vw, 1.22rem); font-weight: 620;
  letter-spacing: -0.01em; color: var(--text);
  border-bottom: 1px solid var(--violet);
  padding-bottom: 3px;
  transition: color .18s ease, border-color .18s ease;
  word-break: break-word;
}
.mail-link:hover { color: var(--cyan-300); border-color: var(--cyan); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 54px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(37,99,235,.09) 60%, transparent);
  text-align: center;
}
.cta > * { position: relative; z-index: 2; }
.cta .glow--violet { width: 420px; height: 420px; top: -240px; left: 50%; transform: translateX(-50%); }
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 48ch; margin-inline: auto; margin-bottom: 24px; }

/* ---------- Note ---------- */
.note {
  display: flex; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  background: rgba(34,211,238,.045);
}
.note svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--cyan); margin-top: 3px; }
.note p { margin: 0; font-size: .88rem; }
.note strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: clamp(36px, 5vw, 52px) 0 26px;
  font-size: .89rem;
}
.footer-top {
  display: flex; flex-wrap: wrap; gap: 26px 40px;
  align-items: flex-start; justify-content: space-between;
  padding-bottom: 30px;
}
.footer-top .brand { margin-bottom: 12px; }
.footer-blurb { color: var(--text-3); max-width: 34ch; margin: 0; font-size: .88rem; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px 40px; list-style: none; }
.footer-nav a { color: var(--text-3); }
.footer-nav a:hover { color: var(--violet-300); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--border-soft);
  color: var(--text-3); font-size: .82rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--violet-300); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh; display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.error-code {
  font-size: clamp(4rem, 14vw, 8.5rem); font-weight: 720; line-height: 1;
  letter-spacing: -0.05em; margin: 0 0 6px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
