/* MatrisIB Cloud — investor assessment landing */

:root {
  --navy-950: #050d18;
  --navy-900: #0a1628;
  --navy-800: #122337;
  --navy-700: #1a314d;
  --gold-500: #c9a227;
  --gold-400: #d4b44a;
  --gold-300: #e8d48b;
  --cream: #f4f1ea;
  --muted: #8fa4bf;
  --white: #ffffff;
  --success: #2d8a6e;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 24px 60px rgba(5, 13, 24, 0.45);
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--navy-950);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-400);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--gold-500);
  color: var(--navy-900);
  z-index: 10000;
  border-radius: 6px;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.98), rgba(5, 13, 24, 0.88));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
}

.brand-link:hover {
  color: var(--white);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

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

.nav-links a:hover {
  color: var(--gold-300);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  color: var(--navy-900);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.45);
  color: var(--navy-900);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-300);
  border: 1px solid rgba(201, 162, 39, 0.45);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-300);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 49, 77, 0.65), transparent),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(201, 162, 39, 0.08), transparent),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-950) 55%, #030810 100%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-300);
  border: 1px solid rgba(201, 162, 39, 0.35);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-micro {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(145deg, rgba(18, 35, 55, 0.9), rgba(10, 22, 40, 0.95));
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.hero-chart {
  margin-top: 1rem;
}

/* Logo SVG sizing */
.logo-svg {
  flex-shrink: 0;
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 35, 55, 0.35), transparent);
  border-block: 1px solid rgba(201, 162, 39, 0.08);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  color: var(--white);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Disclaimer ribbon */
.disclaimer-bar {
  background: rgba(201, 162, 39, 0.08);
  border-block: 1px solid rgba(201, 162, 39, 0.15);
  padding: 0.85rem 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}

.disclaimer-bar strong {
  color: var(--gold-300);
}

/* Value strip */
.value-strip {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .value-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: rgba(18, 35, 55, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.12);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.value-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--gold-300);
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Quiz */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.question-block {
  background: rgba(10, 22, 40, 0.85);
  border: 1px solid rgba(143, 164, 191, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1rem;
}

.question-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 164, 191, 0.2);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option-label:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: rgba(201, 162, 39, 0.05);
}

.option-label input {
  margin-top: 0.25rem;
  accent-color: var(--gold-500);
}

.option-label span {
  color: var(--cream);
  font-size: 0.96rem;
}

.quiz-progress {
  height: 4px;
  background: rgba(143, 164, 191, 0.15);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  width: 0%;
  transition: width 0.35s ease;
}

/* Form */
.lead-section {
  scroll-margin-top: 6rem;
}

.form-panel {
  max-width: 520px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(18, 35, 55, 0.95), rgba(10, 22, 40, 0.98));
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.form-panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.form-panel > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 164, 191, 0.25);
  background: rgba(5, 13, 24, 0.6);
  color: var(--cream);
  font-size: 1rem;
}

.field input:focus {
  outline: 2px solid rgba(201, 162, 39, 0.45);
  outline-offset: 2px;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.checkbox-field {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
}

.checkbox-field input {
  margin-top: 0.25rem;
  accent-color: var(--gold-500);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
}

.form-success.visible {
  display: block;
}

.form-success h3 {
  color: var(--success);
  margin: 0 0 0.5rem;
}

.form-hidden {
  display: none;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.15rem;
  border-radius: var(--radius);
  background: rgba(18, 35, 55, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.1);
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-weight: 700;
  font-size: 0.85rem;
}

.benefit-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--white);
}

.benefit-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Visual diagrams row */
.visual-row {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .visual-row {
    grid-template-columns: 1fr 1fr;
  }
}

.diagram-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: var(--navy-800);
}

.diagram-card figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid rgba(143, 164, 191, 0.12);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

details.faq-item {
  background: rgba(18, 35, 55, 0.45);
  border: 1px solid rgba(143, 164, 191, 0.12);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  padding: 0 1rem;
}

details.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--white);
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--gold-500);
  font-weight: 400;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
  background: #030810;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-400);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold-300);
}

.risk-box {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(143, 164, 191, 0.2);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(143, 164, 191, 0.1);
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.97), rgba(5, 13, 24, 0.99));
  border-top: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-inner {
    grid-template-columns: 1fr auto;
  }
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 5rem;
}

.legal-page article {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  color: var(--white);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--gold-300);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-nav {
  margin-bottom: 2rem;
}

.legal-nav a {
  font-size: 0.9rem;
}
