/* Final hero override: keep video natural, blend only its bottom edge into graphite. */

:root {
  --graphite-black: #000;
  --graphite-950: #05080b;
  --graphite-900: #080d11;
  --graphite-850: #0b1117;
  --graphite-800: #10171d;
  --graphite-760: #141c24;
}

html,
body {
  background: var(--graphite-800) !important;
}

body,
main {
  background: linear-gradient(180deg, var(--graphite-black) 0 520px, var(--graphite-900) 760px, var(--graphite-800) 100%) !important;
}

.site-shell {
  background: transparent !important;
}

.site-header,
.site-header::before,
.site-header .brand,
.site-header .brand-logo,
.site-header .brand img.brand-logo {
  background: var(--graphite-black) !important;
}

.hero.section-reveal,
.hero.section-reveal.is-visible,
.hero.section-reveal.is-above,
.problem.section-reveal,
.problem.section-reveal.is-visible,
.problem.section-reveal.is-above {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
}

.hero {
  position: relative !important;
  display: flex !important;
  width: 100vw !important;
  min-height: 790px !important;
  margin: 0 !important;
  padding: 38px max(24px, calc((100vw - 1460px) / 2)) 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  overflow: hidden !important;
  text-align: center !important;
  background: linear-gradient(180deg, var(--graphite-black) 0 50%, var(--graphite-900) 74%, var(--graphite-800) 100%) !important;
  isolation: isolate !important;
}

.hero::before {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 88px !important;
  z-index: 2 !important;
  display: block !important;
  height: 360px !important;
  content: "" !important;
  pointer-events: none !important;
  opacity: 0.34 !important;
  background:
    radial-gradient(circle at 8% 16%, rgba(255,255,255,0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 34%, rgba(255,255,255,0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 31% 12%, rgba(255,255,255,0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 44%, rgba(255,255,255,0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 57% 24%, rgba(255,255,255,0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 38%, rgba(255,255,255,0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.58) 0 1px, transparent 2px),
    radial-gradient(circle at 94% 40%, rgba(255,255,255,0.36) 0 1px, transparent 2px) !important;
  filter: drop-shadow(0 0 4px rgba(190, 218, 255, 0.34)) !important;
  animation: tahiruStarShimmer 8s ease-in-out infinite !important;
}

.hero::after {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  z-index: 4 !important;
  display: block !important;
  height: 250px !important;
  content: "" !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(16, 23, 29, 0) 0%, rgba(16, 23, 29, 0.28) 32%, rgba(16, 23, 29, 0.72) 68%, var(--graphite-800) 100%) !important;
}

.hero-copy {
  position: relative !important;
  z-index: 6 !important;
  width: min(820px, 100%) !important;
  max-width: 820px !important;
  margin: 0 auto !important;
  transform: none !important;
  text-align: center !important;
}

.hero-copy .eyebrow {
  margin: 0 auto 16px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  overflow: visible !important;
}

.hero-copy h1 {
  max-width: 820px !important;
  margin: 0 auto 20px !important;
  font-size: clamp(2.65rem, 4.6vw, 5rem) !important;
  font-weight: 560 !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.hero-text {
  max-width: 520px !important;
  margin: 0 auto !important;
  font-size: clamp(1rem, 1.25vw, 1.16rem) !important;
  text-align: center !important;
}

.hero-actions {
  justify-content: center !important;
  margin-top: 24px !important;
}

.hero-video-left,
.hero-video-right {
  display: none !important;
}

.hero-world-video {
  position: absolute !important;
  left: 50% !important;
  top: 230px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1 !important;
  width: 100vw !important;
  height: clamp(500px, 48vw, 720px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}

.hero-world-video::before {
  display: none !important;
  content: none !important;
}

.hero-world-video::after {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: -1px !important;
  z-index: 3 !important;
  height: 240px !important;
  content: "" !important;
  pointer-events: none !important;
  background: linear-gradient(180deg, rgba(16, 23, 29, 0) 0%, rgba(16, 23, 29, 0.18) 28%, rgba(16, 23, 29, 0.58) 62%, var(--graphite-800) 100%) !important;
}

.hero-world-video video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 56% !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.problem,
.what-it-does,
.product-preview,
.how-it-works,
.why-tahiru,
.supported,
.faq,
.final-cta,
.site-footer {
  background: linear-gradient(180deg, var(--graphite-800) 0%, var(--graphite-850) 48%, var(--graphite-760) 100%) !important;
}

.problem {
  margin-top: -1px !important;
  padding-top: 110px !important;
}

.problem::after {
  background: linear-gradient(180deg, rgba(16, 23, 29, 0.02) 0%, rgba(10, 17, 22, 0.04) 36%, rgba(17, 24, 32, 0.5) 100%) !important;
}

.tahiru-workflow {
  position: relative !important;
  display: block !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 104px max(24px, calc((100vw - 1320px) / 2)) 118px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 147, 64, 0.11), transparent 27%),
    radial-gradient(circle at 82% 14%, rgba(104, 164, 255, 0.12), transparent 31%),
    linear-gradient(180deg, var(--graphite-850) 0%, var(--graphite-800) 48%, #0a0f14 100%) !important;
  isolation: isolate !important;
}

.tahiru-workflow::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 78%, transparent);
  opacity: 0.7;
}

.workflow-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.workflow-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 30px;
}

.workflow-tab {
  appearance: none;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: rgba(221, 228, 236, 0.58);
  cursor: pointer;
  font: inherit;
  font-size: clamp(0.78rem, 1.08vw, 0.98rem);
  font-weight: 780;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.workflow-tab:hover,
.workflow-tab.is-active {
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(255, 160, 84, 0.28);
}

.workflow-tab:hover {
  transform: translateY(-1px);
}

.workflow-tab-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 146, 68, 0.38), rgba(104, 164, 255, 0.24), transparent);
}

.workflow-tab-line::before,
.workflow-tab-line::after {
  position: absolute;
  top: 0;
  width: 42%;
  height: 1px;
  content: "";
  border-top: 1px dashed rgba(255, 146, 68, 0.42);
}

.workflow-tab-line::before { left: 0; }
.workflow-tab-line::after { right: 0; }

.workflow-tab-line span {
  position: absolute;
  top: -4px;
  left: 0;
  width: 25%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9244, #ffa971, #69a9ff);
  box-shadow: 0 0 26px rgba(255, 146, 68, 0.34), 0 0 26px rgba(104, 164, 255, 0.18);
  transform: translateX(calc(var(--active-index, 0) * 100%));
  transition: transform 260ms ease;
}

.workflow-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  min-height: 560px;
  padding-top: 52px;
}

.workflow-visuals {
  position: relative;
  min-height: 520px;
  perspective: 1200px;
}

.workflow-art {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background-image:
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04) 34%, rgba(0,0,0,0.18) 100%),
    var(--art-image),
    radial-gradient(circle at 24% 20%, rgba(255,146,68,0.7), transparent 30%),
    radial-gradient(circle at 78% 24%, rgba(104,164,255,0.58), transparent 34%),
    linear-gradient(135deg, rgba(255,146,68,0.4), rgba(205,84,231,0.24), rgba(104,164,255,0.34));
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(255,255,255,0.06),
    0 32px 90px rgba(0,0,0,0.48);
  transform-style: preserve-3d;
  transition: transform 360ms ease, opacity 260ms ease, filter 260ms ease;
}

.workflow-art::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.28), transparent 28%, transparent 68%, rgba(255,255,255,0.12));
  mix-blend-mode: screen;
  opacity: 0.72;
}

.workflow-art::after {
  position: absolute;
  inset: 1px;
  content: "";
  pointer-events: none;
  border-radius: 27px;
  background: linear-gradient(180deg, rgba(8, 13, 17, 0.04), rgba(8, 13, 17, 0.34));
}

.workflow-art-one {
  left: 4%;
  top: 48px;
  width: 58%;
  aspect-ratio: 1.48;
  transform: rotateX(4deg) rotateY(-10deg) rotateZ(-4deg) translateY(16px);
}

.workflow-art-two {
  right: 4%;
  top: 112px;
  width: 50%;
  aspect-ratio: 1.1;
  transform: rotateX(5deg) rotateY(9deg) rotateZ(5deg) translateY(34px);
  opacity: 0.84;
}

.workflow-art-three {
  left: 22%;
  bottom: 36px;
  width: 54%;
  aspect-ratio: 1.58;
  transform: rotateX(8deg) rotateY(2deg) rotateZ(2deg) translateY(42px);
  opacity: 0.76;
}

.workflow-art.is-active {
  z-index: 2;
  opacity: 1;
  filter: saturate(1.18) contrast(1.04);
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateY(-18px) scale(1.035);
  animation: workflowCardLift 7s ease-in-out infinite;
}

.workflow-copy {
  position: relative;
  z-index: 3;
  max-width: 590px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035) 42%, rgba(0,0,0,0.14)),
    rgba(9, 14, 19, 0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 28px 80px rgba(0,0,0,0.32);
  backdrop-filter: blur(24px) saturate(1.18);
}

.workflow-copy.is-updating {
  animation: workflowCopyRise 260ms ease both;
}

.workflow-copy h2 {
  margin: 0 0 18px;
  color: #f8fafc;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 540;
  line-height: 1.04;
}

.workflow-copy > p:not(.eyebrow) {
  max-width: 540px;
  margin-bottom: 0;
  color: rgba(221, 228, 236, 0.76);
  font-size: clamp(1rem, 1.32vw, 1.18rem);
  line-height: 1.72;
}

.workflow-proof {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
}

.workflow-proof span {
  color: rgba(221, 228, 236, 0.68);
  font-size: 0.86rem;
}

.workflow-proof strong {
  color: #ffc86a;
  font-size: 1.05rem;
}

@keyframes tahiruStarShimmer {
  0%, 100% { opacity: 0.24; filter: drop-shadow(0 0 3px rgba(190, 218, 255, 0.22)); }
  50% { opacity: 0.42; filter: drop-shadow(0 0 6px rgba(190, 218, 255, 0.42)); }
}

@keyframes workflowCardLift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes workflowCopyRise {
  0% { opacity: 0.72; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .workflow-art.is-active,
  .workflow-copy.is-updating {
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .hero {
    min-height: 730px !important;
    padding: 34px 24px 0 !important;
  }

  .hero-world-video {
    top: 238px !important;
    height: clamp(460px, 58vw, 620px) !important;
  }

  .problem {
    padding-top: 100px !important;
  }

  .tahiru-workflow {
    padding: 86px 24px 96px !important;
  }

  .workflow-tabs {
    gap: 8px;
  }

  .workflow-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 38px;
  }

  .workflow-visuals {
    min-height: 470px;
  }

  .workflow-copy {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 660px !important;
    padding: 30px 16px 0 !important;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 13vw, 3.25rem) !important;
  }

  .hero-world-video {
    top: 248px !important;
    height: 430px !important;
  }

  .problem {
    padding-top: 86px !important;
  }

  .tahiru-workflow {
    padding: 70px 16px 80px !important;
  }

  .workflow-tabs {
    grid-template-columns: 1fr 1fr;
    padding-bottom: 20px;
  }

  .workflow-tab-line {
    display: none;
  }

  .workflow-tab {
    min-height: 42px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.035);
  }

  .workflow-tab.is-active {
    border-color: rgba(255, 146, 68, 0.42);
    background: rgba(255, 146, 68, 0.1);
  }

  .workflow-visuals {
    min-height: 360px;
  }

  .workflow-art-one {
    left: 0;
    width: 72%;
  }

  .workflow-art-two {
    right: 0;
    width: 62%;
  }

  .workflow-art-three {
    left: 12%;
    width: 76%;
  }

  .workflow-copy {
    padding: 26px;
    border-radius: 24px;
  }
}
