/* CreaTone CSS Variables & Design System */
:root {
  --bg-color: #07070a;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-gold: #eab308; /* amberGlow */
  --accent-gold-light: #fef08a; /* frostGold */
  --accent-purple: #8b5cf6;
  --accent-indigo: #4f46e5;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-bg: rgba(255, 255, 255, 0.06);
  --glass-hover-border: rgba(255, 255, 255, 0.15);
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* Language Toggle visibility rules */
body.lang-ua .en-text {
  display: none !important;
}
body.lang-en .ua-text {
  display: none !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Glowing Ambient Orbs */
.glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
}
.glow-1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}
.glow-2 {
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-gold), transparent 70%);
  opacity: 0.1;
}
.glow-3 {
  bottom: 100px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-indigo), transparent 70%);
}

/* Header */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(15px);
  background: rgba(7, 7, 10, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}
.logo-img {
  height: 70px;
  display: block;
  filter: 
    drop-shadow(1px 0 0 rgba(255, 255, 255, 0.95)) 
    drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.95)) 
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.95)) 
    drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.95));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.logo:hover .logo-img {
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Language Switcher Button Group */
.lang-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 3px;
  border-radius: 30px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.lang-btn:hover {
  color: var(--text-primary);
}
.lang-btn.active {
  color: #07070a;
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.3);
}

/* Buttons */
.btn-app-store-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #000000;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  line-height: 1.15;
}
.btn-app-store-header:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.15);
}
.btn-app-store-header .apple-logo {
  flex-shrink: 0;
}
.btn-app-store-header .btn-subtitle {
  display: block;
  font-size: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}
.btn-app-store-header .btn-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000000;
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.btn-primary:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15);
}
.apple-logo {
  fill: currentColor;
}
.btn-subtitle {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}
.btn-title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

/* Hero Section */
.hero-section {
  padding: 10rem 2rem 5rem;
  position: relative;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  color: var(--accent-gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light) 50%, var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 580px;
}

/* Soundwave Animation */
.hero-soundwave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  margin-bottom: 2.5rem;
}
.hero-soundwave .bar {
  width: 4px;
  height: 15%;
  background: linear-gradient(to top, var(--accent-purple), var(--accent-gold));
  border-radius: 10px;
  animation: bounce 1s ease-in-out infinite alternate;
}
.hero-soundwave .bar:nth-child(1)  { animation-delay: 0.1s; height: 30%; }
.hero-soundwave .bar:nth-child(2)  { animation-delay: 0.4s; height: 50%; }
.hero-soundwave .bar:nth-child(3)  { animation-delay: 0.2s; height: 80%; }
.hero-soundwave .bar:nth-child(4)  { animation-delay: 0.6s; height: 40%; }
.hero-soundwave .bar:nth-child(5)  { animation-delay: 0.3s; height: 90%; }
.hero-soundwave .bar:nth-child(6)  { animation-delay: 0.5s; height: 20%; }
.hero-soundwave .bar:nth-child(7)  { animation-delay: 0.7s; height: 75%; }
.hero-soundwave .bar:nth-child(8)  { animation-delay: 0.9s; height: 35%; }
.hero-soundwave .bar:nth-child(9)  { animation-delay: 0.2s; height: 60%; }
.hero-soundwave .bar:nth-child(10) { animation-delay: 0.5s; height: 85%; }
.hero-soundwave .bar:nth-child(11) { animation-delay: 0.1s; height: 45%; }
.hero-soundwave .bar:nth-child(12) { animation-delay: 0.8s; height: 70%; }
.hero-soundwave .bar:nth-child(13) { animation-delay: 0.3s; height: 90%; }
.hero-soundwave .bar:nth-child(14) { animation-delay: 0.6s; height: 50%; }
.hero-soundwave .bar:nth-child(15) { animation-delay: 0.4s; height: 30%; }

@keyframes bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.1); }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

/* iPhone Mockup Carousel */
.hero-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.iphone-mockup {
  position: relative;
  width: 330px;
  height: 627px;
  border-radius: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(139, 92, 246, 0.15);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.iphone-mockup:hover {
  transform: translateY(-5px) rotate(1deg);
}

.iphone-frame-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 10;
  pointer-events: none;
}

.iphone-screen {
  position: absolute;
  top: 7.94%;
  left: 8.47%;
  width: 83.0%;
  height: 89.44%;
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  z-index: 5;
}

.screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(7, 7, 10, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.carousel-control:hover {
  background: var(--accent-gold);
  color: #000;
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
}
.carousel-control.prev {
  left: -22px;
}
.carousel-control.next {
  right: -22px;
}

.carousel-indicators {
  display: flex;
  gap: 8px;
  margin-top: 1.5rem;
  z-index: 20;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}
.dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: 10px;
}

.carousel-caption {
  margin-top: 1rem;
  max-width: 320px;
  text-align: center;
  min-height: 48px;
}
.carousel-caption p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Section */
.features-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-card:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(139, 92, 246, 0.05);
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.feature-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.03);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}
.feature-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.feature-card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* App Overview/Benefits Section */
.overview-section {
  padding: 6rem 2rem;
  background: radial-gradient(100% 100% at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 80%);
}
.overview-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.overview-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-bell {
  font-size: 5rem;
  z-index: 10;
  animation: bell-swing 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 25px rgba(234, 179, 8, 0.4));
}
.floating-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  pointer-events: none;
}
.circle-1 {
  width: 260px;
  height: 260px;
  animation: rotate-circle 40s linear infinite;
}
.circle-2 {
  width: 180px;
  height: 180px;
  animation: rotate-circle-reverse 25s linear infinite;
}
.pulse-ring {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-purple);
  opacity: 0;
  animation: ring-pulse 3s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.music-note {
  position: absolute;
  color: var(--accent-gold);
  font-size: 1.8rem;
  font-family: var(--font-mono);
  opacity: 0.8;
  filter: drop-shadow(0 0 8px var(--accent-gold));
  animation: float-note 6s ease-in-out infinite;
}
.note-1 { top: 20%; left: 20%; animation-delay: 0s; }
.note-2 { top: 30%; right: 20%; animation-delay: 2s; }
.note-3 { bottom: 25%; left: 35%; animation-delay: 4s; }

@keyframes bell-swing {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}
@keyframes rotate-circle {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes rotate-circle-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes ring-pulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.35; }
  100% { transform: scale(2.8); opacity: 0; }
}
@keyframes float-note {
  0% { transform: translateY(0) scale(0.8) rotate(0deg); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-40px) scale(1.1) rotate(15deg); opacity: 0; }
}

.overview-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
}
.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.benefit-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.benefit-list strong {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.benefit-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.benefit-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Download Section CTA */
.download-section {
  padding: 8rem 2rem;
  background: radial-gradient(100% 100% at 50% 100%, rgba(234, 179, 8, 0.04) 0%, transparent 60%);
  border-top: 1px solid var(--glass-border);
}
.download-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.download-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}
.download-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}
.copyright-notice {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Footer Section */
.app-footer {
  background: #040407;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 2rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 2.5rem;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.privacy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 576px) {
  .privacy-card {
    padding: 1.5rem;
  }
}

/* Responsive Breakpoints */
@media (max-width: 968px) {
  html {
    font-size: 15px;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 5rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-soundwave {
    justify-content: center;
  }
  .overview-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .overview-visual {
    height: 300px;
    order: 2;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  .hero-section {
    padding-top: 8rem;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .iphone-mockup {
    width: 270px;
    height: 513px;
  }
  .carousel-control.prev { left: -15px; }
  .carousel-control.next { right: -15px; }
  .footer-links {
    flex-direction: column;
    gap: 1.25rem;
  }
}
