:root {
  --bg: #0c0f13;
  --panel: rgba(20, 24, 30, 0.95);
  --panel-soft: rgba(28, 34, 41, 0.75);
  --border: rgba(255, 255, 255, 0.09);

  --text: #f5f7fa;
  --muted: #aeb5bf;
  --subtle: #7f8793;

  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.13);

  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
  --max-width-doc: 980px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  min-height: 100vh;

  background:
    radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.1), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.03), transparent 25%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(7, 8, 10, 0.94), rgba(7, 8, 10, 0.94)),
    url("/images/stone-banner.jpg");
  background-size: auto, auto, 50px 50px, 50px 50px, auto, cover;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, center top;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll, fixed, fixed;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.container-doc {
  width: min(calc(100% - 32px), var(--max-width-doc));
  margin: 0 auto;
}

/* Topbar / nav, shared across every page */

.topbar-wrap {
  padding: 24px 0 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: rgba(17, 20, 25, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.3),
    0 0 22px rgba(139, 92, 246, 0.22);
}

.brand-mark-lg {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-tagline {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(160deg, #a177f9, var(--accent) 55%, #6d3fd6);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 30px -10px rgba(139, 92, 246, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(160deg, #ac86fa, #9666f7 55%, #7a49e0);
}

.btn-secondary {
  border-color: var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.82rem;
  border-radius: 10px;
}

/* Hero (shared card treatment, used by marketing hero and legal-doc hero alike) */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 64px);
  margin-top: 40px;

  border: 1px solid var(--border);
  border-radius: 26px;

  background:
    linear-gradient(100deg, rgba(9, 11, 15, 0.92) 0%, rgba(9, 11, 15, 0.72) 45%, rgba(9, 11, 15, 0.35) 100%),
    url("/images/stone-banner.jpg") center / cover no-repeat,
    linear-gradient(145deg, rgba(28, 32, 39, 0.98), rgba(17, 20, 25, 0.98));
  box-shadow: var(--shadow);
}

.hero.hero-doc {
  border-radius: 26px 26px 0 0;
  margin-bottom: 0;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;

  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: var(--accent-soft);

  color: #d9cbff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.updated {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: var(--subtle);
  font-size: 0.88rem;
}

.hero-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* Legal document content card, sits flush under .hero-doc */

.content {
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  margin-bottom: 34px;
  padding: 18px 20px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: rgba(139, 92, 246, 0.07);
  color: #d7dce3;
}

.content section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.content section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.content h2 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}

.content p {
  margin-bottom: 14px;
  color: var(--muted);
}

.content p:last-child {
  margin-bottom: 0;
}

.content ul {
  margin-top: 14px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.content li {
  margin: 7px 0;
  padding-left: 4px;
}

.content strong {
  color: var(--text);
}

/* Sections / feature cards (marketing pages) */

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.28);
  transform: translateY(-3px);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.card p {
  color: var(--muted);
}

.card .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

/* Panel promo banner */

.panel-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;

  padding: clamp(28px, 5vw, 48px);
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(100deg, rgba(9, 11, 15, 0.88) 0%, rgba(9, 11, 15, 0.6) 55%, rgba(9, 11, 15, 0.25) 100%),
    linear-gradient(135deg, rgba(139, 92, 246, 0.14), transparent 60%),
    url("/images/stone-banner.jpg") center / cover no-repeat,
    linear-gradient(145deg, rgba(28, 32, 39, 0.98), rgba(17, 20, 25, 0.98));
  box-shadow: var(--shadow);
}

.panel-cta h2 {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.panel-cta p {
  color: var(--muted);
  max-width: 520px;
}

/* Footer, shared across every page */

footer {
  padding: 60px 0 40px;
}

.footer-inner {
  text-align: center;
  color: var(--subtle);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.84rem;
}

.footer-mark {
  margin: 0 auto 18px;
  opacity: 0.7;
}

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

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    justify-content: center;
  }

  .panel-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
