/* ===========================
   BV Apps Landing Page — Styles
   =========================== */

:root {
  --color-bg: #0a0e1a;
  --color-bg-alt: #0f1424;
  --color-surface: #151a2e;
  --color-surface-hover: #1c2240;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-text: #e2e8f0;
  --color-text-muted: #8892a8;
  --color-primary: #38bdf8;
  --color-primary-dark: #0ea5e9;
  --color-accent: #06d6f2;
  --color-gradient-start: #38bdf8;
  --color-gradient-end: #06d6f2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1100px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  color: #0a0e1a;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
}
.btn--outline:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.6);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.header__logo img {
  border-radius: 10px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.header__nav a:hover {
  color: #fff;
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hero__bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__logo {
  margin: 0 auto 40px;
  border-radius: 32px;
  animation: float 6s ease-in-out infinite;
}

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

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== SECTION COMMON ===== */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  text-align: center;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  text-align: left;
  margin-top: 48px;
}

.about__text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1rem;
}

.about__text strong {
  color: #fff;
}

.about__stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateX(4px);
}

.stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--color-primary);
}

.stat-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.stat-card__value,
.stat-card__label {
  display: block;
}

/* ===== APPS ===== */
.apps {
  padding: 100px 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.apps__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.app-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
}

.app-card:hover {
  border-color: rgba(56, 189, 248, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.app-card--featured {
  border-color: rgba(56, 189, 248, 0.15);
  background: linear-gradient(145deg, var(--color-surface) 0%, rgba(56, 189, 248, 0.03) 100%);
}

.app-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-primary);
}

.app-card__badge--soon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.app-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-card__icon {
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.app-card__icon--placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--color-surface-hover);
  color: var(--color-text-muted);
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.app-card__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.app-card__category {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.app-card__desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.app-card__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.app-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.app-card__features svg {
  color: var(--color-accent);
  min-width: 18px;
}

.app-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.app-card__coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.app-card--soon {
  display: flex;
  flex-direction: column;
  opacity: 0.7;
}

.app-card--soon:hover {
  opacity: 1;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  text-align: center;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}

.contact-card svg {
  color: var(--color-primary);
  margin: 0 auto 16px;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  word-break: break-word;
}

.contact-card__small {
  font-size: 0.78rem !important;
  margin-top: 6px;
  opacity: 0.7;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

.footer__brand img {
  border-radius: 8px;
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.footer__cnpj {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--color-surface);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transition: right var(--transition);
    z-index: 200;
    border-left: 1px solid var(--color-border);
  }

  .header__nav.open {
    right: 0;
  }

  .header__nav a {
    font-size: 1.1rem;
  }

  .header__menu-btn {
    display: flex;
    z-index: 300;
  }

  .header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .header__menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { padding: 100px 0 60px; }
  .hero__logo { width: 120px; height: 120px; }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

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

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

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.8rem; }
  .hero__subtitle { font-size: 1rem; }
  .section-title { font-size: 1.6rem; }
  .app-card { padding: 24px; }
  .about__stats { flex-direction: column; }
  .stat-card { flex-direction: row; text-align: left; }
}
