/* ==============================================
   DENTALBOOK — Design System & Styles
   ============================================== */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- Custom Properties --- */
:root {
  --primary: #402A7C;
  --primary-light: #5a3fa0;
  --primary-dark: #2e1d5e;
  --neutral-light: #D9D9D9;
  --surface: #F5F3FF;
  --white: #FDFDFD;
  --black: #0a0a0a;
  --text-primary: #1a1a2e;
  --text-secondary: #6b6b80;
  --text-muted: #9999aa;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-default: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 72px;
  --container-max: 1280px;
  --container-padding: 24px;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==============================================
   NAVIGATION
   ============================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: var(--transition-default);
}

.nav--scrolled {
  background: rgba(253, 253, 253, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  transition: color var(--transition-default);
  z-index: 10;
}

.nav--scrolled .nav__logo {
  color: var(--primary);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  transition: var(--transition-default);
}

.nav--scrolled .nav__logo-icon {
  background: var(--primary);
  color: var(--white);
}

/* Nav Logo & Writemark SVG Images */
.nav__logo-svg {
  height: 42px;
  width: auto;
  transition: opacity var(--transition-default);
}

.nav__wordmark-svg {
  height: 48px;
  width: auto;
  transition: opacity var(--transition-default);
}

/* Default state (dark hero): show white, hide purple */
.nav__logo-svg--purple,
.nav__wordmark-svg--purple {
  display: none;
}

/* Scrolled state (light bg): show purple, hide white */
.nav--scrolled .nav__logo-svg--white,
.nav--scrolled .nav__wordmark-svg--white {
  display: none;
}

.nav--scrolled .nav__logo-svg--purple,
.nav--scrolled .nav__wordmark-svg--purple {
  display: block;
}


/* Desktop Navigation Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-default);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width var(--transition-default);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link:hover {
  color: rgba(255, 255, 255, 1);
}

.nav--scrolled .nav__link {
  color: var(--text-secondary);
}

.nav--scrolled .nav__link:hover {
  color: var(--primary);
}

/* CTA Button in Nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  background: var(--white);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition-default);
}

.nav__cta:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

.nav--scrolled .nav__cta {
  background: var(--primary);
  color: var(--white);
}

.nav--scrolled .nav__cta:hover {
  background: var(--primary-light);
}

/* Mobile Menu Toggle */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.nav__mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-default);
}

.nav--scrolled .nav__mobile-toggle span {
  background: var(--primary);
}

/* Mobile Menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.nav__mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-menu .nav__link {
  font-size: 28px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.nav__mobile-menu .nav__cta {
  margin-top: 16px;
  height: 52px;
  padding: 0 40px;
  font-size: 16px;
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 40%, #5a3fa0 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(90, 63, 160, 0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(64, 42, 124, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--white), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero__title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, #c4b5fd, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  max-width: 440px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image {
  width: auto;
  max-width: 100%;
  max-height: 680px;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.45)) drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  animation: hero-float 6s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes hero-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-14px);
  }
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition-default);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  height: 52px;
  padding: 0 32px;
  background: var(--white);
  color: var(--primary);
  font-size: 15px;
}

.btn--primary:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  height: 52px;
  padding: 0 32px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--dark {
  height: 52px;
  padding: 0 32px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
}

.btn--dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64, 42, 124, 0.3);
}

.btn--icon {
  font-size: 18px;
}

/* ==============================================
   SECONDARY NAV / BULLETIN
   ============================================== */
.bulletin {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9990;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-100%);
  transition: var(--transition-smooth);
}

.bulletin.visible {
  opacity: 1;
  transform: translateY(0);
}

.bulletin__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.bulletin__product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bulletin__product-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

/* Bulletin Logo SVG */
.bulletin__product-logo {
  height: 24px;
  width: auto;
}

.bulletin__product-info {
  display: flex;
  flex-direction: column;
}

.bulletin__product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.bulletin__product-tagline {
  font-size: 12px;
  color: var(--text-muted);
}

.bulletin__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bulletin__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-default);
}

.bulletin__link:hover {
  color: var(--primary);
}

.bulletin__cta {
  height: 36px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  transition: var(--transition-default);
}

.bulletin__cta:hover {
  background: var(--primary-light);
}

/* ==============================================
   SECTION — INTRODUCING
   ============================================== */
.section {
  padding: 120px 0;
}

.section--surface {
  background: var(--surface);
}

.section--dark {
  background: var(--primary);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section__tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section--dark .section__tag {
  color: #c4b5fd;
}

.section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.section__description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.section--dark .section__description {
  color: rgba(255, 255, 255, 0.6);
}

/* ==============================================
   FEATURES GRID
   ============================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-default);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(64, 42, 124, 0.08);
  border-color: rgba(64, 42, 124, 0.12);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
  color: var(--primary);
}

.feature-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==============================================
   SHOWCASE (Split Section)
   ============================================== */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.showcase--reverse {
  direction: rtl;
}

.showcase--reverse>* {
  direction: ltr;
}

.showcase__content {
  max-width: 480px;
}

.showcase__media {
  position: relative;
}

.showcase__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--surface), var(--neutral-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.showcase__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

/* ==============================================
   COMPARISON (3 Columns)
   ============================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.comparison-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition-default);
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(64, 42, 124, 0.08);
}

.comparison-card__media {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--surface), #e8e4f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  overflow: hidden;
}

.comparison-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-card__label {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
}

/* ==============================================
   PROMO / CTA SECTION
   ============================================== */
.promo {
  position: relative;
  padding: 160px 0;
  background: linear-gradient(165deg, var(--primary-dark), var(--primary), #5a3fa0);
  overflow: hidden;
  text-align: center;
}

.promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.promo__content {
  position: relative;
  z-index: 2;
}

.promo__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 20px;
}

.promo__description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ==============================================
   SPECS / DETAILS
   ============================================== */
.specs {
  padding: 100px 0;
}

.specs__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.specs__col {
  padding-right: 60px;
}

.specs__col:last-child {
  padding-right: 0;
  padding-left: 60px;
  border-left: 1px solid var(--neutral-light);
}

.specs__group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 24px;
}

.specs__item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.specs__label {
  font-size: 14px;
  color: var(--text-secondary);
}

.specs__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 40px;
}

/* Footer Logo & Writemark */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo-svg {
  height: 42px;
  width: auto;
}

.footer__wordmark-svg {
  height: 48px;
  width: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__brand-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  transition: color var(--transition-default);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: var(--transition-default);
}

.footer__social:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* ==============================================
   SCROLL ANIMATIONS
   ============================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 140px;
  }

  .hero__content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__description {
    max-width: 520px;
  }

  .hero__media {
    order: -1;
  }

  .hero__image-placeholder {
    max-width: 320px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .showcase--reverse {
    direction: ltr;
  }

  .comparison-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .specs__col:last-child {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--neutral-light);
    padding-top: 32px;
    margin-top: 16px;
  }

  .specs__col {
    padding-right: 0;
  }

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

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta.desktop-only {
    display: none;
  }

  /* Redimensionamento mobile para a Logo do Topo */
  .nav__logo-svg {
    height: 28px;
  }

  .nav__wordmark-svg {
    height: 16px;
  }

  /* Redimensionamento mobile para a Logo do Rodapé */
  .footer__logo-svg {
    height: 24px;
  }

  .footer__wordmark-svg {
    height: 14px;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__mobile-menu {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero__inner {
    padding-top: 120px;
    gap: 40px;
  }

  .hero__image-placeholder {
    max-width: 260px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 80px 0;
  }

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

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

  .bulletin {
    display: none;
  }

  .promo {
    padding: 100px 0;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}