/* Cinematic landing hero — Equilibra (GSAP scroll experience) */

.cinematic-hero {
  --color-foreground: var(--text);
  --color-background: var(--bg);
  --color-muted-foreground: var(--text-secondary);
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.gsap-reveal {
  visibility: hidden;
}

.film-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

.bg-grid-theme {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-foreground) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-foreground) 5%, transparent) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.text-3d-matte {
  color: var(--color-foreground);
  text-shadow:
    0 10px 30px color-mix(in srgb, var(--color-foreground) 20%, transparent),
    0 2px 4px color-mix(in srgb, var(--color-foreground) 10%, transparent);
}

.text-silver-matte {
  background: linear-gradient(
    180deg,
    var(--color-foreground) 0%,
    color-mix(in srgb, var(--color-foreground) 40%, transparent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(0);
  filter:
    drop-shadow(0px 10px 20px color-mix(in srgb, var(--color-foreground) 15%, transparent))
    drop-shadow(0px 2px 4px color-mix(in srgb, var(--color-foreground) 10%, transparent));
}

.text-card-silver-matte {
  background: linear-gradient(180deg, #ffffff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateZ(0);
  filter:
    drop-shadow(0px 12px 24px rgba(0, 0, 0, 0.8))
    drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.6));
}

.premium-depth-card {
  background: linear-gradient(145deg, #2d2468 0%, #0b0d12 100%);
  box-shadow:
    0 40px 100px -20px rgba(0, 0, 0, 0.9),
    0 20px 40px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.card-sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 50;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(139, 125, 250, 0.12) 0%,
    transparent 40%
  );
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

.iphone-bezel {
  position: relative;
  width: 280px;
  height: 580px;
  border-radius: 3rem;
  background-color: #111;
  box-shadow:
    inset 0 0 0 2px #52525b,
    inset 0 0 0 7px #000,
    0 40px 80px -15px rgba(0, 0, 0, 0.9),
    0 15px 25px -5px rgba(0, 0, 0, 0.7);
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.hardware-btn {
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #404040 0%, #171717 100%);
  box-shadow:
    -2px 0 5px rgba(0, 0, 0, 0.8),
    inset -1px 0 1px rgba(255, 255, 255, 0.15),
    inset 1px 0 2px rgba(0, 0, 0, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 0;
}

.hardware-btn--silent {
  top: 120px;
  left: -3px;
  height: 25px;
  border-radius: 4px 0 0 4px;
}

.hardware-btn--vol-up {
  top: 160px;
  left: -3px;
  height: 45px;
  border-radius: 4px 0 0 4px;
}

.hardware-btn--vol-down {
  top: 220px;
  left: -3px;
  height: 45px;
  border-radius: 4px 0 0 4px;
}

.hardware-btn--power {
  top: 170px;
  right: -3px;
  height: 70px;
  border-radius: 0 4px 4px 0;
  transform: scaleX(-1);
  background: linear-gradient(90deg, #404040 0%, #171717 100%);
}

.screen-glare {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 45%);
}

.widget-depth {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.floating-ui-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(0, 0, 0, 0.5);
}

.btn-modern-light,
.btn-modern-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-modern-light {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 12px 24px -4px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px #fff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.06);
}

.btn-modern-light:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 6px 12px -2px rgba(0, 0, 0, 0.15),
    0 20px 32px -6px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px #fff,
    inset 0 -3px 6px rgba(0, 0, 0, 0.06);
}

.btn-modern-light:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.btn-modern-dark {
  background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 12px 24px -4px rgba(0, 0, 0, 0.9),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -3px 6px rgba(0, 0, 0, 0.8);
}

.btn-modern-dark:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
}

.btn-modern-dark:active {
  transform: translateY(1px);
  background: #18181b;
}

.btn-modern__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: -2px;
}

.btn-modern__label {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.progress-ring {
  transform: rotate(-90deg);
  transform-origin: center;
  stroke-dasharray: 402;
  stroke-dashoffset: 402;
  stroke-linecap: round;
}

.hero-text-wrapper {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  padding: 0 1rem;
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-text-wrapper h1 {
  font-size: clamp(2.25rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}

.hero-text-wrapper .text-track {
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.cta-wrapper {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100vw;
  padding: 0 1rem;
  pointer-events: auto;
  will-change: transform;
}

.cta-wrapper__title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

.cta-wrapper__desc {
  color: var(--color-muted-foreground);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.cta-wrapper__actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cta-wrapper__actions {
    flex-direction: row;
  }
}

.cinematic-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.main-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  width: 92vw;
  height: 92vh;
  height: 92dvh;
  border-radius: 32px;
}

@media (min-width: 768px) {
  .main-card {
    width: 85vw;
    height: 85vh;
    height: 85dvh;
    border-radius: 40px;
  }
}

.main-card__grid {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 10;
}

@media (min-width: 1024px) {
  .main-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 0 3rem;
  }
}

.card-right-text {
  order: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 20;
}

@media (min-width: 1024px) {
  .card-right-text {
    order: 3;
    justify-content: flex-end;
  }
}

.brand-mark {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  margin: 0;
  line-height: 0.9;
}

.mockup-scroll-wrapper {
  order: 2;
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

@media (min-width: 1024px) {
  .mockup-scroll-wrapper {
    height: 600px;
  }
}

.mockup-scale {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.65);
}

@media (min-width: 768px) {
  .mockup-scale {
    transform: scale(0.85);
  }
}

@media (min-width: 1024px) {
  .mockup-scale {
    transform: scale(1);
  }
}

.iphone-screen {
  position: absolute;
  inset: 7px;
  background: #050914;
  border-radius: 2.5rem;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 1);
  color: #fff;
  z-index: 10;
}

.dynamic-island {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.1);
}

.dynamic-island__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.phone-app {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.phone-app__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.phone-app__eyebrow {
  display: block;
  font-size: 10px;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.phone-app__title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.phone-app__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.phone-app__avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.phone-ring {
  position: relative;
  width: 11rem;
  height: 11rem;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.8));
}

.phone-ring__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.phone-ring__center {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.counter-val {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.phone-ring__label {
  font-size: 8px;
  color: rgba(196, 181, 253, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-top: 2px;
}

.phone-app__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-tx {
  border-radius: 1rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-tx__icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-tx__icon--red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.phone-tx__icon--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
}

.phone-tx__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.phone-tx__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

.phone-tx__date {
  font-size: 0.6875rem;
  color: #a3a3a3;
}

.phone-tx__value {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.phone-tx__value--red {
  color: #f87171;
}

.phone-tx__value--green {
  color: #4ade80;
}

.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.75rem;
  z-index: 30;
}

@media (min-width: 1024px) {
  .floating-badge {
    gap: 1rem;
    border-radius: 1rem;
    padding: 1rem;
  }
}

.floating-badge--goal {
  top: 1.5rem;
  left: -15px;
}

.floating-badge--ai {
  bottom: 3rem;
  right: -15px;
}

@media (min-width: 1024px) {
  .floating-badge--goal {
    top: 3rem;
    left: -80px;
  }

  .floating-badge--ai {
    bottom: 5rem;
    right: -80px;
  }
}

.floating-badge__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .floating-badge__icon {
    width: 40px;
    height: 40px;
  }
}

.floating-badge__icon img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .floating-badge__icon img {
    width: 20px;
    height: 20px;
  }
}

.floating-badge__icon--goal {
  background: linear-gradient(180deg, rgba(109, 94, 248, 0.25), rgba(45, 36, 104, 0.15));
  border: 1px solid rgba(139, 125, 250, 0.35);
}

.floating-badge__icon--ai {
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.25), rgba(13, 148, 136, 0.08));
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.floating-badge__title {
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  .floating-badge__title {
    font-size: 0.875rem;
  }
}

.floating-badge__sub {
  margin: 0;
  color: rgba(196, 181, 253, 0.55);
  font-size: 10px;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .floating-badge__sub {
    font-size: 0.75rem;
  }
}

.card-left-text {
  order: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  z-index: 20;
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .card-left-text {
    order: 1;
    text-align: left;
    padding: 0;
  }
}

.card-left-text__heading {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

@media (min-width: 1024px) {
  .card-left-text__heading {
    margin-bottom: 1.25rem;
  }
}

.card-left-text__desc {
  display: none;
  color: rgba(196, 181, 253, 0.75);
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 24rem;
}

.card-left-text__desc strong {
  color: #fff;
  font-weight: 600;
}

@media (min-width: 768px) {
  .card-left-text__desc {
    display: block;
  }
}

@media (min-width: 1024px) {
  .card-left-text__desc {
    margin: 0;
    max-width: none;
  }
}

/* Reduced motion / no-GSAP fallback */
.cinematic-hero--static .gsap-reveal {
  visibility: visible;
}

.cinematic-hero--static .main-card {
  width: 92vw;
  height: auto;
  min-height: 70vh;
  border-radius: 32px;
}

.cinematic-hero--static .cta-wrapper {
  display: none;
}

.cinematic-hero--static .hero-text-wrapper {
  position: relative;
  margin-bottom: 2rem;
  padding-top: calc(var(--header-h) + 2rem);
}

.cinematic-hero--static {
  height: auto;
  min-height: 100vh;
  flex-direction: column;
  padding-bottom: 3rem;
}

.cinematic-hero--static .cinematic-hero__stage {
  position: relative;
  inset: auto;
}

.cinematic-hero--static .progress-ring {
  stroke-dashoffset: 112;
}
