/* ══════════════════════════════════════════════════════
   PHYTANDINA BT — Global Stylesheet v2.0
   Brand: Deep Navy · Andean Teal · Saffron Gold
   Aesthetic: Refined Scientific Dark · Botanical Luxury
   ══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Core palette — taken from logo */
  --navy:        #0A1A27;
  --navy-mid:    #0F2236;
  --navy-light:  #163047;
  --navy-card:   #0D1E2E;

  --teal:        #1DB585;
  --teal-dim:    #0E7B59;
  --teal-pale:   #6ECFB0;
  --teal-ghost:  rgba(29,181,133,.08);

  --gold:        #D4991F;
  --gold-bright: #F0B432;
  --gold-ghost:  rgba(212,153,31,.08);

  --white:       #EDF4F0;
  --ink:         #C8DDD6;
  --ink-mid:     #7CA098;
  --ink-dim:     #3D6058;

  --border:      #162D3E;
  --border-hi:   #1F3F52;
  --surface:     #0D1E2E;
  --surface-2:   #122538;

  /* Typography */
  --fd: 'Cormorant Garamond', Georgia, serif;
  --fb: 'Outfit', system-ui, sans-serif;
  --fm: 'Space Mono', monospace;

  /* Geometry */
  --r:     10px;
  --r-sm:  5px;
  --r-lg:  18px;
  --r-xl:  28px;
  --maxw:  1160px;
  --tr:    0.28s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--navy);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--fd);
  line-height: 1.1;
  color: var(--white);
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; }
h4 { font-family: var(--fb); font-size: 1rem; font-weight: 600; color: var(--white); }
p  { color: var(--ink-mid); }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

.eyebrow {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  display: block;
}

.lead { font-size: 1.1rem; color: var(--ink); }
.muted { color: var(--ink-dim); }

/* ── LAYOUT ── */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
section { padding: 96px 0; }
.bg-surface { background: var(--surface); }
.bg-navy    { background: var(--navy); }
.bg-mid     { background: var(--navy-mid); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  font-family: var(--fb);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--tr);
  text-decoration: none;
  letter-spacing: .3px;
}
.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--teal-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,181,133,.22);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-ghost);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,26,39,.88);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid rgba(22,45,62,.7);
  transition: var(--tr);
}
.site-nav.scrolled {
  background: rgba(10,26,39,.97);
  box-shadow: 0 4px 40px rgba(0,0,0,.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-hi);
}
.nav-brand-text {
  font-family: var(--fd);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .3px;
}
.nav-brand-sub {
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--teal);
  display: block;
  margin-top: -3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 7px 15px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  transition: var(--tr);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--teal-pale) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  padding: 8px;
  line-height: 1;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}
.footer-brand-logo img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}
.footer-brand-name {
  font-family: var(--fd);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.65;
  max-width: 250px;
}
.footer-col-title {
  font-family: var(--fb);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: 18px;
}
.footer-links a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-dim);
  padding: 5px 0;
  transition: var(--tr);
}
.footer-links a:hover { color: var(--teal); padding-left: 4px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 10px; }
.fsoc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--tr);
  cursor: pointer;
  color: var(--ink-mid);
  font-weight: 700;
}
.fsoc:hover { border-color: var(--teal); color: var(--teal); }

/* ── TICKER ── */
.ticker-wrap {
  background: var(--teal-dim);
  padding: 10px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: flex;
  gap: 56px;
  animation: ticker 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  font-family: var(--fm);
  font-size: 10.5px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.ticker-item::before {
  content: '◆';
  font-size: 6px;
  color: rgba(255,255,255,.35);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: var(--tr);
}
.card:hover { border-color: var(--teal-dim); }

.card-ruled::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--gold), transparent);
  margin-bottom: 24px;
}

/* ── TAGS ── */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 11px;
  border-radius: 100px;
  background: var(--teal-ghost);
  border: 1px solid rgba(29,181,133,.2);
  color: var(--teal-pale);
  font-family: var(--fb);
}
.tag-gold {
  background: var(--gold-ghost);
  border-color: rgba(212,153,31,.25);
  color: var(--gold-bright);
}

/* ── DIVIDERS ── */
.divider { height: 1px; background: var(--border); margin: 52px 0; }
.divider-teal { background: linear-gradient(90deg, var(--teal-dim), transparent); }

/* ── SECTION HEAD ── */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ── PAGE TOP ── */
.page-top { padding-top: 72px; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 800px 400px at 70% 60%, rgba(29,181,133,.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--navy-mid) 0%, var(--navy) 100%);
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { max-width: 600px; }

/* ── FADE-IN ANIMATION ── */
.fi {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fi.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── STAT NUMBERS ── */
.stat-n {
  font-family: var(--fd);
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-l {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 6px;
  font-family: var(--fm);
  letter-spacing: 1px;
}

/* ── PROGRESS BARS ── */
.pbar { margin: 10px 0; }
.pbar-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-dim); margin-bottom: 5px; }
.pbar-track { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--teal-dim), var(--teal)); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 20px; }
  .site-nav { padding: 0 20px; height: 65px; }
  .page-top { padding-top: 65px; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px 20px;
    gap: 4px;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 14px; width: 100%; }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
}
