/* Hero-specific styles */

.hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.9;
}
.blob-1 { width: 520px; height: 520px; top: -100px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.blob-2 { width: 460px; height: 460px; top: 220px; right: -120px; animation: drift2 28s ease-in-out infinite; }
.blob-3 { width: 360px; height: 360px; bottom: -80px; left: 40%; animation: drift3 24s ease-in-out infinite; }

@keyframes drift1 { 0%,100% {transform: translate(0,0)} 50% {transform: translate(40px, 60px)} }
@keyframes drift2 { 0%,100% {transform: translate(0,0)} 50% {transform: translate(-50px, 30px)} }
@keyframes drift3 { 0%,100% {transform: translate(0,0)} 50% {transform: translate(30px, -40px)} }

.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(108, 99, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 640px;
  padding-top: 48px;
  padding-bottom: 56px;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 0px; padding-top: 32px; }
}

.hero-left .eyebrow { margin-bottom: 28px; }

.hero-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: nowrap;
}
.hero-title > span { display: block; white-space: nowrap; }
@media (max-width: 960px) {
  .hero-title { font-size: clamp(36px, 7vw, 60px); }
}
.hero-title em {
  font-style: normal;
  font-family: var(--ff-display);
  font-weight: 600;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 36px;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-ctas .btn-primary {
  padding: 14px 24px;
  text-align: left;
}

.hero-proof {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
}
.hero-proof .stars { display: inline-flex; align-items: center; gap: 3px; }
.hero-proof .rating-num { margin-left: 8px; font-weight: 600; color: var(--ink); }
.proof-sep { width: 1px; height: 20px; background: var(--line); }
.proof-text strong { color: var(--ink); font-weight: 600; }

.avatars { display: inline-flex; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
  display: block;
}
.avatar:first-child { margin-left: 0; }

/* ----- hero right: deck stage ----- */
.hero-right {
  position: relative;
  height: 640px;
}
@media (max-width: 960px) {
  .hero-right { height: 560px; margin-top: 40px; }
}
@media (max-width: 520px) {
  .hero-right { height: 460px; }
}

.deck-stage-outer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fanned deck behind the phone */
.deck {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  pointer-events: none;
}
.deck-card {
  position: absolute;
  left: 0; top: 0;
  width: 200px; height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(22, 15, 90, 0.18), 0 4px 10px rgba(22, 15, 90, 0.08);
  background: #fff;
  transform-origin: center center;
  animation: deckIn 0.9s cubic-bezier(.2,.9,.3,1) backwards;
}
@media (max-width: 640px) {
  .deck-card { width: 150px; height: 210px; }
}
@keyframes deckIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 80px)) rotate(0); }
}

.deck-card::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
}

/* Phone */
.phone {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, #15131F, #1F1B30);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 30px 80px rgba(76, 67, 223, 0.28),
    0 10px 30px rgba(22, 15, 90, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  z-index: 5;
  animation: phoneFloat 6s ease-in-out infinite;
}
@media (max-width: 640px) { .phone { width: 230px; height: 460px; border-radius: 36px; } }
@keyframes phoneFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #0A0816;
  border-radius: 100px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-chrome {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  font-size: 11px;
  color: var(--ink);
}
.phone-chrome .mono { font-weight: 600; font-size: 13px; }
.phone-indicators { display: flex; gap: 6px; align-items: center; font-size: 10px; }
.sig { letter-spacing: -1px; }
.battery {
  display: inline-block;
  width: 22px; height: 10px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  position: relative;
}
.battery::before {
  content: ""; position: absolute; inset: 1px; width: 72%; background: var(--ink); border-radius: 1px;
}
.battery::after {
  content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: var(--ink); border-radius: 1px;
}

.phone-app-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.app-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lav-1); color: var(--brand-deep);
  padding: 5px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 500;
}
.app-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-a); box-shadow: 0 0 0 3px rgba(108,99,255,0.2); }
.app-icons { display: flex; gap: 10px; font-size: 16px; color: var(--muted); }

.phone-canvas {
  flex: 1;
  background: var(--bg-2);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-canvas > svg {
  max-height: 100%;
  width: auto;
  aspect-ratio: 400/560;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.phone-toolbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 14px 16px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}
[data-theme="dark"] .phone-toolbar { background: var(--card); }
.tool {
  width: 36px; height: 36px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-2);
  background: var(--bg-2);
  transition: background .15s ease, color .15s ease;
}
.tool.active { background: var(--brand-a); color: #fff; }

/* floating labels */
.float-label {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 231, 245, 0.9);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(22, 15, 90, 0.1);
  z-index: 6;
  animation: labelFloat 5s ease-in-out infinite;
}
[data-theme="dark"] .float-label {
  background: rgba(26, 24, 48, 0.88);
  border-color: rgba(37, 34, 64, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.float-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lav-2), var(--lav-3));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
}
@keyframes labelFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

@media (max-width: 640px) {
  .float-label { display: none; }
}

/* hero marquee */
.hero-marquee {
  position: relative;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  z-index: 2;
  mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
[data-theme="dark"] .hero-marquee { background: rgba(255,255,255,0.03); }
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-row {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-size: 22px;
  font-style: italic;
  color: var(--ink-2);
}
.marquee-item .mark {
  color: var(--brand-a);
  font-style: normal;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.33%); }
}
