@import './shared.css';

:root {
  --landing-glass: rgba(255, 255, 255, 0.75);
  --landing-card: rgba(255, 255, 255, 0.82);
  --landing-ring: rgba(119, 96, 243, 0.25);
  --landing-strong: #1f1a38;
  --landing-success: #10b981;
}

body {
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
  z-index: 0;
}

.ambient-glow--left {
  top: -16vw;
  left: -16vw;
  background: radial-gradient(circle, rgba(164, 127, 255, 0.34) 0%, rgba(164, 127, 255, 0) 64%);
}

.ambient-glow--right {
  top: 14vw;
  right: -18vw;
  background: radial-gradient(circle, rgba(82, 66, 167, 0.28) 0%, rgba(82, 66, 167, 0) 66%);
}

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: var(--landing-glass);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  animation: revealUp 0.6s ease-out both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--app-text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.brand span {
  font-size: 1.08rem;
  letter-spacing: 0.012em;
  line-height: 1.15;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(82, 66, 167, 0.18);
}

.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.top-links {
  margin-top: 0;
  gap: 16px;
  align-items: center;
}

.top-links a {
  color: var(--app-text-muted);
  font-weight: 600;
}

.top-links a:hover {
  color: var(--app-tint);
  text-decoration: none;
}

.hero {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.hero-content {
  background: var(--landing-card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--app-shadow);
}

.hero-kicker,
.section-kicker {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--app-tint);
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--landing-strong);
}

.hero-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--app-text-muted);
  line-height: 1.6;
  font-size: 1.04rem;
}

.cta-group {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 12px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 9px 24px rgba(17, 24, 39, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-button span {
  display: grid;
  gap: 2px;
}

.store-button strong {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.2;
}

.store-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.2;
  overflow: visible;
}

.store-button--apple {
  background: linear-gradient(145deg, #2f2f3a, #111827);
}

.store-button--google {
  background: linear-gradient(145deg, #245fce, #6a4ef5);
}

.store-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--landing-ring);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.16);
}

.store-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
}

.store-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.store-icon svg.apple-mark {
  transform: translateX(1px);
}

.store-icon svg.apple-mark path {
  fill: currentColor;
}

.store-icon svg.play-mark {
  width: 20px;
  height: 20px;
}

.store-button--disabled {
  pointer-events: none;
  cursor: not-allowed;
  filter: saturate(0.65) grayscale(0.2);
}

.store-button--disabled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.28));
}

.store-button--disabled::after {
  content: 'Coming Soon';
  position: absolute;
  top: 7px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(17, 24, 39, .8);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

#download .store-button--disabled::after {
  top: 0;
  right: 10px;
  padding: 3px 9px;
  line-height: 1;
  transform: translateY(-52%);
}

#download .store-button--disabled {
  overflow: visible;
}

.hero-quick-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.hero-quick-links a {
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card {
  width: min(330px, 100%);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 242, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(82, 66, 167, 0.2);
  padding: 24px;
}

.phone-card--main {
  position: relative;
  z-index: 2;
  animation: floatY 4.4s ease-in-out infinite;
}

.phone-card--main h2 {
  margin: 6px 0 12px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--landing-strong);
}

.phone-card--main ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.phone-card--main li {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(119, 96, 243, 0.08);
  border: 1px solid rgba(119, 96, 243, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
}

.phone-card--main li span {
  font-size: 0.9rem;
  color: var(--app-text-muted);
}

.phone-card--main li strong {
  color: var(--app-tint);
  font-size: 1.06rem;
}

.phone-card--float {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: 210px;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, var(--app-gradient-start), var(--app-gradient-end));
  color: #ffffff;
  z-index: 4;
  animation: floatY 3.6s ease-in-out infinite reverse;
}

.phone-card--float .mini-label,
.phone-card--float h3,
.phone-card--float .delta {
  color: #ffffff;
}

.phone-card--float h3 {
  margin: 4px 0;
  font-size: 1.3rem;
}

.phone-card--float .delta {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.mini-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--app-text-soft);
  font-weight: 700;
}

.feature-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--app-shadow);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.16rem;
  color: var(--landing-strong);
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 10px 0 0;
  line-height: 1.58;
  color: var(--app-text-muted);
}

.workflow,
.proof {
  margin-top: 38px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.workflow-steps {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 18px;
  box-shadow: var(--app-shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  background: rgba(119, 96, 243, 0.15);
  color: var(--app-tint);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 12px 0 8px;
  color: var(--landing-strong);
  font-size: 1.06rem;
}

.step p {
  margin: 0;
  line-height: 1.55;
  color: var(--app-text-muted);
}

.quote-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.quote {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 18px;
  padding: 18px;
  line-height: 1.6;
  color: var(--app-text);
  box-shadow: var(--app-shadow);
}

.quote cite {
  margin-top: auto;
  padding-top: 12px;
  display: block;
  color: var(--app-tint);
  font-style: normal;
  font-weight: 700;
  font-size: 0.88rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(82, 66, 167, 0.94), rgba(119, 96, 243, 0.94));
  border: 1px solid rgba(164, 127, 255, 0.35);
  border-radius: 22px;
  color: #ffffff;
}

.final-cta-logo {
  position: absolute;
  top: 20px;
  right: 35px;
  margin: 0;
  transform: rotate(8deg);
  pointer-events: none;
}

.final-cta-logo img {
  width: 96px;
  height: 96px;
  display: block;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.2);
}

.final-cta h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.final-cta p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.final-cta .cta-group {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}

.final-cta .store-button {
  border-color: rgba(255, 255, 255, 0.22);
}

.final-cta .store-button--google {
  background: linear-gradient(145deg, #3b7ff6, #6f57ff);
}

.final-cta .store-button--apple {
  background: linear-gradient(145deg, #38384a, #151826);
}

.footer-links {
  margin: 26px 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.93rem;
}

.footer-links a {
  color: var(--app-text-muted);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--app-tint);
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.64s ease-out forwards;
}

.reveal-1 {
  animation-delay: 0.05s;
}

.reveal-2 {
  animation-delay: 0.12s;
}

.reveal-3 {
  animation-delay: 0.2s;
}

.reveal-4 {
  animation-delay: 0.28s;
}

.reveal-5 {
  animation-delay: 0.36s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
  }

  .feature-grid,
  .workflow-steps,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .landing-shell {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    border-radius: 22px;
  }

  .final-cta-logo {
    top: 12px;
    right: 12px;
    opacity: 0.16;
  }

  .final-cta-logo img {
    width: 78px;
    height: 78px;
  }

  .cta-group {
    grid-template-columns: 1fr;
  }

  .phone-card--float {
    right: 8px;
    bottom: 16px;
  }

  .feature-grid,
  .workflow-steps,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .final-cta {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .phone-card--main,
  .phone-card--float,
  .topbar {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .store-button {
    transition: none;
  }
}
