/* ==========================================================================
   Kompas Investora — shared stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy-900: #071b34;
  --navy-800: #0b2545;
  --navy-700: #123a67;
  --navy-600: #1c4b82;
  --green-700: #0b7f57;
  --green-600: #0ea46f;
  --green-500: #17b881;
  --green-100: #e3f6ec;
  --amber-600: #b5730f;
  --amber-100: #fdf1de;
  --bg: #ffffff;
  --bg-soft: #f5f8f7;
  --bg-navy-soft: #eef3f8;
  --ink: #14202b;
  --ink-muted: #55677a;
  --ink-faint: #8494a3;
  --border: #e1e8ea;
  --border-soft: #edf1f2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 1px rgba(11, 37, 69, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.14);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink); }

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

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.82); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow {
  color: var(--green-500);
  background: rgba(23, 184, 129, 0.16);
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 62ch;
}
.section--navy .lede { color: rgba(255,255,255,0.82); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green-600), var(--navy-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  display: block;
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--navy-900); }
.nav-links a.active { color: var(--navy-900); background: var(--green-100); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta .btn span.btn-text-full + span { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 164, 111, 0.32);
}
.btn--primary:hover { background: var(--green-700); box-shadow: 0 8px 22px rgba(14, 164, 111, 0.4); }

.btn--dark {
  background: var(--navy-900);
  color: #fff;
}
.btn--dark:hover { background: var(--navy-700); }

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-900);
}
.btn--outline:hover { border-color: var(--navy-700); background: var(--bg-soft); }

.section--navy .btn--outline,
.cta-band .btn--outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.section--navy .btn--outline:hover,
.cta-band .btn--outline:hover { background: rgba(255,255,255,0.08); }

.btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--full { width: 100%; }

.btn--discord { background: #5865F2; color: #fff; }
.btn--discord:hover { background: #4752c4; }
.btn--patreon { background: #FF424D; color: #fff; }
.btn--patreon:hover { background: #e6353f; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-muted); }
.hero-trust-item svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hero-visual svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(11, 37, 69, 0.12));
}

/* ---------- Grids / Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon--navy { background: var(--bg-navy-soft); color: var(--navy-700); }
.card-icon--amber { background: var(--amber-100); color: var(--amber-600); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin: 0 auto 48px; text-align: center; }

/* ---------- Section header split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Myths (vs) ---------- */
.myth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.myth-row { padding: 20px 26px; }
.myth-row--myth {
  background: var(--amber-100);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.myth-row--fact { background: #fff; display: flex; gap: 12px; align-items: flex-start; }
.myth-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 2px;
}
.myth-tag--myth { background: #f2d9ad; color: #7a4c05; }
.myth-tag--fact { background: var(--green-100); color: var(--green-700); }

/* ---------- Glossary ---------- */
.glossary {
  columns: 2;
  column-gap: 40px;
}
.glossary-item {
  break-inside: avoid;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.glossary-term { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; display: block; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); font-size: 0.95rem; }
th { background: var(--bg-soft); font-weight: 700; color: var(--navy-900); }
tr:last-child td { border-bottom: none; }

/* ---------- Pricing / Tiers ---------- */
.tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  text-align: center;
}
.tier-list { align-self: center; }
.tier-card--featured {
  border: 2px solid var(--green-600);
  box-shadow: var(--shadow-lg);
}
.tier-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--green-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
}
.tier-price { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.tier-price span { font-size: 0.95rem; font-weight: 600; color: var(--ink-muted); }
.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tier-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.tier-list svg { width: 19px; height: 19px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ / Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-900);
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  color: var(--navy-900);
}
.accordion-item.open .accordion-trigger .plus {
  transform: rotate(45deg);
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-900);
}
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel-inner { padding: 0 4px 24px; color: var(--ink-muted); }

/* ---------- Callout / disclaimer ---------- */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--amber-100);
  border: 1px solid #f2ddb0;
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.callout svg { width: 22px; height: 22px; color: var(--amber-600); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: 0.92rem; color: #6b4a08; }
.callout--navy {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}
.callout--navy p { color: rgba(255,255,255,0.85); }
.callout--navy svg { color: var(--green-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Discord mock preview ---------- */
.discord-mock {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.discord-mock-head {
  background: var(--navy-900);
  color: #fff;
  padding: 16px 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
.discord-channel {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.discord-channel:last-child { border-bottom: none; }
.discord-channel .hash { color: var(--ink-faint); font-weight: 700; }
.discord-channel .name { font-weight: 600; }
.discord-channel .desc { color: var(--ink-muted); font-size: 0.85rem; margin-left: auto; text-align: right; }

/* ---------- Team ---------- */
.team-card { text-align: center; }
.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--green-100), var(--bg-navy-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy-800);
}

/* ---------- Values list ---------- */
.value-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.value-row:last-child { border-bottom: none; }

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--navy-900);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.98rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--green-600);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }
.form-success {
  display: none;
  background: var(--green-100);
  color: var(--green-700);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 20px;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 14px; }
.footer-tagline { max-width: 34ch; font-size: 0.92rem; color: #fff; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.94rem; transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}
.footer-disclaimer {
  max-width: 640px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 20px; height: 20px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-num { font-size: 2.1rem; font-weight: 800; color: var(--navy-900); }
.section--navy .stat-num { color: #fff; }
.stat-label { color: var(--ink-muted); font-size: 0.9rem; }
.section--navy .stat-label { color: rgba(255,255,255,0.7); }

.page-hero {
  padding: 64px 0 56px;
  text-align: center;
}
.page-hero .lede, .hero .lede { margin-left: auto; margin-right: auto; }
.hero > div:first-child { text-align: center; }
.hero-actions { justify-content: center; }
.hero-trust { justify-content: center; }
.breadcrumb-eyebrow { margin-bottom: 18px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .glossary { columns: 1; }
}

/* Collapse to the hamburger menu earlier than the layout breakpoint above,
   since the full text nav needs more room than mid-size viewports give it. */
@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 2px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta .btn span.btn-text-full { display: none; }
  .nav-cta .btn span.btn-text-full + span { display: inline; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
  .glossary { columns: 1; }
  .step { grid-template-columns: 40px 1fr; }
}

@media (max-width: 480px) {
  .hero-trust { flex-direction: column; gap: 12px; }
}
