/* ──────────────────────────────────────────────────────────────────
   Verdantix Group corporate website — design tokens + components
   ────────────────────────────────────────────────────────────────── */

:root {
  /* Palette */
  --navy-deep:    #0A1628;
  --navy-1:       #0F1F3D;
  --navy-2:       #162847;
  --navy-3:       #1E3358;
  --gold:         #C9A14A;
  --gold-soft:    #D4B670;
  --gold-dim:     #8B6D2D;
  --ivory:        #F5F2EB;
  --paper:        #FAFAF7;
  --slate:        #5A6477;
  --slate-light:  #8A95A8;
  --line:         rgba(201, 161, 74, 0.15);
  --line-dark:    rgba(255, 255, 255, 0.08);

  /* Typography */
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 36px;
  --s-6: 56px;
  --s-7: 80px;
  --s-8: 120px;

  --content-max: 1280px;
  --content-narrow: 880px;
}

/* ── Reset & base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-soft); }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }

p { margin: 0 0 1.1em 0; color: rgba(245, 242, 235, 0.82); }
.lead { font-size: 1.18rem; line-height: 1.6; color: rgba(245, 242, 235, 0.92); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}
.dim { color: var(--slate-light); }

/* ── Layout helpers ────────────────────────────────────────────── */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--s-4); }
.narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Navigation ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-3) 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid var(--line);
  padding: var(--s-2) 0;
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s-4);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: var(--s-2);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand .mark-logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand .name-sub {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--slate-light);
  text-transform: uppercase;
  margin-top: -2px;
}
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links > * { margin-left: var(--s-5); }   /* fallback for renderers without flex-gap */
.nav-links > *:first-child { margin-left: 0; }
.nav-links a {
  color: var(--ivory);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links .cta {
  background: var(--gold);
  color: var(--navy-deep);
  padding: 9px 20px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background .2s ease, transform .2s ease;
}
.nav-links .cta::after { display: none; }
.nav-links .cta:hover { background: var(--gold-soft); transform: translateY(-1px); }

.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-1);
    padding: var(--s-4);
    gap: var(--s-3);
  }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--s-8);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 161, 74, 0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(30, 51, 88, 0.6), transparent 60%),
    var(--navy-deep);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 161, 74, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 161, 74, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero h1 {
  margin-bottom: var(--s-4);
  max-width: 900px;
}
.hero .lead {
  max-width: 640px;
  margin-bottom: var(--s-5);
}
.hero-meta {
  display: flex; gap: var(--s-5); margin-top: var(--s-6);
  flex-wrap: wrap;
}
.hero-meta-item {
  border-left: 1px solid var(--line);
  padding-left: var(--s-3);
}
.hero-meta-item .val {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-meta-item .lbl {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 4px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 26px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 0;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--gold-soft); color: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: var(--gold); color: var(--gold); }
.btn-arrow::after { content: ' →'; transition: transform .2s ease; }

/* ── Sections ──────────────────────────────────────────────────── */
.section-light {
  background: var(--paper);
  color: var(--navy-deep);
}
.section-light p { color: rgba(10, 22, 40, 0.74); }
.section-light .dim { color: var(--slate); }
.section-light .eyebrow { color: var(--gold-dim); }
.section-light h1, .section-light h2, .section-light h3 { color: var(--navy-deep); }
.section-light .divider { background: rgba(10, 22, 40, 0.1); }

/* ── Capability cards (homepage 3-up) ──────────────────────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: var(--s-6);
}
@media (max-width: 880px) { .capability-grid { grid-template-columns: 1fr; } }
.capability {
  background: var(--navy-deep);
  padding: var(--s-5) var(--s-4);
  display: flex; flex-direction: column;
  transition: background .3s ease;
}
.capability:hover { background: var(--navy-1); }
.capability .num {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
}
.capability h3 { margin-bottom: var(--s-3); }
.capability p { color: rgba(245, 242, 235, 0.7); margin: 0; font-size: 15px; }

/* ── Product showcase (homepage) ───────────────────────────────── */
.product-showcase {
  background: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);
  border: 1px solid var(--line);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  margin-top: var(--s-6);
}
.product-showcase::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.08), transparent 70%);
  pointer-events: none;
}
.product-showcase .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  position: relative;
}
@media (max-width: 880px) { .product-showcase .grid { grid-template-columns: 1fr; } }
.product-showcase .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin-bottom: var(--s-3);
}
.product-showcase h2 { color: var(--ivory); margin-bottom: var(--s-3); }
.product-showcase .terminal {
  background: var(--navy-deep);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--s-4);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(245, 242, 235, 0.85);
  line-height: 1.6;
}
.product-showcase .terminal .hdr {
  display: flex; gap: 6px; margin-bottom: 12px;
}
.product-showcase .terminal .hdr span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.product-showcase .terminal .hdr span:first-child { background: #ff6058; }
.product-showcase .terminal .hdr span:nth-child(2) { background: #ffbe2f; }
.product-showcase .terminal .hdr span:nth-child(3) { background: #2acb40; }
.terminal-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.terminal-row:last-child { border: 0; }
.terminal-row .lbl { color: var(--slate-light); }
.terminal-row .val { color: var(--gold-soft); }
.terminal-row .green { color: #7fdb9b; }
.terminal-row .red { color: #ff9b9b; }

/* ── Stats strip ───────────────────────────────────────────────── */
.stats-strip {
  background: var(--navy-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-6) 0;
}
.stats-grid {
  display: flex;     /* fallback */
  flex-wrap: wrap;
  gap: var(--s-5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-grid > .stat { flex: 1 1 200px; }   /* fallback sizing */
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  display: block;
  font-weight: 500;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.stat .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ── News cards ────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (max-width: 880px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--navy-1);
  border: 1px solid var(--line);
  padding: var(--s-4);
  display: flex; flex-direction: column;
  transition: border-color .25s ease, transform .25s ease;
}
.news-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.news-card .date {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-2);
}
.news-card .cat {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: var(--s-3);
}
.news-card h3 {
  font-size: 1.2rem;
  margin-bottom: var(--s-3);
  color: var(--ivory);
}
.news-card p { font-size: 14px; flex: 1; margin: 0 0 var(--s-3) 0; color: rgba(245,242,235, 0.68); }
.news-card .read {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Article (single news item) ────────────────────────────────── */
.article-header {
  padding-top: 180px;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.article-body { font-size: 17px; line-height: 1.8; }
.article-body p { color: rgba(245,242,235, 0.86); margin-bottom: 1.4em; }
.article-body h2 { margin: 2em 0 0.6em; }
.article-body h3 { margin: 1.6em 0 0.6em; }
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: var(--s-4);
  margin: var(--s-5) 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--gold-soft);
}

/* ── Timeline (About page) ─────────────────────────────────────── */
.timeline { border-left: 1px solid var(--line); padding-left: var(--s-4); margin: var(--s-6) 0; }
.timeline-item { position: relative; padding-bottom: var(--s-5); }
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-4) - 5px);
  top: 8px;
  width: 9px; height: 9px;
  background: var(--gold);
  border-radius: 50%;
}
.timeline-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.timeline-item h4 { margin: 4px 0 8px; font-family: var(--serif); font-size: 1.3rem; text-transform: none; letter-spacing: 0; }

/* ── Leadership grid ───────────────────────────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (max-width: 880px) { .leadership-grid { grid-template-columns: 1fr; } }
.leader {
  background: var(--navy-1);
  border: 1px solid var(--line);
  padding: var(--s-4);
}
.leader .photo {
  width: 100%; aspect-ratio: 1; margin-bottom: var(--s-3);
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-3) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--gold-dim);
}
.leader h4 { font-family: var(--serif); font-size: 1.2rem; text-transform: none; letter-spacing: 0; margin-bottom: 4px; color: var(--ivory); }
.leader .role { font-size: 13px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.leader p { font-size: 14px; color: rgba(245,242,235, 0.7); margin: 0; }

/* ── Investor relations ────────────────────────────────────────── */
.ir-card {
  background: var(--navy-1);
  border: 1px solid var(--line);
  padding: var(--s-4);
  display: flex; flex-direction: column;
  transition: border-color .25s ease;
}
.ir-card:hover { border-color: var(--gold); }
.ir-card .ic {
  width: 44px; height: 44px;
  background: rgba(201, 161, 74, 0.1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}
.ir-card h4 { color: var(--ivory); margin-bottom: var(--s-2); text-transform: none; letter-spacing: 0; font-family: var(--serif); font-size: 1.2rem; }
.ir-card p { font-size: 14px; color: rgba(245,242,235, 0.7); margin: 0 0 var(--s-3) 0; flex: 1; }

.ir-doc-list { margin-top: var(--s-5); }
.ir-doc {
  display: grid;
  grid-template-columns: 100px 1fr 100px 100px;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .ir-doc { grid-template-columns: 1fr; gap: 4px; } }
.ir-doc .yr { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: 0.08em; }
.ir-doc .ttl { font-weight: 500; }
.ir-doc .ttl .sub { font-size: 12px; color: var(--slate-light); margin-top: 2px; display: block; }
.ir-doc .size { font-family: var(--mono); font-size: 12px; color: var(--slate-light); text-align: right; }
.ir-doc .dl { text-align: right; }
.ir-doc .dl a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

.rns-list { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.rns-item {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .rns-item { grid-template-columns: 1fr; gap: 4px; } }
.rns-item .date { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; }
.rns-item .ttl { font-weight: 500; }
.rns-item .tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
  color: var(--slate-light);
  text-align: center;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--navy-1);
  border: 1px solid var(--line);
  padding: var(--s-5);
  margin-bottom: var(--s-3);
}
.contact-card h4 { color: var(--gold); font-family: var(--sans); }
.contact-card p { margin: 4px 0; font-size: 15px; }
.contact-card a { font-weight: 500; }

form .field { margin-bottom: var(--s-3); }
form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 6px;
}
form input, form select, form textarea {
  width: 100%;
  background: var(--navy-1);
  color: var(--ivory);
  border: 1px solid var(--line);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 2px;
  transition: border-color .2s ease;
}
form input:focus, form select:focus, form textarea:focus {
  outline: 0; border-color: var(--gold);
}
form textarea { resize: vertical; min-height: 120px; }
.form-msg { font-size: 13px; margin-top: var(--s-2); color: var(--gold); display: none; }
.form-msg.show { display: block; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: #06101F;
  border-top: 1px solid var(--line);
  padding: var(--s-7) 0 var(--s-4);
  margin-top: var(--s-7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-3) 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a {
  color: rgba(245, 242, 235, 0.7);
  font-size: 14px;
}
.footer-col li a:hover { color: var(--gold); }
.footer-brand .brand { margin-bottom: var(--s-3); }
.footer-brand p { font-size: 13px; color: rgba(245, 242, 235, 0.5); max-width: 320px; }
.legal {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: 12px;
  color: rgba(245, 242, 235, 0.4);
}
.legal a { color: rgba(245, 242, 235, 0.55); font-size: 12px; }

/* ── Fade-in animations (content-first, animation is enhancement) ────
   Default state: fully visible. Modern browsers add the entrance animation
   via @supports. Old browsers, crawlers, screen readers, image renderers,
   and email previews all see the content immediately. */
.fade-in { opacity: 1; transform: none; }
.fade-in.visible { opacity: 1; transform: none; }

@supports (animation: name) {
  @keyframes vdxFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Only browsers that confirm keyframe support get the animation. */
  html.has-animations .fade-in { animation: vdxFadeIn 0.8s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  html.has-animations .fade-in { animation: none; }
}

/* ── Minimal footer (v3.2.51 site trim) ──────────────────────────── */
.footer-min { display: flex; flex-direction: column; gap: var(--s-2); padding-bottom: var(--s-3); }
.footer-min .brand { margin-bottom: 4px; }
.footer-min p { color: rgba(245,242,235,0.6); font-size: 14px; margin: 0; }
