/* ═══════════════════════════════════════════════
   TOOFAN CLUB — style.css
   Dark cinematic · Gold accent · Premium editorial
   ═══════════════════════════════════════════════ */

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

:root {
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-dim:    rgba(201, 168, 76, 0.18);
  --gold-line:   rgba(201, 168, 76, 0.25);
  --bg:          #05050a;
  --bg2:         #090912;
  --bg3:         #0d0d18;
  --text:        #f0ede6;
  --text-dim:    rgba(240, 237, 230, 0.45);
  --text-faint:  rgba(240, 237, 230, 0.22);
  --radius:      1px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1;
}

/* ─── STAR CANVAS (fixed bg) ───────────────────── */
#starsCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── CURSOR SPOTLIGHT ─────────────────────────── */
#cursor-spot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  mix-blend-mode: screen;
  transition: opacity 0.3s;
}

/* ─── UTILITY ───────────────────────────────────── */
.g-line {
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, transparent, var(--gold-line), transparent);
}
.section-inner  { padding: 0 48px 48px; }
.section-padded { padding: 80px 0; }

/* ─── SCROLL REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.visible        { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }
.reveal-d4 { transition-delay: 0.48s; }

/* ─── NAV ───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 0.5px solid var(--gold-line);
  background: rgba(5, 5, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--gold-light);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0.5px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
  padding: 9px 22px;
  cursor: pointer;
  transition: all 0.25s;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
}
.nav-cta:hover { background: var(--gold-dim); border-color: var(--gold); }

/* ─── BUTTONS ───────────────────────────────────── */
.btn-gold {
  display: inline-block;
  background: linear-gradient(135deg, #c9a84c, #a8863a);
  color: #05050a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn-gold:hover { opacity: 0.85; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0.5px solid var(--gold-line);
  padding: 14px 28px;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.btn-outline:hover { background: var(--gold-dim); }

/* ─── SECTION LABEL ─────────────────────────────── */
.s-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 0.5px;
  background: var(--gold);
}

/* ─── HERO ──────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 0.5px;
  background: var(--gold);
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 820px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 52px;
  font-weight: 300;
}

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

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-line {
  width: 0.5px;
  height: 52px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

/* ─── TICKER ────────────────────────────────────── */
.ticker-wrap {
  overflow: hidden;
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
  background: rgba(201, 168, 76, 0.03);
  position: relative;
  z-index: 1;
}
.ticker-inner {
  display: flex;
  width: max-content;
  animation: tickerMove 30s linear infinite;
  padding: 12px 0;
}
.tick {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  padding: 0 36px;
  border-right: 0.5px solid var(--gold-line);
  text-transform: uppercase;
  white-space: nowrap;
}
.tick span { color: var(--gold); margin-left: 8px; }
@keyframes tickerMove {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── STATS BAND ────────────────────────────────── */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-line);
  border-top: 0.5px solid var(--gold-line);
  position: relative;
  z-index: 1;
}
.stat { background: var(--bg); padding: 48px 40px; }
.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  line-height: 1.7;
}

/* ─── SERVICES GRID ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-line);
}
.svc {
  background: var(--bg);
  padding: 36px 28px 52px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}
.svc:hover { background: var(--bg3); }
.svc-corner {
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 20px;
  border-top: 0.5px solid var(--gold-line);
  border-right: 0.5px solid var(--gold-line);
}
.svc-num {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.svc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.svc-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
}
.svc-arrow {
  position: absolute;
  bottom: 24px; right: 24px;
  font-size: 16px;
  color: var(--gold-line);
  transition: all 0.2s;
}
.svc:hover .svc-arrow { color: var(--gold); transform: translate(2px, -2px); }

/* ─── AI / INTELLIGENCE SECTION ─────────────────── */
.ai-section {
  background: var(--bg2);
  border-top: 0.5px solid var(--gold-line);
  border-bottom: 0.5px solid var(--gold-line);
  padding: 80px 48px;
  position: relative;
  z-index: 1;
}
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.ai-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.ai-text h2 em { color: var(--gold-light); font-style: italic; }
.ai-text p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 32px;
}

.signal-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.sig {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(201, 168, 76, 0.04);
  border: 0.5px solid var(--gold-line);
  border-radius: var(--radius);
  transition: background 0.2s;
}
.sig:hover { background: rgba(201, 168, 76, 0.08); }
.sig-name { font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em; }
.sig-badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.sig-green {
  background: rgba(29, 158, 117, 0.15);
  color: #5dcaa5;
  border: 0.5px solid rgba(29, 158, 117, 0.25);
}
.sig-gold {
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border: 0.5px solid var(--gold-line);
}

/* ─── CHART PANEL ───────────────────────────────── */
.chart-panel {
  background: var(--bg);
  border: 0.5px solid var(--gold-line);
  padding: 24px;
}
.chart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chart-panel-title {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.chart-panel-sub { font-size: 10px; color: var(--text-faint); }

.chart-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.chart-tab {
  font-size: 10px;
  padding: 5px 14px;
  border: 0.5px solid var(--gold-line);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}
.chart-tab.active { background: var(--gold-dim); color: var(--gold); border-color: var(--gold); }
.chart-tab:hover:not(.active) { background: rgba(201,168,76,0.06); }

#predChart { width: 100% !important; display: block; }

.chart-legend { display: flex; gap: 20px; margin-top: 14px; }
.leg { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--text-faint); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ─── PROCESS / HOW WE WORK ─────────────────────── */
.process-section { background: var(--bg); position: relative; z-index: 1; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gold-line);
}
.pstep { background: var(--bg); padding: 40px 32px; }
.pstep-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: rgba(201, 168, 76, 0.1);
  line-height: 1;
  margin-bottom: 16px;
}
.pstep-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}
.pstep-desc { font-size: 12px; color: var(--text-dim); line-height: 1.8; font-weight: 300; }

/* ─── TEAM GRID ─────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gold-line);
}
.tmember {
  background: var(--bg);
  padding: 28px 24px;
  transition: background 0.2s;
}
.tmember:hover { background: var(--bg3); }
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0.5px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 18px;
  background: var(--gold-dim);
}
/* To use real photos instead of initials:
   Replace .t-avatar with <img class="t-avatar-img" src="team/name.jpg" alt="Name">
   and add: .t-avatar-img { width:48px;height:48px;border-radius:50%;object-fit:cover;border:0.5px solid var(--gold-line);margin-bottom:18px; }
*/
.t-name { font-size: 14px; font-weight: 400; color: var(--text); margin-bottom: 4px; }
.t-role {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.t-linkedin {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s;
}
.t-linkedin:hover { color: var(--gold); }

/* ─── CTA SECTION ───────────────────────────────── */
.cta-section {
  background: var(--bg2);
  text-align: center;
  padding: 100px 48px;
  position: relative;
  z-index: 1;
}
.cta-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-h em { color: var(--gold-light); font-style: italic; }
.cta-sub {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 auto 44px;
  line-height: 1.8;
  font-weight: 300;
}
.cta-row { display: flex; justify-content: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.cta-meta { font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; }

/* ─── FOOTER ────────────────────────────────────── */
footer {
  padding: 24px 48px;
  border-top: 0.5px solid var(--gold-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  gap: 16px;
}
.f-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.f-links { display: flex; gap: 24px; }
.f-links a {
  font-size: 10px;
  color: var(--text-faint);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.f-links a:hover { color: var(--gold); }
.f-copy { font-size: 10px; color: var(--text-faint); letter-spacing: 0.06em; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 60px; }
  .hero-h1 { font-size: clamp(40px, 10vw, 64px); }
  .stats-band { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layout { grid-template-columns: 1fr; gap: 48px; }
  .ai-section { padding: 60px 24px; }
  .process-steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  section, .section-padded { padding-left: 24px; padding-right: 24px; }
  .section-inner { padding-left: 24px; padding-right: 24px; }
  footer { padding: 20px 24px; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cta-row { flex-direction: column; align-items: center; }
}
