/* Triovexaria — stylesheet. Tokens and component classes follow the
   supplied "Nocturne" design mockup as closely as possible. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #161826;
  --color-surface: #232532;
  --color-text: #e9e9ed;
  --color-accent: #9184d9;
  --color-accent-2: #a7a1db;
  --color-divider: color-mix(in srgb, #e9e9ed 16%, transparent);

  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;

  --color-accent-100: #f5f4ff;
  --color-accent-200: #e7e5fe;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-500: #968ae0;
  --color-accent-600: #796cbf;
  --color-accent-700: #5d5294;
  --color-accent-800: #423a6a;
  --color-accent-900: #2b2741;

  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
  --space-4: 11.2px;
  --space-6: 16.8px;
  --space-8: 22.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-sm: 0 0 0 1px #3f424d;
  --shadow-md: 0 0 0 1px #595d6c, 0 6px 18px rgba(0,0,0,0.55);
  --shadow-lg: 0 0 0 1px #9397ab, 0 16px 40px rgba(0,0,0,0.65);

  --wrap: 1200px;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-300); }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hr {
  height: 1px; border: 0; margin: var(--space-4) 0;
  background: linear-gradient(to right,
    transparent, var(--color-divider) 48px,
    var(--color-divider) calc(100% - 48px), transparent);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); }
.btn-lg { font-size: 15px; padding: 12px 22px; }

/* — forms — */
.field { display: block; }
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 110px; resize: vertical; font-family: var(--font-body); }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-800); color: var(--color-accent-100); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }

/* — navigation — */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, black);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-divider);
}
.nav {
  display: flex; align-items: center; gap: var(--space-4);
  padding: 16px 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 18px; margin-right: auto; color: var(--color-text);
}
.nav-brand:hover { color: var(--color-text); }
.brand-mark {
  width: 16px; height: 16px; flex: none;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: var(--color-accent);
}
.nav a:not(.btn) { color: inherit; text-decoration: none; font-size: 14px; }
.nav a:not(.btn):hover, .nav a[aria-current='page'] { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--color-divider);
  border-radius: var(--radius-md); width: 36px; height: 36px; color: var(--color-text);
  cursor: pointer; align-items: center; justify-content: center;
}

.breadcrumb { font-size: 12px; opacity: 0.55; padding: 0 24px; }
.breadcrumb a { color: var(--color-text); }
.breadcrumb a:hover { color: var(--color-accent); }

/* — footer — */
.site-footer { border-top: 1px solid var(--color-divider); padding: 36px 0; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--color-accent); }

/* — hero — */
.hero {
  padding: 40px 0 96px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  font: 600 11px var(--font-heading); letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent-300); margin-bottom: 16px;
}
.hero h1 { font-size: 54px; line-height: 1.08; max-width: 12ch; margin: 0; }
.hero-lead { font-size: 17px; max-width: 48ch; opacity: .85; margin-top: 16px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual {
  display: flex; align-items: center; gap: 22px; height: 200px; justify-content: center;
}
.hero-blob {
  width: 140px; height: 140px; flex: none;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: radial-gradient(circle at 32% 28%, var(--color-accent-800), var(--color-surface) 72%);
  box-shadow: var(--shadow-sm);
}
.hero-line { width: 64px; height: 1px; background: linear-gradient(to right, var(--color-divider), transparent); }
.hero-diamond {
  width: 110px; height: 110px; flex: none;
  clip-path: polygon(50% 0%,80% 20%,100% 50%,80% 80%,50% 100%,20% 80%,0% 50%,20% 20%);
  background: var(--color-surface); border: 1px solid var(--color-accent); box-shadow: var(--shadow-sm);
}

/* — approach strip — */
.approach {
  padding: 56px 0 88px; border-top: 1px solid var(--color-divider);
  display: grid; grid-template-columns: 0.5fr 1fr; gap: 48px;
}
.approach h6 { color: var(--color-accent-300); margin: 0; }
.approach p { font-size: 17px; max-width: 56ch; opacity: .85; line-height: 1.65; margin: 0; }

/* — sections — */
.section { padding: 0 0 88px; }
.section-head p { opacity: .7; max-width: 58ch; margin-top: 6px; }

/* — catalog — */
.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px; margin-top: 28px;
}
.product-card { padding: 16px; text-decoration: none; color: inherit; display: block; }
.product-card:hover { box-shadow: var(--shadow-md); }
.product-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.product-card-price { font: 600 16px var(--font-heading); color: var(--color-text); }
.product-card .card-title { margin-top: 12px; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.stage-mark {
  display: inline-block; width: 16px; height: 16px; border: 1.5px solid var(--color-accent);
}
.stage-mark[data-stage="1"] { border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
.stage-mark[data-stage="2"] { clip-path: polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%); }
.stage-mark[data-stage="3"] { clip-path: polygon(50% 0%,80% 20%,100% 50%,80% 80%,50% 100%,20% 80%,0% 50%,20% 20%); }
.details-link { padding-right: 0; }

/* — advantages — */
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; }
.advantage-mark {
  display: inline-block; width: 14px; height: 14px;
  clip-path: polygon(50% 0%,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%);
  border: 1.5px solid var(--color-accent); margin-bottom: 12px;
}
.advantage-title { font: 600 16px var(--font-heading); }
.advantage-body { font-size: 13.5px; opacity: .75; margin-top: 6px; line-height: 1.5; }

/* — faq — */
.faq-wrap { max-width: 820px; }
.faq-list { margin-top: 20px; }
.faq-item { border-bottom: 1px solid var(--color-divider); padding: 16px 0; }
.faq-item summary {
  font: 600 15px var(--font-heading); display: flex; justify-content: space-between;
  gap: 12px; align-items: baseline; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--color-accent); flex: none; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { font-size: 14px; opacity: .8; margin-top: 10px; line-height: 1.6; margin-bottom: 0; }

/* — product page — */
.product-layout {
  padding: 24px 0 20px; display: grid; grid-template-columns: 1fr 340px;
  gap: 56px; align-items: start;
}
.product-main h1 { font-size: 38px; margin: 14px 0 0; }
.product-lead { font-size: 16px; opacity: .85; margin-top: 12px; max-width: 56ch; line-height: 1.65; }
.module-row {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}
.module-num { font: 600 13px var(--font-heading); color: var(--color-accent-300); }
.module-title { font: 600 15px var(--font-heading); }
.module-body { font-size: 13.5px; opacity: .75; margin-top: 4px; line-height: 1.5; margin-bottom: 0; }
.product-sidebar { position: sticky; top: 80px; padding: 22px; }
.product-price { font: 600 28px var(--font-heading); }
.product-price-note { font-size: 12.5px; opacity: .65; margin-top: 2px; }
.product-buy-note { font-size: 12px; opacity: .6; margin-top: 12px; line-height: 1.5; }
.product-includes { margin: 0; padding: 0; list-style: none; font-size: 13px; opacity: .8; display: flex; flex-direction: column; gap: 8px; }

/* — about / legal — */
.narrow-page { max-width: 760px; padding: 24px 0 80px; }
.narrow-page h6 { color: var(--color-accent-300); }
.narrow-page h1 { margin-top: 8px; }
.narrow-page .lead { font-size: 16px; opacity: .85; margin-top: 20px; line-height: 1.7; }
.narrow-page h3 { margin-top: 48px; font-size: 20px; }
.check-list, .dot-list {
  margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column;
  gap: 10px; font-size: 15px; opacity: .85;
}
.check-list li, .dot-list li { padding-left: 18px; position: relative; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; background: var(--color-accent);
}
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  background: var(--color-neutral-600);
}

.legal-page { max-width: 760px; padding: 24px 0 90px; }
.legal-page h6 { color: var(--color-accent-300); }
.legal-page h1 { margin-top: 8px; }
.legal-page .updated { font-size: 13px; opacity: .55; margin-top: 6px; }
.legal-page h2 { font-size: 21px; margin-top: 40px; }
.legal-page p, .legal-page li { font-size: 15px; opacity: .85; line-height: 1.7; }
.legal-page ul { margin: 10px 0 16px; padding-left: 20px; }
.legal-page ul li { margin-bottom: 6px; }

/* — contact — */
.contact-layout { padding: 24px 0 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-meta { margin-top: 32px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.contact-meta span.label { opacity: .55; }
.form-note { font-size: 13px; margin-top: 4px; }
.form-note.success { color: var(--color-accent-300); }

/* — loading page — */
.loading-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 20px;
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--color-divider); border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font: 600 18px var(--font-heading); }
.loading-note { font-size: 14px; opacity: .65; max-width: 40ch; }
.loading-fallback { display: none; margin-top: 8px; }
.loading-fallback.show { display: block; }

/* — 404 / empty states — */
.empty-state { padding: 100px 24px; text-align: center; }

/* — responsive — */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 64px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 40px; }
  .approach { grid-template-columns: 1fr; gap: 16px; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider); flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 24px 16px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 10px 0; width: 100%; }
  .nav-links .btn { margin: 10px 0 0 !important; }
}
@media (max-width: 560px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  h1 { font-size: 30px; }
}
