/* Shanmuk Analytics — Cinematic restraint */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0A0A0F;
  --gold: #C9A84C;
  --text: #F5F5F7;
  --body: #8A8A95;
  --dim: rgba(138,138,149,0.4);
  --border: rgba(201,168,76,0.18);
  --border-rest: rgba(201,168,76,0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 400;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

/* Ambient gradient — one only, top-right */
body::before {
  content: '';
  position: fixed;
  width: 1200px; height: 1200px;
  right: -400px; top: -400px;
  background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
  filter: blur(180px);
  pointer-events: none;
  z-index: 0;
}

/* Film grain */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  background-size: 128px;
}

::selection { background: rgba(201,168,76,0.2); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.15); border-radius: 2px; }

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

/* ---- Cursor ---- */
.cursor {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s ease;
}
.cursor.big { width: 28px; height: 28px; background: rgba(201,168,76,0.12); }

@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none !important; }
}

/* ---- Page transition ---- */
.transition-overlay {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--bg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s var(--ease);
}
.transition-overlay.leaving { opacity: 1; pointer-events: all; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px; padding: 0 40px;
  border-bottom: 1px solid transparent;
  transition: all 0.5s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255,255,255,0.04);
}
.nav-logo {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav-logo span { color: var(--gold); }
.nav-est {
  display: block; font-size: 10px; font-weight: 400;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(240,240,247,0.35); margin-top: 2px;
  font-style: normal;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim);
  transition: color 0.4s ease;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; height: 1px;
  width: 0; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none;
  flex-direction: column; gap: 5px; padding: 4px; cursor: none;
}
.hamburger span {
  display: block; width: 20px; height: 1px; background: var(--gold);
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }
.mobile-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(30px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 44px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-overlay a {
  font-size: 24px; font-weight: 300;
  color: var(--dim); letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.mobile-overlay a:hover { color: var(--gold); }

/* ---- Typography ---- */
.label {
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 28px;
}
.display {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text);
}
.display-sm {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300; line-height: 1.08;
  letter-spacing: -0.02em; color: var(--text);
}
.heading {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300; line-height: 1.12;
  letter-spacing: -0.02em; color: var(--text);
}
.body-text {
  font-size: 17px; font-weight: 400;
  line-height: 1.7; color: var(--body);
  max-width: 560px;
}
.gold { color: var(--gold); }

/* ---- Layout ---- */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ---- Hero ---- */
.hero {
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative; z-index: 1;
}
.hero-inner { max-width: 860px; }

/* ---- Spacer ---- */
.spacer-60 { height: 60vh; }
.spacer-40 { height: 40vh; }

/* ---- Content section ---- */
.content-section {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; z-index: 1;
}
.content-section.centered { justify-content: center; text-align: center; }

/* ---- Buttons ---- */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-rest);
  padding: 16px 36px; border-radius: 4px;
  transition: border-color 0.3s ease;
}
.btn-ghost:hover { border-color: var(--border); }

.text-link {
  font-size: 14px; font-weight: 500;
  color: var(--gold); letter-spacing: 0.04em;
  position: relative; display: inline-block;
}
.text-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.4s var(--ease);
}
.text-link:hover::after { width: 100%; }

/* ---- Capability grid ---- */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 80px;
  max-width: 900px;
}
.cap-item {}
.cap-num {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; color: rgba(201,168,76,0.25);
  margin-bottom: 16px;
}
.cap-title {
  font-size: 20px; font-weight: 500;
  color: var(--text); margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.cap-desc {
  font-size: 15px; font-weight: 400;
  line-height: 1.7; color: var(--body);
}

/* ---- Stacked statements ---- */
.statement {
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.statement:last-child { border-bottom: none; }
.statement h3 {
  font-size: 20px; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.statement p {
  font-size: 15px; color: var(--body); line-height: 1.7;
  max-width: 480px;
}

/* ---- Numbered list ---- */
.n-list { max-width: 800px; }
.n-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 32px;
  padding: 44px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: start;
}
.n-item:last-child { border-bottom: none; }
.n-num {
  font-size: 48px; font-weight: 300;
  color: rgba(201,168,76,0.1); line-height: 1;
}
.n-item h3 {
  font-size: 18px; font-weight: 500;
  color: var(--text); margin-bottom: 8px;
}
.n-item p { font-size: 15px; color: var(--body); line-height: 1.7; }

/* ---- Cards ---- */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 960px;
}
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px; padding: 40px 32px;
  transition: border-color 0.3s ease;
}
.card:hover { border-color: rgba(201,168,76,0.12); }
.card h4 {
  font-size: 15px; font-weight: 500;
  color: var(--gold); margin-bottom: 12px;
}
.card p { font-size: 15px; color: var(--body); line-height: 1.7; }

/* ---- Form ---- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--dim); margin-bottom: 8px;
}
.form-input, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 14px 18px;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400;
  color: var(--text); outline: none;
  transition: border-color 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(138,138,149,0.3); }
.btn-submit {
  width: 100%; font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bg); background: var(--gold);
  border: none; padding: 16px; border-radius: 4px;
  cursor: none; transition: background 0.3s ease;
}
.btn-submit:hover { background: #D9BC60; }

/* ---- Terminal ---- */
.terminal {
  max-width: 760px; margin: 48px auto 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 10px; overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.terminal-dot { width: 7px; height: 7px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim); margin-left: 10px;
}
.terminal-body { padding: 20px; }
.terminal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.terminal-table th {
  text-align: left; padding: 8px 14px;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.terminal-table td {
  padding: 10px 14px; color: var(--body);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.terminal-table tr:last-child td { border-bottom: none; }
.t-val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.t-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; }
.t-dot.on { background: #28c840; }
.t-dot.proc { background: var(--gold); }

/* ---- Footer ---- */
.footer {
  padding: 56px 40px;
  border-top: 1px solid rgba(255,255,255,0.03);
  position: relative; z-index: 1;
  text-align: center;
}
.footer-line {
  font-size: 13px; font-weight: 400;
  color: rgba(138,138,149,0.4);
  margin-bottom: 6px;
}
.footer-note {
  font-size: 12px; font-weight: 400;
  color: rgba(138,138,149,0.2);
  margin-top: 16px;
}
.footer-note a { color: var(--gold); transition: opacity 0.3s ease; }
.footer-note a:hover { opacity: 0.7; }

/* ---- Reveal ---- */
.rv {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.rv.vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }
.rv-d3 { transition-delay: 0.3s; }
.rv-d4 { transition-delay: 0.4s; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  body { cursor: auto; }
  .wrap { padding: 0 28px; }
  .nav { padding: 0 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .display { font-size: 40px; }
  .display-sm { font-size: 36px; }
  .heading { font-size: 32px; }
  .cap-grid { grid-template-columns: 1fr; gap: 40px; }
  .n-item { grid-template-columns: 1fr; gap: 8px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 0 28px; }
  .footer { padding: 40px 28px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .spacer-60 { height: 30vh; }
  .spacer-40 { height: 20vh; }
}
