/* =============================================
   Licensify — Landing Page Institucional
   Dark mode · Premium · Mobile-first
   ============================================= */

:root {
  --bg-primary: #060608;
  --bg-secondary: #0c0c10;
  --bg-card: #111116;
  --bg-card-hover: #16161d;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;
  --accent: #0084ff;
  --accent-dark: #0064e0;
  --accent-glow: rgba(0, 132, 255, 0.15);
  --gradient: linear-gradient(135deg, #0064e0 0%, #0084ff 50%, #00a3ff 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-height: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1120px;
  --container-narrow: 640px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select {
  font: inherit;
  color: inherit;
}

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

.container--narrow {
  max-width: var(--container-narrow);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   Header
   ============================================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(6, 6, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header--scrolled {
  background: rgba(6, 6, 8, 0.95);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav__link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav__link--cta {
  color: var(--text-primary);
  background: rgba(0, 132, 255, 0.12);
  border: 1px solid rgba(0, 132, 255, 0.25);
}

.nav__link--cta:hover {
  background: rgba(0, 132, 255, 0.2);
  border-color: rgba(0, 132, 255, 0.4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 32px rgba(0, 132, 255, 0.3);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
}

/* =============================================
   Hero
   ============================================= */

.hero {
  position: relative;
  padding: calc(var(--header-height) + 80px) 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 100, 224, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 32px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.hero__badge svg {
  color: var(--accent);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__video {
  max-width: 720px;
  margin: 0 auto 48px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.video-player__poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(0, 100, 224, 0.08) 0%, transparent 50%),
    var(--bg-secondary);
}

.video-player__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(6, 6, 8, 0.4) 100%);
}

.video-player__play {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.video-player__play:hover {
  transform: scale(1.08);
  background: rgba(0, 132, 255, 0.3);
  border-color: rgba(0, 132, 255, 0.5);
}

.video-player__duration {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
}

.video-player__soon {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-player__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__cta-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================
   Sections
   ============================================= */

.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--form {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(0, 100, 224, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section__subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* =============================================
   Benefits
   ============================================= */

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

.benefit-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.benefit-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.benefit-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  background: rgba(0, 132, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.benefit-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.benefit-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =============================================
   Steps
   ============================================= */

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 132, 255, 0.08);
  border: 1px solid rgba(0, 132, 255, 0.2);
  border-radius: var(--radius-md);
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step__connector {
  width: 2px;
  height: 32px;
  margin-left: 27px;
  background: linear-gradient(to bottom, rgba(0, 132, 255, 0.3), rgba(0, 132, 255, 0.05));
}

/* =============================================
   Testimonials
   ============================================= */

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

.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-card__result {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__roi {
  padding: 4px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 100px;
}

.testimonial-card__segment {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.testimonial-card__quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(0, 132, 255, 0.12);
  color: var(--accent);
  border-radius: 50%;
}

.testimonial-card__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =============================================
   FAQ
   ============================================= */

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq__item--open {
  border-color: rgba(0, 132, 255, 0.25);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  gap: 16px;
}

.faq__icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq__item--open .faq__icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq__answer p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   Form
   ============================================= */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form__input {
  padding: 14px 16px;
  font-size: 0.9375rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input:focus {
  border-color: rgba(0, 132, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a6e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form__input--error {
  border-color: rgba(239, 68, 68, 0.5);
}

.form__success {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-xl);
}

.form__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  background: rgba(52, 211, 153, 0.1);
  border-radius: 50%;
  color: #34d399;
}

.form__success-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.form__success-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =============================================
   Footer
   ============================================= */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

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

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--text-primary);
}

.footer__partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__partner svg {
  color: var(--accent);
}

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

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav__list--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__link {
    display: block;
    padding: 12px 16px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .testimonial-card {
    padding: 24px;
  }

  .form {
    padding: 24px;
  }

  .step {
    gap: 16px;
    padding: 24px 0;
  }

  .step__number {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .step__connector {
    margin-left: 23px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .video-player__play {
    width: 56px;
    height: 56px;
  }

  .btn--lg {
    padding: 14px 28px;
    width: 100%;
  }
}
