/* Finanse AI — лендинг в дух на Apple: чисто, системни шрифтове, много въздух */

body.page-intro {
  background: #000000 !important;
}

.page-intro {
  --apple-bg: #000000;
  --apple-surface: #1d1d1f;
  --apple-text: #f5f5f7;
  --apple-muted: #86868b;
  --apple-blue: #2997ff;
  --apple-border: rgba(255, 255, 255, 0.12);
  --flow-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --flow-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --intro-glow-a: rgba(94, 234, 212, 0.45);
  --intro-glow-b: rgba(167, 139, 250, 0.4);
  --intro-glow-c: rgba(244, 114, 182, 0.28);
}

.page-intro .topbar {
  display: none;
}

.intro-app-strip {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  margin: 0 0 20px;
  border-radius: 12px;
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
}

.intro-app-strip-link {
  color: var(--apple-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.intro-app-strip-link:hover {
  text-decoration: underline;
}

.intro-app-strip-hint {
  font-size: 13px;
  color: var(--apple-muted);
}

.page-intro .app-shell--intro {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--apple-bg);
}

.page-intro .main-area {
  width: 100%;
}

.page-intro .content {
  padding: 0;
  gap: 0;
}

@media (min-width: 980px) {
  .page-intro .app-shell--intro.app-shell--solo {
    display: block;
    max-width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(32px, 5vw, 48px);
    padding-right: clamp(32px, 5vw, 48px);
  }
  .page-intro .app-shell--intro:not(.app-shell--solo) {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(32px, 5vw, 48px);
    padding-right: clamp(32px, 5vw, 48px);
  }
}

/* Aurora фон */
.flow-aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.flow-aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: flowAuroraFloat 22s ease-in-out infinite;
}

.flow-aurora-orb--a {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  top: -12%;
  left: -20%;
  background: radial-gradient(circle, var(--intro-glow-a), transparent 65%);
}

.flow-aurora-orb--b {
  width: min(80vw, 440px);
  height: min(80vw, 440px);
  top: 18%;
  right: -25%;
  background: radial-gradient(circle, var(--intro-glow-b), transparent 62%);
  animation-delay: -7s;
}

.flow-aurora-orb--c {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  bottom: 5%;
  left: 15%;
  background: radial-gradient(circle, var(--intro-glow-c), transparent 60%);
  animation-delay: -12s;
}

@keyframes flowAuroraFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(4%, 3%) scale(1.05);
  }
  66% {
    transform: translate(-3%, 5%) scale(0.98);
  }
}

/* Лента: криптиране с парола */
.flow-privacy-ribbon {
  position: relative;
  z-index: 2;
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(25, 35, 55, 0.85), rgba(18, 22, 38, 0.92));
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.12) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.flow-privacy-ribbon::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  animation: flowPrivacySheen 6s ease-in-out infinite;
}

@keyframes flowPrivacySheen {
  0%,
  100% {
    transform: translateX(-30%);
  }
  50% {
    transform: translateX(30%);
  }
}

.flow-privacy-lock {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 4px 12px rgba(94, 234, 212, 0.35));
  animation: flowLockPulse 3s ease-in-out infinite;
}

@keyframes flowLockPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.flow-privacy-copy {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.55;
  color: #e8e8ed;
}

.flow-privacy-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #5eead4, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.flow-privacy-copy span {
  color: var(--apple-muted);
  font-size: 14px;
}

/* Навигация — като продуктова страница */
.flow-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 0 28px;
  padding: 12px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-radius: 0 0 20px 20px;
}

.flow-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.flow-nav-brand {
  font-family: var(--flow-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--apple-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.flow-nav-brand:hover {
  opacity: 0.88;
}

.flow-nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  justify-content: flex-end;
}

.flow-nav-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.82);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.flow-nav-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.flow-nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
  flex-shrink: 0;
}

.flow-nav-cta {
  color: #34c759 !important;
  font-weight: 600 !important;
}

.flow-nav-cta:hover {
  background: rgba(52, 199, 89, 0.15) !important;
}

@media (max-width: 520px) {
  .flow-nav-menu {
    width: 100%;
    justify-content: flex-start;
    row-gap: 4px;
  }
}

/* Сцена */
.flow-scene {
  position: relative;
  font-family: var(--flow-body);
  color: var(--apple-text);
  padding-bottom: 80px;
  background: var(--apple-bg);
  z-index: 1;
}

.flow-scene::before,
.flow-scene::after {
  display: none;
}

.flow-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 4px;
}

.flow-section-feature {
  position: relative;
}

/* Герой */
.flow-hero {
  position: relative;
  text-align: center;
  padding: 12px 0 56px;
}

.flow-hero-bloom {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(120%, 640px);
  height: 280px;
  pointer-events: none;
  z-index: 0;
}

.flow-hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: flowRingPulse 5s ease-in-out infinite;
}

.flow-hero-ring--1 {
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  opacity: 0.9;
}

.flow-hero-ring--2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  opacity: 0.5;
  animation-delay: -1.2s;
}

.flow-hero-ring--3 {
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  opacity: 0.25;
  animation-delay: -2.4s;
}

@keyframes flowRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.55;
  }
}

.flow-hero .flow-kicker,
.flow-hero .flow-title,
.flow-hero .flow-sub,
.flow-hero .flow-lead,
.flow-hero .flow-cta-row {
  position: relative;
  z-index: 1;
}

.flow-kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-muted);
  margin: 0 0 20px;
  padding: 0;
  border: none;
  background: none;
}

.flow-kicker-dot {
  display: none;
}

.flow-beta-pill {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a1628;
  background: linear-gradient(135deg, #7dd3fc, #a78bfa);
}

.flow-trust {
  margin: 40px 0 48px;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--apple-border);
  background: rgba(29, 29, 31, 0.65);
}

.flow-trust .flow-section-title {
  margin-top: 0;
}

.flow-trust-list {
  margin: 12px 0 0;
  padding-left: 1.15em;
  color: var(--apple-muted);
  font-size: 15px;
  line-height: 1.55;
}

.flow-trust-list li {
  margin-bottom: 10px;
}

.flow-title {
  margin: 0;
  font-family: var(--flow-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  color: var(--apple-text);
}

.flow-title-line {
  display: block;
}

.flow-title-accent {
  display: block;
  margin-top: 8px;
  color: rgba(174, 174, 178, 0.95);
  font-weight: 600;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.flow-title-shimmer {
  background: linear-gradient(
    100deg,
    #f5f5f7 0%,
    #f5f5f7 40%,
    #a78bfa 45%,
    #5eead4 55%,
    #f5f5f7 60%,
    #f5f5f7 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flowTitleShimmer 7s linear infinite;
}

@keyframes flowTitleShimmer {
  0% {
    background-position: 100% center;
  }
  100% {
    background-position: -100% center;
  }
}

.flow-sub {
  margin: 24px auto 0;
  max-width: 28rem;
  font-size: 19px;
  line-height: 1.4211;
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--apple-muted);
}

.flow-lead {
  margin: 20px auto 0;
  max-width: 32rem;
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: #a1a1a6;
}

.flow-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

.flow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.flow-btn-primary {
  color: #000;
  background: #f5f5f7;
  border: none;
  box-shadow: none;
}

.flow-btn-primary:hover {
  opacity: 0.92;
  transform: scale(1.01);
}

.flow-btn-ghost {
  color: var(--apple-blue);
  border: none;
  background: transparent;
}

.flow-btn-ghost:hover {
  text-decoration: underline;
}

.flow-scroll-hint {
  display: none;
}

/* Секции */
.flow-section-title {
  font-family: var(--flow-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
  text-align: center;
  color: var(--apple-text);
}

.flow-section-sub {
  margin: 0 auto 32px;
  max-width: 32rem;
  text-align: center;
  font-size: 17px;
  line-height: 1.47059;
  color: var(--apple-muted);
}

.flow-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .flow-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.flow-pillar {
  position: relative;
  padding: 28px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, rgba(35, 38, 48, 0.95), rgba(20, 22, 30, 0.88));
  text-align: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.35s;
  overflow: hidden;
  isolation: isolate;
}

.flow-pillar-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(94, 234, 212, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 0;
}

.flow-pillar:hover {
  border-color: rgba(94, 234, 212, 0.28);
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(167, 139, 250, 0.12);
}

.flow-pillar:hover .flow-pillar-glow {
  opacity: 1;
}

.flow-pillar h3,
.flow-pillar p {
  position: relative;
  z-index: 1;
}

.flow-pillar-icon {
  display: none;
}

.flow-pillar h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--apple-text);
}

.flow-pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--apple-muted);
}

/* Метрики */
.flow-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 48px 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--apple-border);
  background: var(--apple-border);
}

@media (min-width: 640px) {
  .flow-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flow-metric {
  background: var(--apple-surface);
  padding: 24px 20px;
  text-align: center;
}

.flow-metric strong {
  display: block;
  font-family: var(--flow-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--apple-text);
}

.flow-metric span {
  font-size: 12px;
  line-height: 1.33337;
  color: var(--apple-muted);
  margin-top: 6px;
  display: block;
}

/* Стъпки */
.flow-timeline {
  margin-top: 8px;
}

.flow-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--apple-border);
}

.flow-step:last-child {
  border-bottom: none;
}

.flow-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--apple-text);
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  box-shadow: none;
}

.flow-step h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.flow-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.42859;
  color: var(--apple-muted);
}

/* FAQ */
.flow-faq {
  margin-top: 40px;
}

.flow-faq details {
  border: 1px solid var(--apple-border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: var(--apple-surface);
}

.flow-faq summary {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--apple-text);
}

.flow-faq summary::after {
  color: var(--apple-muted);
}

.flow-faq details p {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--apple-muted);
}

/* Долна CTA */
.flow-bottom {
  margin-top: 48px;
  padding: 36px 28px;
  border-radius: 18px;
  text-align: center;
  border: 1px solid var(--apple-border);
  background: var(--apple-surface);
  box-shadow: none;
}

.flow-bottom h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.flow-bottom p {
  margin: 0 0 20px;
  color: var(--apple-muted);
  font-size: 15px;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.flow-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--apple-border);
  text-align: center;
  font-size: 12px;
  color: var(--apple-muted);
}

/* Анимации при зареждане (герой, навигация, лента) */
.js-ready .intro-reveal:not(.intro-reveal-scroll) {
  opacity: 0;
  transform: translateY(12px);
  animation: introRevealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

html:not(.js-ready) .intro-reveal-scroll {
  opacity: 1;
}

.js-ready .intro-reveal-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .intro-reveal-scroll.intro-in-view {
  opacity: 1;
  transform: translateY(0);
}

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

.intro-first-visit .flow-hero.intro-reveal {
  animation-duration: 0.85s;
}

.intro-first-visit .flow-pillar {
  animation: flowPillarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.intro-first-visit .flow-pillar:nth-child(1) {
  animation-delay: 0.08s;
}
.intro-first-visit .flow-pillar:nth-child(2) {
  animation-delay: 0.12s;
}
.intro-first-visit .flow-pillar:nth-child(3) {
  animation-delay: 0.16s;
}
.intro-first-visit .flow-pillar:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes flowPillarIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-ready .intro-reveal:not(.intro-reveal-scroll) {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
  .js-ready .intro-reveal-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .intro-first-visit .flow-pillar {
    animation: none !important;
  }
  .flow-aurora-orb,
  .flow-hero-ring,
  .flow-title-shimmer,
  .flow-privacy-ribbon::before {
    animation: none !important;
  }
  .flow-title-shimmer {
    background: #f5f5f7;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
