/* 
  Fibby — Premium Design System (Monobank Style Reference)
  Author: Fibby Team
*/

:root {
  /* Core Colors */
  --bg-dark: #000000;
  --bg-card: #111111;
  --bg-light: #F2F2F7;
  --bg-white: #FFFFFF;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #6248FF 0%, #4DA2FF 100%);
  --gradient-hero-deep: linear-gradient(160deg, #5038EE 0%, #3D8FFF 50%, #6BC5FF 100%);
  --gradient-platinum: linear-gradient(135deg, #E8D5B7 0%, #F5EDE0 40%, #FDFAF5 100%);

  /* Text */
  --text-white: #FFFFFF;
  --text-black: #000000;
  --text-gray: #8E8E93;
  --text-light-gray: #C7C7CC;

  /* Accents */
  --green: #34C759;
  --red: #FF3B30;

  /* UI Elements */
  --btn-black: #000000;
  --radius-card: 24px;
  --radius-btn: 30px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img,
svg,
video {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-black);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: none;
  position: relative;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--text-white);
}

.text-black {
  color: var(--text-black);
}

.text-gray {
  color: var(--text-gray);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

/* ============================================
   ANIMATIONS (entrance)
   ============================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-main);
  border-radius: var(--radius-btn);
}

.btn-cta {
  height: 60px;
  padding: 0 40px;
  font-size: 18px;
}

.btn-primary {
  background-color: var(--btn-black);
  color: var(--text-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn-block {
  width: 100%;
  height: 56px;
  font-size: 16px;
}

.btn-outline-dark {
  border: 1.5px solid #E5E5EA;
  background: white;
  color: var(--text-black);
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-outline-dark:hover {
  background: var(--bg-light);
  border-color: #D1D1D6;
  transform: translateY(-1px);
}

.btn-outline-dark svg {
  flex-shrink: 0;
}

/* ============================================
   HEADER (Sticky on scroll)
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}

.header.scrolled .logo,
.header.scrolled .nav-link,
.header.scrolled .lang-switcher {
  color: var(--text-black);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-white);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 480px) {
  .header-inner {
    gap: 8px;
  }

  .header-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 14px;
  }
}

.logo {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
  color: inherit;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.logo-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.5;
  margin-left: 2px;
  align-self: flex-end;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-link:hover {
  opacity: 1;
}

.lang-switcher {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.7;
}

.lang-switcher .active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--gradient-hero-deep);
  color: var(--text-white);
  padding-top: 120px;
  padding-bottom: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  /* removing max-width: 100vw; and overflow: hidden; as it cuts the gradient sharply and parent .hero has overflow: hidden */
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  max-width: 300px;
  line-height: 1.5;
}

/* Hero curve SVG */
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 3;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ============================================
   PHONE MOCKUP (Realistic)
   ============================================ */
.hero-mockup-wrap {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding-bottom: 60px;
  perspective: 1200px;
}

.hero-phone {
  width: 280px;
  height: 560px;
  background: #1A1A1A;
  border-radius: 44px;
  border: 3px solid #333;
  position: relative;
  transform: rotateX(8deg) rotateY(-12deg) rotateZ(3deg);
  box-shadow:
    -15px 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(98, 72, 255, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.6s var(--ease-out);
}

.hero-phone:hover {
  transform: rotateX(4deg) rotateY(-6deg) rotateZ(1deg);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  background: #0A0A0A;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.status-icons {
  display: flex;
  gap: 4px;
  font-size: 10px;
}

.phone-app-header {
  display: flex;
  align-items: center;
  padding: 8px 12px 10px;
  background: #0A0A0A;
  gap: 8px;
}

.back-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.app-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2C3E50 0%, #3D5166 50%, #4A6274 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.app-name-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-name {
  font-weight: 600;
  font-size: 15px;
  color: white;
}

.app-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.dots {
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
}

.phone-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  overflow: hidden;
}

.phone-home-indicator {
  width: 120px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 8px auto 10px;
}

/* Chat Messages (shared between mockup & step cards) */
.msg {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  max-width: 88%;
  line-height: 1.4;
}

.msg-text {
  display: block;
}

.msg.bot {
  background: #1E1E2E;
  color: #E5E5E5;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.msg.user {
  background: #6248FF;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}

/* ============================================
   DYNAMICS (Tickers)
   ============================================ */
.dynamics-section {
  background: var(--bg-white);
  padding: 50px 0 var(--space-xl);
  overflow: hidden;
}

.tickers-container {
  margin-bottom: 0;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 10px;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker {
  display: inline-block;
  white-space: nowrap;
}

.ticker-left {
  animation: tickerLeft 22s linear infinite;
}

.ticker-right {
  animation: tickerRight 28s linear infinite;
}

.ticker-slow {
  animation-duration: 30s;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: var(--bg-light);
  border-radius: 14px;
  margin: 0 5px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.ticker-item span {
  font-weight: 700;
  margin-left: 4px;
}

.ticker-item.negative span {
  color: var(--text-black);
}

.ticker-item.positive {
  background: #E8F9EE;
}

.ticker-item.positive span {
  color: var(--green);
}

@keyframes tickerLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes tickerRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.tariffs-agreement-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

.agreement-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-gray);
  cursor: pointer;
  user-select: none;
}

.agreement-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.agreement-checkbox-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.disabled-link {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
}

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages-section {
  padding: 60px 20px;
  background: var(--bg-white);
  position: relative;
}

.advantages-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  margin: 0 auto;
}

.adv-slide {
  border-radius: 32px;
  padding: 40px 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.adv-slide:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* Subtle overlay on hover */
.adv-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.adv-slide:hover::after {
  background: rgba(0, 0, 0, 0.03);
}

.advantage-card-1 {
  background: #EDE8FF;
}

.advantage-card-2 {
  background: #FFF3E0;
}

.advantage-card-3 {
  background: #E8F5E9;
}

.advantage-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.advantage-card-1 .advantage-icon {
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
}

.advantage-card-2 .advantage-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.advantage-card-3 .advantage-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.adv-slide:hover .advantage-icon {
  transform: scale(1.08);
}

.advantage-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.advantage-text {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Desktop: side by side */
@media (min-width: 769px) {
  .advantages-section {
    padding: 80px 0 60px;
  }

  .advantages-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
  }

  .adv-slide {
    padding: 44px 32px 40px;
  }
}

/* ============================================
   STEPS SECTION (Overlapping Cards)
   ============================================ */
.steps-section {
  padding: var(--space-xl) 0;
  background: var(--bg-white);
  position: relative;
}

.steps-section .section-title {
  position: sticky;
  top: 80px;
  z-index: 50;
  background: var(--bg-white);
  padding-bottom: 16px;
}

.steps-cards-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 620px;
  overflow: hidden;
}

.card-slide {
  border-radius: 32px 32px 0 0;
  padding: 36px 24px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 580px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.card-1 {
  z-index: 10;
  top: 10%;
}

.card-2 {
  z-index: 20;
}

.bg-light-purple {
  background: #EDE8FF;
}

.bg-light-blue {
  background: #E5EFFF;
}

/* Mid CTA Section */
.mid-cta-section {
  padding: 40px 0 60px;
}

.btn-lg {
  font-size: 20px;
  padding: 18px 56px;
  border-radius: 60px;
}

/* ============================================
   FEATURES SECTION (Redesigned)
   ============================================ */
.features-section {
  padding: 120px 20px var(--space-xl);
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }
}

/* Ліва колонка: Картки */
.features-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.f-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.f-card:hover {
  background: white;
  transform: translateX(8px);
  border-color: #E2E8F0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.f-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(98, 72, 255, 0.08);
  /* Light priamry color */
}

.f-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-black);
  margin: 0;
}

.f-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

/* Права колонка: Мокап UI */
.features-mockup-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.f-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: 32px;
  background: #111111;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.f-mockup-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.f-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: linear-gradient(135deg, rgba(98, 72, 255, 0.4), rgba(52, 211, 153, 0.4));
  filter: blur(80px);
  transform: translate(-50%, -50%);
  z-index: -1;
  border-radius: 50%;
  opacity: 0.6;
}

.f-mockup-ui {
  background: #161616;
  border-radius: 26px;
  padding: 20px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Таби в UI */
.f-ui-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.f-ui-tab {
  flex: 1;
  background: #232323;
  border-radius: 12px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  cursor: default;
}

.f-ui-tab.active {
  background: #2F2F2F;
  color: white;
}

/* Список в UI */
.f-ui-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-ui-item {
  background: #1E1E1E;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.f-ui-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.bg-personal {
  background: rgba(99, 102, 241, 0.15);
}

.bg-food {
  background: rgba(245, 158, 11, 0.15);
}

.bg-car {
  background: rgba(59, 130, 246, 0.15);
}

.bg-kids {
  background: rgba(244, 63, 94, 0.15);
}

.f-ui-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-ui-top,
.f-ui-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.f-ui-name {
  font-weight: 700;
  font-size: 15px;
}

.f-ui-amount {
  font-weight: 700;
  font-size: 14px;
}

.f-ui-tx {
  font-size: 12px;
  color: #888;
}

.f-ui-pct {
  font-weight: 700;
  font-size: 13px;
}

.f-ui-bar-wrap {
  width: 100%;
  height: 6px;
  background: #2C2C2E;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.f-ui-bar {
  height: 100%;
  border-radius: 3px;
}

.fill-personal {
  background: #6366f1;
}

.fill-food {
  background: #f59e0b;
}

.fill-car {
  background: #3b82f6;
}

.fill-kids {
  background: #f43f5e;
}


.step-badge {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-card-content h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--text-black);
}

.step-card-visual {
  margin-top: auto;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  flex: 1;
}

/* Phone mockup corner */
.phone-mockup-corner {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 320px;
  height: 340px;
}

.phone-corner-frame {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 44px 0 0 0;
  padding: 0;
  box-shadow: -8px -8px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  border-left: 3px solid #3A3A3C;
  border-top: 3px solid #3A3A3C;
}

/* iPhone dynamic island */
.phone-corner-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}

/* Status bar */
.phone-corner-frame::after {
  content: '9:41';
  position: absolute;
  top: 14px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  z-index: 5;
}

/* Telegram chat preview */
.tg-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 44px 14px 14px;
}

.tg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.tg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.tg-name {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.tg-msg {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  max-width: 88%;
}

.tg-msg.bot-msg {
  background: #2C2C2E;
  color: #E5E5E7;
  align-self: flex-start;
}

.tg-msg.user-msg {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

/* Google Sheets preview */
.sheets-preview {
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
  height: 100%;
  padding-top: 38px;
}

.sheets-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #0F9D58;
  color: white;
}

.sheets-icon {
  font-size: 14px;
}

.sheets-title {
  font-size: 12px;
  font-weight: 600;
}

.sheets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.sheets-table th {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 5px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 10px;
}

.sheets-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #E8E8E8;
  color: #333;
}

/* Mock UI in Step 1 */
.mock-ui-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-black);
}

.mock-ui-row.success {
  color: var(--green);
  font-weight: 600;
}

.mock-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mock-progress {
  height: 6px;
  background: #E5E5EA;
  border-radius: 3px;
  margin: 8px 0;
  overflow: hidden;
}

.mock-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--gradient-hero);
  border-radius: 3px;
  animation: progressFill 2s ease-in-out infinite;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  50% {
    width: 100%;
  }

  100% {
    width: 100%;
  }
}

/* Mock chat in Step 2 */
.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-chat .msg.bot {
  background: #F2F2F7;
  color: var(--text-black);
}

.mock-chat .msg.user {
  background: #6248FF;
  color: white;
}

/* ============================================
   SUPPORT & PRIVACY
   ============================================ */
.support-section {
  background: var(--bg-white);
  padding: var(--space-xl) 0;
}

.support-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.support-desc {
  font-weight: 500;
  font-size: 16px;
  margin: var(--space-md) 0 var(--space-md);
  color: #555;
  line-height: 1.6;
}

.support-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-bubbles-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble-row {
  display: flex;
  text-align: left;
}

.bubble-row.right {
  justify-content: flex-end;
}

.bubble-row.left {
  justify-content: flex-start;
  align-items: flex-end;
  gap: 8px;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-hero);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.chat-bubble {
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  max-width: 80%;
}

.bubble-gray {
  background: #F2F2F7;
  border-bottom-right-radius: 6px;
}

.bubble-white {
  background: #FFFFFF;
  border-bottom-left-radius: 6px;
  border: 1px solid #E5E5EA;
}

/* ============================================
   TARIFFS (Bank Cards Style)
   ============================================ */
.tariffs-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
}

.tariffs-subtitle {
  margin-bottom: 40px;
  font-size: 16px;
}

.tariffs-carousel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Mobile tab switcher */
.tariff-tabs {
  display: flex;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 20px;
}

.tariff-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-radius: 9px;
  transition: all 0.25s ease;
  user-select: none;
}

.tariff-tab.active {
  background: #fff;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.tariff-bank-card.hidden-mobile {
  display: none;
}

.tariff-bank-card {
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.tariff-bank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.15);
}

.card-black {
  background: linear-gradient(145deg, #222 0%, #111 50%, #1A1A1A 100%);
}

.card-platinum {
  background: var(--gradient-platinum);
  color: #3A2E1C;
}

.card-blue {
  background: linear-gradient(145deg, #1565C0 0%, #0D47A1 50%, #1976D2 100%);
  color: #fff;
}

.card-purple {
  background: linear-gradient(145deg, #6A1B9A 0%, #4A148C 50%, #7B1FA2 100%);
  color: #fff;
}

.card-blue .card-chip,
.card-purple .card-chip {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
}


.card-chip {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.6) 0%, rgba(255, 215, 0, 0.3) 100%);
  margin-bottom: 16px;
  position: relative;
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.card-platinum .card-chip {
  background: linear-gradient(135deg, rgba(180, 155, 100, 0.5) 0%, rgba(180, 155, 100, 0.25) 100%);
}

.card-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.3px;
}

.card-logo span {
  font-weight: 500;
  opacity: 0.6;
  margin-left: 4px;
}

.card-contactless {
  position: absolute;
  top: 28px;
  right: 28px;
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.card-name {
  font-family: 'Inter', monospace;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 500;
  opacity: 0.5;
  margin-bottom: 8px;
}

/* Tariff Details */
.tariff-details {
  background: white;
  margin: 20px -28px -28px -28px;
  padding: 28px;
  color: var(--text-black);
  text-align: center;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-platinum .tariff-details {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.t-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.t-desc {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.5;
  min-height: 42px;
  /* 14px * 1.5 * 2 lines */
}

.t-price-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-bottom: 12px;
  line-height: 1;
}

.t-old-price {
  font-size: 28px;
  color: #AAAAAA;
  font-weight: 600;
}

.t-old-price s {
  text-decoration: line-through;
  text-decoration-color: #AAAAAA;
  text-decoration-thickness: 2px;
}

.t-new-price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text-black);
}

.t-subtext {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-white);
  padding: 60px 0 24px;
  border-top: 1px solid #E5E5EA;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 4px;
  margin-bottom: 12px;
}

.logo-box {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #E5E5EA;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gray);
  letter-spacing: 0.3px;
}

.footer-heading {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--text-black);
}

.footer-links-col p,
.footer-links-col a,
.footer-contact-col a {
  display: block;
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-links-col a:hover,
.footer-contact-col a:hover {
  color: var(--text-black);
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
  overflow: hidden;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.social-btn-tg {
  background: #0088cc;
}

.social-btn-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* New footer social buttons (rebuilt) */
.footer-social-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.footer-social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-social-circle:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.footer-social-circle svg {
  display: block;
  width: 20px;
  height: 20px;
}

.footer-social-tg {
  background: #0088cc;
}

.footer-social-ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.pay-system-img {
  max-width: 280px;
  width: 100%;
  height: auto;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid #E5E5EA;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-light-gray);
}

.payment-logos {
  display: flex;
  gap: 8px;
}

/* ============================================
   RESPONSIVE — Mobile (max 767px)
   ============================================ */
@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1; /* Full width on first row */
  }
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    max-width: 900px;
    padding: 0 40px;
  }

  .hero-title {
    font-size: 68px;
  }

  .hero-subtitle {
    font-size: 20px;
    max-width: 400px;
  }

  .hero-content {
    max-width: 50%;
  }

  .hero-mockup-wrap {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    padding-bottom: 0;
  }

  .hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-bottom: 60px;
  }

  .hero .container {
    position: relative;
  }

  .support-grid {
    flex-direction: row;
    align-items: center;
  }

  .support-info {
    flex: 1;
  }

  .support-visual {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
  }

  .tariff-tabs {
    display: none;
  }

  .tariffs-carousel {
    flex-direction: row;
    align-items: stretch;
  }

  .tariff-bank-card {
    flex: 1;
    margin-top: 0 !important;
    transform: none !important;
    top: 0 !important;
    align-self: stretch !important;
  }

  /* Reset mobile hiding on desktop */
  .tariff-bank-card.hidden-mobile {
    display: flex !important;
  }

  .steps-cards-wrapper {
    max-width: 600px;
  }
}

/* ============================================
   RESPONSIVE — Desktop (1200px+)
   ============================================ */
@media (min-width: 1200px) {
  .container {
    max-width: 1100px;
    padding: 0 60px;
  }

  .hero-title {
    font-size: 76px;
  }

  .hero-phone {
    width: 300px;
    height: 600px;
  }

  .section-title {
    font-size: 44px;
  }
}

/* ============================================
   ANALYTICS UI MOCKUP
   ============================================ */
.analytics-preview {
  display: flex;
  flex-direction: column;
  background: #000;
  height: 100%;
  color: white;
  font-family: inherit;
  padding: 36px 14px 14px;
}

.an-tabs {
  display: flex;
  background: #1C1C1E;
  border-radius: 10px;
  padding: 2px;
  margin-bottom: 24px;
}

.an-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #8E8E93;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.an-tab.active {
  background: #2C2C2E;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.an-chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.an-donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
}

.expense-donut {
  background: conic-gradient(#8B5CF6 0deg 85deg,
      #A78BFA 85deg 165deg,
      #60A5FA 165deg 245deg,
      #3B82F6 245deg 290deg,
      #FBBF24 290deg 320deg,
      #F87171 320deg 360deg);
  -webkit-mask: radial-gradient(transparent 62%, black 63%);
  mask: radial-gradient(transparent 62%, black 63%);
}

.income-donut {
  background: conic-gradient(#34D399 0deg 320deg,
      #10B981 320deg 360deg);
  -webkit-mask: radial-gradient(transparent 62%, black 63%);
  mask: radial-gradient(transparent 62%, black 63%);
}

.an-donut-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.an-donut-text span {
  font-size: 12px;
  color: #8E8E93;
  margin-bottom: 4px;
}

.an-donut-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.an-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.an-subtab {
  flex: 1;
  background: #1C1C1E;
  border-radius: 12px;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #8E8E93;
}

.an-subtab.active {
  color: white;
  background: #2C2C2E;
}

.an-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-item {
  background: #1C1C1E;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.an-icon {
  width: 36px;
  height: 36px;
  background: #2C2C2E;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.an-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.an-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.an-tx {
  font-size: 11px;
  color: #8E8E93;
}

.an-pct {
  font-size: 14px;
  font-weight: 700;
}

.an-amount {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  min-width: 80px;
}

/* ============================================
   REVIEWS SECTION
   ============================================ */
.reviews-section {
  background: var(--bg-light);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

.reviews-section .section-title {
  margin-bottom: 10px;
}

.reviews-subtitle {
  font-size: 17px;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Masonry grid using CSS columns */
.reviews-grid {
  column-count: 1;
  column-gap: 20px;
}

.review-card {
  break-inside: avoid;
  background: var(--bg-white);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: inline-block;
  width: 100%;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Header row: avatar | (name + ig + stars stacked) */
.review-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  margin-bottom: 16px;
  align-items: start;
}

img.review-avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f5;
  display: block;
  align-self: center;
}

.review-meta {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.review-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-ig {
  font-size: 13px;
  font-weight: 500;
  color: #6248FF;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  transition: opacity 0.2s;
}

.review-ig:hover {
  opacity: 0.75;
}

svg.review-ig-icon {
  width: 13px;
  min-width: 13px;
  max-width: 13px;
  height: 13px;
  opacity: 0.8;
}

.review-anon-tag {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 2px;
  display: block;
}

/* Stars */
.review-stars {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.review-stars span {
  font-size: 16px;
  color: #FFB800;
  line-height: 1;
}

/* Text */
.review-text {
  font-size: 14px;
  line-height: 1.65;
  color: #3a3a3c;
}

/* Tag badge */
.review-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 5px 12px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-gray);
}

/* Featured card (slightly larger, purple tint) */
.review-card.featured {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
  border-color: rgba(98, 72, 255, 0.12);
}

/* Desktop: 3 columns masonry + widened container */
@media (min-width: 769px) {
  .reviews-section {
    padding: 100px 0;
  }

  .reviews-section .container {
    max-width: 1080px;
  }

  .reviews-grid {
    column-count: 3;
    column-gap: 24px;
  }

  .reviews-subtitle {
    margin-bottom: 56px;
  }
}

/* Tablet: 2 columns */
@media (min-width: 540px) and (max-width: 768px) {
  .reviews-section .container {
    max-width: 720px;
  }

  .reviews-grid {
    column-count: 2;
    column-gap: 16px;
  }
}