/* ══════════════════════════════════════════════════════════════
   Cinematic Landing Page — Stylesheet
   ══════════════════════════════════════════════════════════════ */

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

:root {
  --black:   #000000;
  --dark:    #080808;
  --text:    #ffffff;
  --sub:     rgba(255,255,255,0.55);
  --muted:   rgba(255,255,255,0.28);
  --border:  rgba(255,255,255,0.07);
  --green:   #10b981;
  --green-l: #34d399;
  --radius:  8px;
}

html { scroll-behavior: auto; }

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

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */

.cin-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 64px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.cin-nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.cin-nav-logo span { color: var(--green); }

.cin-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.cin-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.cin-nav-links a:hover { color: #fff; }
.cin-nav-links a.active { color: var(--green); }

.cin-nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  background: var(--green);
  padding: 9px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.cin-nav-cta:hover { background: var(--green-l); }

/* Dropdown — shared pattern */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-arrow { transition: transform 0.2s; flex-shrink: 0; }
.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  list-style: none;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px 0 6px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
}
.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-dropdown a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-dropdown a.active { color: var(--green); }
.nav-dropdown .dd-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); opacity: 0.45; flex-shrink: 0;
}
.nav-dropdown a:hover .dd-dot,
.nav-dropdown a.active .dd-dot { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   SCROLL DRIVER — sticky hero container
   ══════════════════════════════════════════════════════════════ */

.cin-scroll-driver {
  position: relative;
  height: 400vh;
}

.cin-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--black);
}

/* ══════════════════════════════════════════════════════════════
   VIDEO — full-bleed background
   ══════════════════════════════════════════════════════════════ */

.cin-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   TEXT MASK — multiply blend creates the video-inside-letters effect

   How it works:
   - This div has a solid black background (blocks video)
   - The white text multiplied with the video = video shows through letter shapes
   - Black background multiplied with video = black (video blocked)
   - As the text scales up, letter strokes fill the viewport
   ══════════════════════════════════════════════════════════════ */

.cin-text-mask {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  background: var(--black);
  mix-blend-mode: multiply;
  transform-origin: center center;
  will-change: transform;
  /* Note: do NOT add isolation here — it would break the blend */
}

.cin-future {
  font-size: clamp(100px, 22vw, 320px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-align: center;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL INDICATOR — small hint at the bottom
   ══════════════════════════════════════════════════════════════ */

.cin-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  mix-blend-mode: multiply; /* stays visible on dark bg */
  /* Use a separate element NOT inside .cin-text-mask so blend works independently */
}

/* Placed OUTSIDE .cin-text-mask so it's not affected by its blend mode */
.cin-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.4s;
}
.cin-scroll-indicator.hidden { opacity: 0; }

.cin-scroll-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.cin-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: cin-scroll-pulse 2s ease-in-out infinite;
}
@keyframes cin-scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════════════════════════
   OUR VISION — post-reveal content
   ══════════════════════════════════════════════════════════════ */

.cin-vision {
  background: var(--dark);
  padding: 160px 40px;
  position: relative;
}

/* Subtle top fade to blend seamlessly with the video above */
.cin-vision::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.cin-vision-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cin-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.cin-vision-title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 80px;
}

/* Glassmorphism panels grid */
.cin-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 100px;
}

.cin-panel {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}
.cin-panel:hover { background: rgba(255,255,255,0.055); }
.cin-panel:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cin-panel:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.cin-panel-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
}

.cin-panel h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.25;
}

.cin-panel p {
  font-size: 14px;
  font-weight: 400;
  color: var(--sub);
  line-height: 1.8;
}

/* Wide panel — full-width statement */
.cin-statement {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 72px 64px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  gap: 80px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cin-statement-quote {
  flex: 1;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
}

.cin-statement-quote em {
  font-style: normal;
  color: var(--green);
}

.cin-statement-aside {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 80px;
  border-left: 1px solid var(--border);
}

.cin-statement-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cin-statement-line strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}
.cin-statement-line span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════════════════ */

.cin-cta {
  background: var(--black);
  padding: 160px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cin-cta-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cin-cta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.cin-cta-title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 48px;
}

.cin-cta-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.cin-btn-primary {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  background: var(--green);
  padding: 15px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: -0.01em;
}
.cin-btn-primary:hover { background: var(--green-l); }

.cin-btn-ghost {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
}
.cin-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

/* ══════════════════════════════════════════════════════════════
   DEMO BADGE
   ══════════════════════════════════════════════════════════════ */

.cin-demo-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .cin-nav { padding: 0 24px; }
  .cin-nav-links { display: none; }

  .cin-panels { grid-template-columns: 1fr; gap: 2px; }
  .cin-panel:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .cin-panel:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .cin-statement { flex-direction: column; gap: 40px; padding: 48px 32px; }
  .cin-statement-aside { flex: none; padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 32px; width: 100%; }

  .cin-vision { padding: 120px 24px; }
  .cin-cta { padding: 120px 24px; }
}

@media (max-width: 600px) {
  .cin-future { font-size: clamp(72px, 22vw, 120px); }
  .cin-vision-title { margin-bottom: 48px; }
}
