/* ============================================================
   KeyVC — Main Stylesheet
   keyvc.co
   
   HOW TO CUSTOMISE:
   ─────────────────
   • Brand colors  → Edit :root variables below (section "BRAND")
   • Logo text     → Search for class .logo-text in index.html
   • Logo image    → Replace images/logo.svg with your file,
                     then in index.html change .logo-mark to:
                     <img src="images/logo.svg" alt="KeyVC" class="logo-img">
                     and add: .logo-img { height: 32px; width: auto; }
   • Fonts         → Change the Google Fonts @import URL and
                     update --font-display / --font-body below
   • Copy/text     → All page text lives in index.html only
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── BRAND VARIABLES (edit here to retheme the whole site) ── */
:root {
  /* Core palette */
  --color-slate:          #1C2B2B;
  --color-slate-mid:      #243333;
  --color-slate-light:    #2E4040;
  --color-emerald:        #1D9E75;
  --color-emerald-light:  #5DCAA5;
  --color-emerald-muted:  #0F6E56;
  --color-emerald-dim:    rgba(29, 158, 117, 0.10);
  --color-gold:           #C9A96E;
  --color-gold-light:     #E8D5B0;
  --color-cream:          #F4F1EB;
  --color-cream-dark:     #E8E3D8;

  /* Semantic aliases */
  --bg-dark:              var(--color-slate);
  --bg-dark-mid:          var(--color-slate-mid);
  --bg-light:             var(--color-cream);
  --bg-light-dark:        var(--color-cream-dark);
  --accent:               var(--color-emerald);
  --accent-light:         var(--color-emerald-light);
  --accent-muted:         var(--color-emerald-muted);
  --border-dark:          rgba(29, 158, 117, 0.18);
  --border-light:         rgba(28, 43, 43, 0.12);

  /* Typography */
  --font-display:         'Cormorant Garamond', Georgia, serif;
  --font-body:            'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-2xl: 120px;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 64px;
}

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--color-slate);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); cursor: pointer; }
ul { list-style: none; }

/* ── UTILITY ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--space-sm); }
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.animate-fade-up  { animation: fadeUp 0.7s ease both; }
.animate-fade-in  { animation: fadeIn 0.6s ease both; }

/* Stagger delays for hero elements */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--color-slate);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.3s ease;
}
.nav.scrolled {
  background: rgba(28, 43, 43, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* LOGO SWAP: replace contents of this div with <img src="images/logo.svg"> */
}
.logo-mark svg { width: 16px; height: 16px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-cream);
  letter-spacing: 0.08em;
}
.logo-text em {
  font-style: normal;
  color: var(--accent-light);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 400;
  color: rgba(244, 241, 235, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent-light); }

/* Nav CTA */
.nav-cta {
  border: 1px solid var(--color-emerald);
  background: transparent;
  padding: 9px 22px;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover {
  background: var(--color-emerald);
  color: var(--color-cream);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--color-slate);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-md);
  z-index: 99;
  flex-direction: column;
  gap: var(--space-sm);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 13px;
  color: rgba(244, 241, 235, 0.6);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
}
.nav-mobile a:last-child { border: none; }
.nav-mobile .nav-cta { text-align: center; margin-top: 8px; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--color-slate);
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Radial fade over the grid */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, transparent 40%, var(--color-slate) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 400;
  color: var(--accent-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-emerald);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-sub {
  font-size: 15px;
  color: rgba(244, 241, 235, 0.5);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-emerald);
  color: #fff;
  padding: 14px 34px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--color-emerald-muted);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(244, 241, 235, 0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.btn-ghost-link:hover { color: var(--color-cream); }
.btn-ghost-link .arrow-box {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(244, 241, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: border-color 0.2s;
}
.btn-ghost-link:hover .arrow-box { border-color: rgba(244, 241, 235, 0.5); }

/* Hero stat panel */
.hero-right { position: relative; z-index: 1; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
}
.stat-cell {
  background: rgba(28, 43, 43, 0.95);
  padding: 28px 26px;
  transition: background 0.2s;
}
.stat-cell:hover { background: rgba(36, 51, 51, 0.98); }
.stat-num {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--accent-light); }
.stat-label {
  font-size: 10px;
  color: rgba(244, 241, 235, 0.38);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.stat-invite {
  background: rgba(28, 43, 43, 0.95);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-dark);
  margin-top: 1px;
}
.invite-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--accent-light);
  letter-spacing: 0.1em;
}
.invite-pulse .dot {
  width: 6px;
  height: 6px;
  background: var(--color-emerald);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.invite-note {
  font-size: 10px;
  color: rgba(244, 241, 235, 0.25);
  letter-spacing: 0.08em;
}

/* ── TICKER STRIP ─────────────────────────────────────────── */
.ticker {
  background: var(--accent-muted);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  font-size: 10px;
  font-weight: 400;
  color: rgba(244, 241, 235, 0.65);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ticker-item::after {
  content: '·';
  color: var(--accent-light);
  font-size: 14px;
}

/* ── SECTION HEADER ───────────────────────────────────────── */
.section-eyebrow {
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-rule {
  width: 40px;
  height: 1px;
  background: var(--color-emerald);
  margin: 20px 0;
  transform-origin: left;
}
.section-sub {
  font-size: 14px;
  color: rgba(28, 43, 43, 0.55);
  line-height: 1.75;
  max-width: 480px;
}

/* ── PLATFORM SECTION ─────────────────────────────────────── */
.platform-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
}
.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: start;
}

.feature-list { margin-top: var(--space-lg); }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-item:first-child { border-top: 1px solid var(--border-light); }
.feature-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--color-emerald);
  font-weight: 400;
  min-width: 22px;
  padding-top: 3px;
  flex-shrink: 0;
}
.feature-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-slate);
  margin-bottom: 5px;
}
.feature-desc {
  font-size: 13px;
  color: rgba(28, 43, 43, 0.5);
  line-height: 1.65;
}

/* ── DEAL TYPES SECTION ───────────────────────────────────── */
.deals-section {
  background: var(--color-slate);
  padding: var(--space-xl) 0;
}
.deals-section .section-eyebrow { color: rgba(93, 202, 165, 0.65); }
.deals-section .section-title   { color: var(--color-cream); }

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
  margin-top: var(--space-lg);
  border: 1px solid var(--border-dark);
}
.deal-card {
  background: var(--color-slate-mid);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s;
}
.deal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--color-emerald);
  transition: height 0.35s ease;
}
.deal-card:hover { background: rgba(36, 51, 51, 0.98); }
.deal-card:hover::before { height: 100%; }
.deal-type-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
  font-weight: 400;
}
.deal-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--color-cream);
  margin-bottom: 12px;
  line-height: 1.2;
}
.deal-desc {
  font-size: 12px;
  color: rgba(244, 241, 235, 0.42);
  line-height: 1.75;
}
.deal-tags {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.deal-tag {
  font-size: 9px;
  color: var(--accent-light);
  border: 1px solid rgba(29, 158, 117, 0.2);
  padding: 3px 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── ACCESS PROCESS ───────────────────────────────────────── */
.process-section {
  background: var(--bg-light-dark);
  padding: var(--space-xl) 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.process-step { position: relative; }
.step-connector {
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 1px;
  border-top: 1px dashed rgba(29, 158, 117, 0.25);
  pointer-events: none;
}
.process-step:last-child .step-connector { display: none; }
.step-icon {
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-emerald);
  font-family: var(--font-display);
  font-weight: 400;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.process-step:hover .step-icon {
  background: var(--color-emerald);
  color: var(--color-cream);
}
.step-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate);
  margin-bottom: 7px;
}
.step-desc {
  font-size: 12px;
  color: rgba(28, 43, 43, 0.5);
  line-height: 1.65;
}

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-section {
  background: var(--color-slate);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-dark);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  color: var(--color-cream);
  margin-bottom: 6px;
  line-height: 1.2;
}
.cta-sub {
  font-size: 13px;
  color: rgba(244, 241, 235, 0.4);
}
.cta-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.btn-outline {
  border: 1px solid rgba(244, 241, 235, 0.18);
  background: transparent;
  color: rgba(244, 241, 235, 0.55);
  padding: 13px 26px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover {
  border-color: rgba(244, 241, 235, 0.4);
  color: var(--color-cream);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--color-slate);
  border-top: 1px solid rgba(29, 158, 117, 0.08);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(244, 241, 235, 0.35);
  letter-spacing: 0.1em;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 10px;
  color: rgba(244, 241, 235, 0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-copy {
  font-size: 10px;
  color: rgba(244, 241, 235, 0.18);
  letter-spacing: 0.08em;
}

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner        { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-right        { max-width: 520px; }
  .platform-inner    { grid-template-columns: 1fr; gap: var(--space-lg); }
  .deal-grid         { grid-template-columns: 1fr 1fr; }
  .deal-grid .deal-card:last-child { grid-column: 1 / -1; }
  .process-steps     { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .process-step .step-connector { display: none; }
  .cta-inner         { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --space-xl: 56px; --space-lg: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger      { display: flex; }
  .hero               { padding-top: calc(var(--nav-height) + var(--space-lg)); }
  .hero h1            { font-size: 38px; }
  .hero-sub           { font-size: 14px; }
  .stat-grid          { grid-template-columns: 1fr 1fr; }
  .stat-num           { font-size: 36px; }
  .deal-grid          { grid-template-columns: 1fr; }
  .deal-grid .deal-card:last-child { grid-column: auto; }
  .process-steps      { grid-template-columns: 1fr; }
  .cta-buttons        { flex-wrap: wrap; }
  .footer-inner       { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hero h1   { font-size: 32px; }
  .stat-num  { font-size: 30px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
