:root {
  --post-coral: #ff7854;
  --post-mint: #75deb4;
  --post-violet: #b698ff;
  --post-blue: #6da7ff;
}

.brand-mark-image {
  display: block;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 120, 84, 0.22), 0 9px 24px rgba(0, 0, 0, 0.24);
}

.desktop-nav a:first-child,
.mobile-menu a:first-child {
  color: var(--post-coral);
}

.desktop-nav a:first-child::before,
.mobile-menu a:first-child::before {
  content: "⌂";
  margin-right: 5px;
  font-size: 0.8em;
}

.hero-visual {
  perspective: 1100px;
}

.hero-visual .phone-front {
  animation: post-phone-float 8s ease-in-out infinite;
}

.hero-visual .phone-back {
  animation: post-phone-back 10s ease-in-out infinite;
}

.hero-visual .glow-one {
  animation: post-glow 7s ease-in-out infinite alternate;
}

.floating-chip {
  animation: post-chip-float 6s ease-in-out infinite;
}

.chip-response {
  animation-delay: -2.5s;
}

.post-flow {
  padding-top: 145px;
  padding-bottom: 145px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.flow-step {
  position: relative;
  min-height: 470px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.flow-step::before {
  position: absolute;
  top: 18%;
  left: -36%;
  width: 170%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 222, 180, 0.56), transparent);
  content: "";
  opacity: 0;
  transform: rotate(-30deg);
  transition: opacity 0.35s ease;
}

.flow-step:hover,
.flow-step--active {
  transform: translateY(-7px);
  border-color: rgba(117, 222, 180, 0.48);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.2), 0 0 30px rgba(117, 222, 180, 0.08);
}

.flow-step:hover::before,
.flow-step--active::before {
  opacity: 1;
}

.flow-step > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  margin-bottom: 17px;
  border: 1px solid rgba(117, 222, 180, 0.35);
  border-radius: 9px;
  color: var(--post-mint);
  font: 0.69rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.flow-step-screen {
  display: grid;
  place-items: center;
  min-height: 295px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: #090e1b;
}

.flow-step-screen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 295px;
  object-fit: contain;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-step:hover .flow-step-screen img,
.flow-step--active .flow-step-screen img {
  transform: scale(1.045);
}

.flow-step h3 {
  margin: 19px 0 7px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.download-card .store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.download-card .store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #fff;
  background: rgba(5, 9, 20, 0.25);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.download-card .store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--post-mint);
  background: rgba(117, 222, 180, 0.13);
}

.download-card .store-badge > span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(117, 222, 180, 0.45);
  border-radius: 8px;
  color: var(--post-mint);
  font-size: 0.85rem;
}

.download-card .store-badge small,
.download-card .store-badge strong {
  display: block;
}

.download-card .store-badge small {
  color: #b7c0d4;
  font-size: 0.56rem;
}

.download-card .store-badge strong {
  margin-top: 2px;
  font-size: 0.75rem;
}

html[data-theme="light"] .flow-step {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 251, 0.82));
}

html[data-theme="light"] .flow-step-screen {
  border-color: rgba(23, 37, 59, 0.14);
}

@keyframes post-phone-float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-9px); }
}

@keyframes post-phone-back {
  0%, 100% { transform: rotate(10deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(10px); }
}

@keyframes post-glow {
  from { transform: scale(0.95); opacity: 0.72; }
  to { transform: scale(1.08); opacity: 1; }
}

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

@media (max-width: 860px) {
  .post-flow {
    padding-top: 105px;
    padding-bottom: 105px;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .flow-steps,
  .download-card .store-grid {
    grid-template-columns: 1fr;
  }

  .flow-step:last-child {
    grid-column: auto;
  }

  .flow-step {
    min-height: 0;
  }

  .flow-step-screen,
  .flow-step-screen img {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .phone-front,
  .hero-visual .phone-back,
  .hero-visual .glow-one,
  .floating-chip {
    animation: none;
  }

  .flow-step,
  .flow-step-screen img,
  .download-card .store-badge {
    transition: none;
  }

  .flow-step:hover,
  .flow-step--active,
  .download-card .store-badge:hover {
    transform: none;
  }
}
