/* =========================================================================
   KLEODYN — "Sovereign Trust" Design System
   Fusion of advanced biomedical technology and heritage financial elegance.
   ========================================================================= */

:root {
  /* Backgrounds */
  --raw-white: #FFFFFF;
  --ivory: #FBF9F6;
  --obsidian: #0A0A0A;

  /* Typography */
  --onyx: #111111;

  /* Golds */
  --gold: #D4AF37;        /* Champagne Leaf — primary accent */
  --gold-dark: #AA7C11;   /* Aged Brass — dark gold / borders */
  --gold-sand: #E6D7B8;   /* Muted Sand — subtle highlight */

  /* Structural */
  --hairline: #E5E5E5;
  --hairline-on-dark: rgba(212, 175, 55, 0.22);

  /* Type */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--raw-white);
  color: var(--onyx);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--onyx);
  margin: 0;
}

h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.04; font-weight: 500; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; }
h3 { font-size: 26px; line-height: 1.2; }
h4 { font-size: 19px; line-height: 1.3; }

p { margin: 0 0 18px; color: #333; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}

.lede {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  max-width: 44em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.gold-rule {
  height: 1px;
  width: 64px;
  background: var(--gold);
  margin: 28px 0;
}

.gold-text { color: var(--gold-dark); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 0.5px solid var(--onyx);
  border-radius: 0;
  background: var(--onyx);
  color: var(--raw-white);
  cursor: pointer;
  transition: background 260ms var(--ease), color 260ms var(--ease), border-color 260ms var(--ease);
  white-space: nowrap;
}

.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--raw-white); }

.btn-outline {
  background: transparent;
  color: var(--onyx);
  border: 0.5px solid var(--onyx);
}

.btn-outline:hover { background: var(--onyx); color: var(--raw-white); }

.btn-gold {
  background: transparent;
  color: var(--gold-dark);
  border: 0.5px solid var(--gold-dark);
}

.btn-gold:hover { background: var(--gold-dark); color: var(--raw-white); }

.btn-on-dark {
  border: 0.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-on-dark:hover { background: var(--gold); color: var(--obsidian); }

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  max-width: 1240px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--onyx);
}

.wordmark span { color: var(--gold-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: var(--onyx); border-bottom-color: var(--gold-dark); }

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

.nav-toggle { display: none; }

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

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  padding: 96px 0 80px;
  border-bottom: 0.5px solid var(--hairline);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.hero h1 { margin: 0 0 26px; }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #444;
  max-width: 34em;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding-top: 30px;
  border-top: 0.5px solid var(--hairline);
}

.hero-metric .num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--onyx);
  font-weight: 600;
}

.hero-metric .num em { color: var(--gold-dark); font-style: normal; }

.hero-metric .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-top: 6px;
}

/* Hero visual: abstract command-grid panel, not a screenshot */
.hero-panel {
  background: var(--obsidian);
  padding: 34px;
  position: relative;
  border: 0.5px solid var(--gold-dark);
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 0.5px solid var(--hairline-on-dark);
}

.hero-panel-head .mono-label { color: var(--gold-sand); }

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 8px;
  animation: pulse-live 2.4s infinite ease-in-out;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline-on-dark);
  border: 0.5px solid var(--hairline-on-dark);
}

.panel-cell {
  background: var(--obsidian);
  padding: 18px;
}

.panel-cell .mono-label { color: #8a8a8a; margin-bottom: 10px; display: block; }
.panel-cell .val { font-family: var(--font-mono); font-size: 24px; color: var(--raw-white); }
.panel-cell .val em { color: var(--gold); font-style: normal; }
.panel-cell .delta { font-family: var(--font-mono); font-size: 11px; color: var(--gold-sand); margin-top: 8px; }

.panel-footline {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a7a;
}

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */

.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-border-top { border-top: 0.5px solid var(--hairline); }
.section-ivory { background: var(--ivory); }
.section-obsidian { background: var(--obsidian); color: var(--raw-white); }
.section-obsidian h2, .section-obsidian h3, .section-obsidian h4 { color: var(--raw-white); }
.section-obsidian p { color: #C9C9C9; }
.section-obsidian .mono-label { color: var(--gold-sand); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-head h2 { max-width: 14em; }
.section-head .lede { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Grids & cards
   --------------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 0.5px solid var(--hairline); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 0.5px solid var(--hairline); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 0.5px solid var(--hairline); }

.card {
  background: var(--raw-white);
  padding: 38px 32px;
  transition: background 260ms var(--ease);
}

.card:hover { background: var(--ivory); }

.card .index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-dark);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  display: block;
}

.card h4 { margin-bottom: 12px; }
.card p { font-size: 13.5px; color: #444; margin: 0; }

.dark .grid-3, .dark .grid-2, .dark .grid-4 { background: var(--hairline-on-dark); border-color: var(--hairline-on-dark); }
.dark .card { background: var(--obsidian); }
.dark .card:hover { background: #141414; }
.dark .card h4 { color: var(--raw-white); }
.dark .card p { color: #bdbdbd; }

/* ---------------------------------------------------------------------
   Method / process steps
   --------------------------------------------------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 0.5px solid var(--hairline);
  border-left: 0.5px solid var(--hairline);
}

.process-step {
  border-right: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  padding: 30px 22px;
  position: relative;
}

.process-step .step-no {
  font-family: var(--font-mono);
  font-size: 34px;
  color: var(--gold-sand);
  display: block;
  margin-bottom: 20px;
}

.process-step h4 { margin-bottom: 10px; }
.process-step p { font-size: 12.5px; color: #555; margin: 0; }

@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Table-style rows (for pricing / governance data)
   --------------------------------------------------------------------- */

.row-list { border-top: 0.5px solid var(--hairline); }

.row-item {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 0.5px solid var(--hairline);
}

.row-item .row-label { font-family: var(--font-serif); font-size: 20px; max-width: 20em; }
.row-item .row-desc { max-width: 32em; font-size: 13.5px; color: #444; }

/* ---------------------------------------------------------------------
   Quote / statement block
   --------------------------------------------------------------------- */

.statement {
  max-width: 900px;
}

.statement h2 { font-weight: 500; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */

.site-footer {
  background: var(--obsidian);
  color: #C9C9C9;
  padding: 70px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 0.5px solid var(--hairline-on-dark);
}

.footer-grid .wordmark { color: var(--raw-white); }
.footer-grid .wordmark span { color: var(--gold); }

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-sand);
  margin: 0 0 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13px; color: #C9C9C9; transition: color 200ms var(--ease); }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #7a7a7a;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */

.form-field { margin-bottom: 26px; }

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 10px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0.5px solid var(--hairline);
  border-radius: 0;
  background: var(--raw-white);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--onyx);
  transition: border-color 200ms var(--ease);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.form-field textarea { resize: vertical; min-height: 130px; }

/* ---------------------------------------------------------------------
   Badges / tags
   --------------------------------------------------------------------- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 0.5px solid var(--gold-dark);
  color: var(--gold-dark);
}

/* ---------------------------------------------------------------------
   Utility
   --------------------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.max-w-content { max-width: 720px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 18px 22px; }
  .container { padding: 0 22px; }
  .section { padding: 64px 0; }
}
