/* BABENKO BRAND — App Landing Page */

:root {
  --yellow: #F9E547;
  --yellow-light: #FCE97A;
  --yellow-dark: #D9C83A;
  --lime: #B7DB57;
  --lime-light: #D4EC8A;
  --lime-dark: #9BC43F;
  --yellow-glow: rgba(249, 229, 71, 0.45);
  --lime-glow: rgba(183, 219, 87, 0.4);
  --gradient-brand: linear-gradient(135deg, var(--yellow) 0%, var(--lime) 55%, var(--lime-light) 100%);
  --gradient-hero: linear-gradient(160deg, #FFF4B8 0%, var(--yellow) 35%, var(--lime) 70%, #E8F5A8 100%);
  --gradient-features: linear-gradient(180deg, rgba(249, 229, 71, 0.15) 0%, rgba(183, 219, 87, 0.25) 100%);
  --header-height: 72px;
  --smart-banner-height: 56px;
  --black: #0D0D0D;
  --black-soft: #1A1A1A;
  --gray-900: #2A2A2A;
  --gray-700: #4A4A4A;
  --gray-500: #8A8A8A;
  --gray-300: #C4C4C4;
  --white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18);
  --shadow-brand: 0 12px 48px var(--yellow-glow), 0 4px 24px var(--lime-glow);
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--black);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--gradient-hero);
  min-height: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Smart Banner */
.smart-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--black-soft) 0%, #2a2a1a 100%);
  color: var(--white);
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  animation: slideDown 0.4s ease;
  border-bottom: 2px solid var(--lime);
}

.smart-banner[hidden] {
  display: none;
}

.smart-banner__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.smart-banner__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
}

.smart-banner__text {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.smart-banner__text strong {
  display: block;
  font-size: 14px;
}

.smart-banner__btn {
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 100px;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.smart-banner__btn:hover {
  transform: translateY(-1px);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.smart-banner__close {
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.smart-banner__close svg {
  width: 20px;
  height: 20px;
}

body.has-smart-banner .header {
  top: calc(var(--smart-banner-height) + env(safe-area-inset-top, 0px));
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(183, 219, 87, 0.35);
  transition: top var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.logo__text {
  letter-spacing: 0.04em;
}

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__orb--1 {
  width: 520px;
  height: 520px;
  background: var(--yellow);
  opacity: 0.55;
  top: -180px;
  right: -80px;
}

.hero__orb--2 {
  width: 420px;
  height: 420px;
  background: var(--lime);
  opacity: 0.5;
  bottom: -120px;
  left: -100px;
}

.hero__orb--3 {
  width: 280px;
  height: 280px;
  background: var(--lime-light);
  opacity: 0.45;
  top: 40%;
  left: 35%;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 219, 87, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 229, 71, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid rgba(183, 219, 87, 0.4);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--black);
}

.hero__title em {
  font-style: normal;
  color: var(--black);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-size: 100% 0.18em;
  background-repeat: no-repeat;
  background-position: 0 90%;
  padding-bottom: 0.06em;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--gray-700);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--lime-dark);
  font-weight: 600;
}

.hero__hint[hidden] {
  display: none;
}

/* Download Buttons */
.download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  min-width: 180px;
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
}

.store-btn--apple {
  background: var(--black);
  color: var(--white);
}

.store-btn--apple:hover {
  background: var(--black-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-btn--google {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--lime-dark);
}

.store-btn--google:hover {
  background: var(--gradient-brand);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.store-btn.is-primary {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  box-shadow: var(--shadow-md);
}

.store-btn.is-primary:hover {
  background: var(--black-soft);
  border-color: var(--black-soft);
  transform: translateY(-2px);
  filter: none;
}

.store-btn.is-dimmed {
  opacity: 0.55;
}

/* Phone Mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  overflow: visible;
}

.phone-mockup {
  position: relative;
  z-index: 1;
}

.phone-mockup__frame {
  width: 280px;
  background: linear-gradient(145deg, var(--black) 0%, #2a2a1a 100%);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 28px 56px -8px rgba(0, 0, 0, 0.28),
    0 0 48px rgba(249, 229, 71, 0.35),
    0 0 96px rgba(183, 219, 87, 0.22);
  position: relative;
  z-index: 2;
}

.phone-mockup__screen {
  background: var(--gray-900);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}

.phone-mockup__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--gray-500);
  gap: 8px;
}

.phone-mockup__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.phone-mockup__placeholder span {
  font-size: 14px;
  font-weight: 500;
}

.phone-mockup__screen.has-screenshot {
  background: none;
}

.phone-mockup__screen.has-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
  border: 1px solid rgba(183, 219, 87, 0.5);
}

.floating-card__icon {
  color: var(--lime-dark);
  font-size: 16px;
}

.floating-card--1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.floating-card--2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 2s;
}

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

/* Section Head */
.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-head__tag {
  display: inline-block;
  background: var(--gradient-brand);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px var(--lime-glow);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-head p {
  color: var(--gray-700);
  font-size: 17px;
}

/* Features */
.features {
  padding: 100px 0 120px;
  background: var(--gradient-features);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.88);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(183, 219, 87, 0.25);
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
  border-color: var(--lime);
}

.feature-card--highlight {
  background: var(--gradient-brand);
  color: var(--black);
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}

.feature-card--highlight .feature-card__icon {
  background: var(--black);
  color: var(--lime);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(249, 229, 71, 0.35) 0%, rgba(183, 219, 87, 0.45) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--lime-dark);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
}

.feature-card--highlight p {
  color: var(--black-soft);
}

/* Footer */
.footer {
  padding: 32px 0;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
  color: var(--white);
  border-top: 3px solid transparent;
  border-image: var(--gradient-brand) 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.footer__brand .logo__icon {
  width: 36px;
  height: 36px;
}

.footer__copy {
  font-size: 13px;
  color: var(--gray-300);
  text-align: right;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__grid-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
    min-height: auto;
  }

  body.has-smart-banner .hero {
    padding-top: calc(var(--smart-banner-height) + env(safe-area-inset-top, 0px) + var(--header-height) + 32px);
  }

  .hero__visual {
    order: -1;
    padding: 24px 20px 72px;
    overflow: visible;
  }

  .phone-mockup {
    margin-bottom: 8px;
  }

  .phone-mockup__frame {
    width: 240px;
    box-shadow:
      0 20px 40px -6px rgba(0, 0, 0, 0.26),
      0 0 36px rgba(249, 229, 71, 0.32),
      0 0 64px rgba(183, 219, 87, 0.18);
  }

  .floating-card--1 {
    left: 4px;
  }

  .floating-card--2 {
    right: 4px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__copy {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .store-btn {
    width: 100%;
    justify-content: center;
  }
}
