/* ============================================================
   KAYOCE LABS — Main Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg-primary:       #0A0E1A;
  --bg-card:          #161618;
  --bg-card-alt:      #1a1a1c;
  --bg-card-hi:       #1e1e22;
  --bg-card-dark:     #13131a;
  --bg-step-hi:       #14141a;

  --accent-green:     #00ff80;
  --accent-green-muted: #1a8c5a;
  --accent-green-muted2: #2a9a6a;
  --accent-green-dark: #14331f;

  --text-white:       #ffffff;
  --text-body:        #c8c8c8;
  --text-body-alt:    #b8b8b8;
  --text-secondary:   #888888;
  --text-tertiary:    #9a9a9a;
  --text-label:       #707070;
  --text-dim:         #505050;
  --text-off-white:   #d5d5d5;

  --border-subtle:    #2a2a2a;
  --border-card:      #222222;
  --border-green-muted: #2a3a30;

  --font-sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:        'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:        4px;
  --radius-md:        6px;
  --radius-lg:        10px;
  --radius-xl:        12px;

  --nav-height:       72px;
  --section-pad:      100px;
  --container-max:    1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.navbar.scrolled {
  border-bottom-color: var(--border-subtle);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-logo-text .word-kayoce {
  color: var(--text-white);
}

.nav-logo-text .word-labs {
  color: var(--accent-green);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-tertiary);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-links a.active {
  color: var(--text-white);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-green);
  border-radius: 2px;
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--accent-green);
  background: transparent;
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 40px 30px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 16px;
  color: var(--text-tertiary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text-white);
}

.nav-mobile .nav-cta {
  margin-top: 8px;
  text-align: center;
  justify-content: center;
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border-subtle);
}

.section:first-of-type {
  border-top: none;
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

/* Section headline */
.section-headline {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-headline.large {
  font-size: clamp(48px, 6vw, 76px);
}

/* Section subparagraph */
.section-sub {
  font-size: 17px;
  color: var(--text-body-alt);
  line-height: 1.55;
  max-width: 620px;
}

/* Hairline divider */
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--bg-primary);
  border-color: var(--accent-green);
}

.btn-primary:hover {
  background: #00e872;
  border-color: #00e872;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

.btn-outline-green {
  background: transparent;
  color: var(--accent-green);
  border-color: var(--accent-green);
}

.btn-outline-green:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 0;
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
}

.footer-brand-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer-brand-logo .word-kayoce { color: var(--text-white); }
.footer-brand-logo .word-labs   { color: var(--accent-green); }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-email:hover { color: var(--text-white); }

.footer-email svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.footer-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a,
.footer-col ul li span {
  font-size: 15px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text-white); }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: #888888;
}

/* ============================================================
   PAGE HEADER (shared across inner pages)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header .section-headline.large {
  max-width: 800px;
}

/* ============================================================
   CTA BAND (shared)
   ============================================================ */
.cta-band {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band-text h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.cta-band-text p {
  font-size: 15px;
  color: var(--text-body-alt);
}

/* ============================================================
   SCROLL FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   GREEN CHECKMARK LIST (shared)
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-body-alt);
  line-height: 1.5;
}

.check-list li::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  min-width: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 1px;
}

/* Dimmed check list (coming soon) */
.check-list.dim li {
  color: var(--text-label);
}

.check-list.dim li::before {
  opacity: 0.4;
}

/* ============================================================
   TAG / PILL BADGES
   ============================================================ */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

.tag-pill.green {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ============================================================
   ICON TILE
   ============================================================ */
.icon-tile {
  width: 44px;
  height: 44px;
  background: var(--accent-green-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
}

.icon-tile svg {
  color: var(--accent-green);
}

/* ============================================================
   PULL QUOTE BLOCK
   ============================================================ */
.pull-quote {
  border-left: 3px solid var(--accent-green);
  padding-left: 24px;
  margin-bottom: 32px;
}

.pull-quote blockquote {
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--text-off-white);
  line-height: 1.5;
  margin-bottom: 10px;
}

.pull-quote cite {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
}

/* ============================================================
   STAT CARD GRID
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stat-card .stat-number {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .container {
    padding: 0 28px;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 70px;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-headline {
    font-size: clamp(32px, 8vw, 52px);
  }

  .section-headline.large {
    font-size: clamp(36px, 9vw, 60px);
  }

  .pull-quote blockquote {
    font-size: 16px;
  }
}

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

  .btn {
    width: 100%;
    justify-content: center;
  }
}
