/* ===== Custom Properties ===== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #e2daff;
  --color-primary: #7a51e0;
  --color-primary-dark: #5a35b8;
  --color-primary-light: #f3efff;
  --color-text: #000000;
  --font-body: "Inter", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  transition: opacity 0.2s ease;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 1000;
  font-size: 14px;
}

.skip-link:focus {
  top: 8px;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-primary);
}

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

/* Language Toggle */
.lang-switcher {
  position: relative;
}

#lang-toggle {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

#lang-toggle:hover,
#lang-toggle:focus-visible {
  border-color: var(--color-primary);
}

#lang-toggle img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  min-width: 140px;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.15s;
}

.lang-dropdown button:hover {
  background: var(--color-primary-light);
}

.lang-dropdown button img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Nav overlay */
.nav-overlay {
  display: none;
}

/* ===== Hero ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, #e2daff 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #333;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-mockup {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-mockup .phone-frame {
  width: 280px;
  height: 500px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(122, 81, 224, 0.2);
  border: 6px solid #222;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-header .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.phone-chat {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ece5dd;
  overflow-y: auto;
}

.msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.msg-sent {
  align-self: flex-end;
  background: #dcf8c6;
  border-bottom-right-radius: 2px;
}

.msg-received {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 2px;
}

.msg .time {
  font-size: 10px;
  color: #888;
  text-align: right;
  margin-top: 4px;
}

/* ===== Buttons ===== */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-wa:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-wa:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-wa svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ===== Section Shared ===== */
section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

/* ===== How It Works ===== */
.how-it-works {
  background: var(--color-bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.step-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* ===== Features ===== */
.features {
  background: var(--color-bg-alt);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(122, 81, 224, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.feature-icon-text {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* ===== Why Belt ===== */
.why-belt {
  background: var(--color-bg);
}

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

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--color-primary-light);
  border-radius: 12px;
}

.pain-card .icon-before {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pain-card .icon-before.pain {
  background: #fee;
  color: #c00;
}

.pain-card .icon-before.solution {
  background: #e6f9e6;
  color: #080;
}

.pain-card .pain-text {
  font-size: 15px;
  color: #555;
  text-decoration: line-through;
}

.pain-card .solution-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Pricing ===== */
.pricing {
  background: var(--color-bg-alt);
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(122, 81, 224, 0.1);
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 8px;
}

.pricing-card .price-subtitle {
  font-size: 16px;
  color: #777;
  margin-bottom: 32px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-list li {
  padding: 10px 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-list li::before {
  content: "\2713";
  color: var(--color-primary);
  font-weight: 700;
  font-size: 18px;
}

/* ===== Final CTA ===== */
.final-cta {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.final-cta .section-title {
  color: #fff;
}

.final-cta p {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.final-cta .btn-wa {
  background: #fff;
  color: var(--color-primary);
  font-size: 18px;
}

.final-cta .btn-wa:hover {
  background: #f3efff;
}

.final-cta .btn-wa svg {
  fill: var(--color-primary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-text);
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-left img {
  height: 28px;
}

.footer-left span {
  font-size: 14px;
  opacity: 0.8;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.footer-right a {
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-right a:hover {
  opacity: 1;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.6;
}

/* ===== Floating WhatsApp Button ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ===== Sobre Page ===== */
.sobre-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 20px 80px;
}

.sobre-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 24px;
}

.sobre-content p {
  font-size: 18px;
  line-height: 1.8;
  color: #444;
}

/* ===== Focus Styles ===== */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Tablet */
@media (max-width: 1023px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text p {
    max-width: 100%;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 200;
    padding: 80px 24px 24px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu .nav-links a {
    font-size: 18px;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero {
    padding: 100px 0 60px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 32px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .step-card h3,
  .feature-card h3 {
    font-size: 18px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    flex-direction: column;
    gap: 12px;
  }

  .btn-wa {
    padding: 14px 24px;
    font-size: 15px;
  }

  .phone-frame {
    width: 240px !important;
    height: 420px !important;
  }
}
