/* ════════════════════════════════════════════════════════
   KloudFokus — main.css
   Lebanon's Premier MSP · Premium Dark Theme
   Loaded via functions.php · GSAP + Lenis + Globe.gl
════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────
   0. CSS RESET & BASE
───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #0A0E17;
  color: #F0EBE0;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }
em { font-style: italic; }


/* ─────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────── */
:root {
  --bg:           #0A0E17;
  --surface:      #111827;
  --surface-2:    #1a2235;
  --gold:         #D4A843;
  --gold-light:   #F0C96A;
  --gold-dim:     rgba(212,168,67,0.12);
  --gold-border:  rgba(212,168,67,0.15);
  --gold-border-h:rgba(212,168,67,0.4);
  --text:         #F0EBE0;
  --text-muted:   #7A7A8E;
  --border:       rgba(212,168,67,0.12);

  /* Layout */
  --max-w:        1200px;
  --px:           clamp(1.25rem, 5vw, 3rem);
  --section-py:   clamp(5rem, 10vw, 9rem);

  /* Nav */
  --nav-h:        72px;

  /* Timing */
  --ease-out:     cubic-bezier(0.25, 0, 0.1, 1);
  --ease-gold:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:     0.25s;
  --dur-med:      0.4s;
  --dur-slow:     0.7s;
}


/* ─────────────────────────────────────────────────────
   2. TYPOGRAPHY SCALE
───────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

em {
  color: var(--gold);
  font-style: italic;
}


/* ─────────────────────────────────────────────────────
   3. UTILITIES
───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* Reveal utility (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-gold),
              transform var(--dur-slow) var(--ease-gold);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: #0A0E17;
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,67,0.3);
}
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold-border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

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

/* Tag pills */
.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────
   4. LOADER
───────────────────────────────────────────────────── */
#kf-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.ld-logo svg {
  width: 72px;
  height: 72px;
}

#ldPath {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}

.ld-bar {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}

.ld-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.05s linear;
}

.ld-txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}

/* When loader is hiding */
#kf-loader.is-hiding {
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────────────── */
#kf-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--px);
  transition: background var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              backdrop-filter var(--dur-med) var(--ease-out);
}

/* Frosted glass on scroll */
#kf-nav.is-scrolled {
  background: rgba(10,14,23,0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand span { color: var(--gold); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links li a {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-links li a:hover,
.nav-links li a.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: var(--gold) !important;
  color: #0A0E17 !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
  margin-left: 0.5rem;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px) !important;
}

/* Mobile hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}


/* ─────────────────────────────────────────────────────
   6. HERO
───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Particle canvas */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Radial vignette overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    transparent 0%,
    rgba(10,14,23,0.6) 70%,
    rgba(10,14,23,0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Headline */
.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.hero-headline em {
  color: var(--gold);
  font-style: italic;
}

/* Subtitle */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Floating status cards */
.hero-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: rgba(17,24,39,0.85);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.hero-card--left  { left: clamp(1rem, 6vw, 5rem);  bottom: 30%; }
.hero-card--right { right: clamp(1rem, 6vw, 5rem); top: 38%;   }

.hc-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-body { display: flex; flex-direction: column; gap: 0.1rem; }
.hc-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hc-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeInUp 1s 2s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────────
   7. STATS
───────────────────────────────────────────────────── */
.stats-section {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat-item {
  background: var(--surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.stat-item:hover { background: var(--surface-2); }

.stat-num {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

.stat-count {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  tabular-nums: normal;
}

.stat-sfx {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────────────────
   8. ABOUT
───────────────────────────────────────────────────── */
.about-section {
  padding-block: var(--section-py);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* Left */
.about-left { position: relative; }

.watermark {
  position: absolute;
  top: -1rem;
  left: -0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  color: rgba(212,168,67,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  z-index: 0;
  line-height: 1;
}

.about-left > * { position: relative; z-index: 1; }

.about-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.about-mission {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.about-mission svg { flex-shrink: 0; margin-top: 2px; }
.about-mission p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Right — visual cards */
.about-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.av-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.av-card:hover {
  border-color: var(--gold-border-h);
  transform: translateY(-3px);
}

.av-card--1 { grid-column: 1 / -1; }

.av-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.av-card strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.av-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.av-year {
  grid-column: 1 / -1;
  text-align: center;
  padding: 1.25rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
}
.av-year-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.av-year-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ─────────────────────────────────────────────────────
   9. SERVICES
───────────────────────────────────────────────────── */
.services-section {
  padding-block: var(--section-py);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.svc-card {
  position: relative;
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease-out);
  cursor: default;
}

/* Gold top-border reveal on hover */
.svc-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med) var(--ease-gold);
}
.svc-card:hover .svc-top-border { transform: scaleX(1); }
.svc-card:hover { background: var(--surface-2); }

.svc-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.svc-card:hover .svc-icon { background: rgba(212,168,67,0.18); }

.svc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.svc-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.svc-tags span {
  font-size: 0.68rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.svc-card:hover .svc-tags span {
  border-color: var(--gold-border);
  color: var(--gold);
}


/* ─────────────────────────────────────────────────────
   10. DIFFERENCE
───────────────────────────────────────────────────── */
.diff-section {
  padding-block: var(--section-py);
  overflow: hidden;
}

.diff-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Left editorial */
.diff-left {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.diff-headline {
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.diff-headline em { color: var(--gold); }

.diff-sub {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

/* Right — numbered cards */
.diff-right {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.diff-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  align-items: flex-start;
  transition: background var(--dur-fast) var(--ease-out);
}
.diff-card:hover { background: var(--surface-2); }

.diff-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  padding-top: 0.3rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.diff-card-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.diff-card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ─────────────────────────────────────────────────────
   11. VALUE PROPS
───────────────────────────────────────────────────── */
.value-section {
  padding-block: var(--section-py);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.val-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.val-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.val-card:hover { background: var(--surface-2); }
.val-card:hover::before { opacity: 1; }

.val-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.val-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.val-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ─────────────────────────────────────────────────────
   12. PARTNERS & GLOBE
───────────────────────────────────────────────────── */
.partners-section {
  padding-block: var(--section-py);
  overflow: hidden;
}

/* Globe wrapper — centers the canvas globe */
.globe-wrap {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  margin-block: 3rem;
  position: relative;
  /* Globe.gl creates its own canvas — let it breathe */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Globe atmosphere glow */
.globe-wrap::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Marquee */
.marquee-wrap {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  margin-top: 1rem;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0.5rem 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out);
}
.marquee-item:hover { color: var(--gold); }


/* ─────────────────────────────────────────────────────
   13. CONTACT
───────────────────────────────────────────────────── */
.contact-section {
  padding-block: var(--section-py);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Info column */
.contact-info { padding-right: 2rem; }

.contact-sub {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cd-icon {
  width: 40px;
  height: 40px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details a,
.contact-details span {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-details a:hover { color: var(--gold); }

/* Form */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group label .req { color: var(--gold); }

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  resize: vertical;
  min-height: 44px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(122,122,142,0.5); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(212,168,67,0.5);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.08);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(239,68,68,0.4);
}

/* Submit button states */
#cfSubmit {
  position: relative;
  min-height: 52px;
}
#cfSubmit .btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10,14,23,0.3);
  border-top-color: #0A0E17;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#cfSubmit.is-loading .btn-text { opacity: 0; }
#cfSubmit.is-loading .btn-spinner { display: block; }
#cfSubmit.is-loading {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feedback message */
.form-feedback {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  display: none;
}
.form-feedback.is-success {
  display: block;
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.25);
  color: #34d399;
}
.form-feedback.is-error {
  display: block;
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}


/* ─────────────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────────────── */
#kf-footer {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.footer-links li a {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links li a:hover { color: var(--gold); }


/* ─────────────────────────────────────────────────────
   15. KEYFRAMES & ANIMATIONS
───────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 0.2; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Pause marquee on hover */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* Floating card bob */
@keyframes cardBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-card--left  { animation: cardBob 5s ease-in-out 0.5s infinite; }
.hero-card--right { animation: cardBob 5s ease-in-out 1.25s infinite; }


/* ─────────────────────────────────────────────────────
   16. RESPONSIVE
───────────────────────────────────────────────────── */

/* Large tablets */
@media (max-width: 1024px) {
  .diff-grid    { grid-template-columns: 1fr; }
  .diff-left    { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { padding-right: 0; }
}

/* Tablets */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Nav mobile */
  .nav-links { display: none; flex-direction: column; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10,14,23,0.97);
    backdrop-filter: blur(16px);
    padding: 1rem var(--px) 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
  }
  .nav-links.is-open li a { padding: 0.7rem 1rem; display: block; }
  .nav-toggle { display: flex; }

  /* Hero cards — hide on small screens */
  .hero-card { display: none; }

  /* Stats — 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .watermark  { font-size: 3.5rem; }

  /* Services — 2 columns */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Value — 1 column */
  .value-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 540px) {
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.5rem; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .diff-grid { gap: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
}
