/* =============================================
   BEATMYBEAT — style.css
   Paleta Bluewave · Tema oscuro premium
   ============================================= */

:root {
  --bg-top:        #000000;
  --bg-bottom:     #181818;
  --primary:       #07979C;
  --primary-v:     #0AAEB3;
  --secondary:     #27C2C7;
  --surface:       #060A0D;
  --surface-2:     #0D1419;
  --text:          #F5FCFF;
  --text-muted:    #9FB5BD;
  --border:        rgba(7, 151, 156, 0.18);
  --glow:          rgba(7, 151, 156, 0.35);

  --radius:        14px;
  --radius-sm:     8px;

  --font-display:  'Sora', sans-serif;
  --font-body:     'DM Sans', sans-serif;

  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-top);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code {
  font-size: 0.85em;
  color: var(--secondary);
  background: rgba(39,194,199,0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* CONTAINER */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.2px;
  color: var(--text);
}
.nav__logo span { color: var(--secondary); }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--transition);
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle__option { transition: color var(--transition); }
.lang-toggle__option.active { color: var(--secondary); }
.lang-toggle__sep { opacity: 0.4; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -200px; left: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(7,151,156,0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { transform: scale(1) translate(0, 0); opacity: 0.7; }
  to   { transform: scale(1.15) translate(40px, 40px); opacity: 1; }
}

.hero__content {
  flex: 1;
  max-width: 620px;
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7,151,156,0.12);
  border: 1px solid rgba(7,151,156,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.badge__dot {
  width: 7px; height: 7px;
  background: var(--secondary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.8px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero__title--accent {
  color: var(--secondary);
  -webkit-text-stroke: 0;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 36px;
  font-weight: 300;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(7,151,156,0.4);
}
.btn--primary:hover {
  background: var(--primary-v);
  box-shadow: 0 0 45px rgba(10,174,179,0.55);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}
.btn--lg { padding: 16px 40px; font-size: 1.05rem; }

/* CHIPS */
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  letter-spacing: 0.2px;
}

/* =============================================
   MOCKUP PHONE
   ============================================= */
.hero__mockup {
  flex-shrink: 0;
  animation: fadeUp 0.8s 0.2s ease both;
}

.mockup__phone {
  width: 240px;
  height: 500px;
  background: var(--surface);
  border-radius: 36px;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow:
    0 0 60px rgba(7,151,156,0.2),
    0 40px 80px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.mockup__phone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 28px;
  background: #000;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.mockup__screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0D1419 0%, #060A0D 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.75rem;
  text-align: center;
  padding: 20px;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 56px;
  text-align: center;
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-top) 0%, #0A0E11 100%);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.benefit-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.benefit-card__icon {
  width: 52px; height: 52px;
  background: rgba(7,151,156,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 20px;
}
.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.benefit-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how {
  padding: 100px 0;
  background: #0A0E11;
}

.how__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.how__step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 24px;
}
.how__step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 16px;
}
.how__step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.how__step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.how__connector {
  flex-shrink: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin-top: 26px;
  opacity: 0.5;
}

/* =============================================
   FEATURES DETAIL
   ============================================= */
.features-detail {
  padding: 100px 0;
  background: linear-gradient(180deg, #0A0E11 0%, var(--bg-bottom) 100%);
}

.features-detail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-item {
  padding: 40px 36px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--surface-2); }

.feature-item__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--primary);
  display: block;
  margin-bottom: 14px;
}
.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 100px 0;
  background: var(--bg-bottom);
}
.faq .container { max-width: 720px; }

.faq__list { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq__item[open] { border-color: var(--primary); }

.faq__item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-final {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-bottom) 0%, var(--bg-top) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final__glow {
  position: absolute;
  bottom: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(7,151,156,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__content {
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
  color: var(--text);
}
.cta-final p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-top);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero__sub { margin: 0 auto 36px; }
  .hero__cta { justify-content: center; }
  .hero__chips { justify-content: center; }
  .hero__mockup { order: -1; }

  .how__steps { flex-direction: column; align-items: center; gap: 32px; }
  .how__connector { width: 1px; height: 40px; background: linear-gradient(180deg, var(--primary), var(--secondary)); }

  .features-detail__grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-item:last-child { border-bottom: none; }

  .nav { padding: 16px 20px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero__title { letter-spacing: -0.4px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .btn--lg { padding: 14px 28px; }
}
