:root {
  --bg-dark: #04101f;
  --bg-dark-2: #071a33;
  --primary: #00b8ff;
  --primary-dark: #0077b6;
  --accent: #23d18b;
  --danger: #ff6b6b;
  --warning: #ffd166;
  --text-light: #ffffff;
  --text-muted: #b8c7d9;
  --card-bg: #0b213f;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --max-width: 1180px;
  --content-bg: #ffffff;
  --section-light: #f4f8fc;
  --content-text: #102033;
  --content-title: #06172b;
  --content-muted: #42546b;
  --field-border: #c9d8e8;
  --soft-border: #dce8f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

button {
  border: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

/* HEADER - mantém paleta escura padrão PDX Pro */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 16, 31, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  width: auto;
  height: 42px;
  max-width: 155px;
  display: block;
  object-fit: contain;
}

.nav {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(4, 16, 31, 0.98);
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav.active {
  display: flex;
}

.nav a {
  color: var(--text-light);
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.menu-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font-size: 1.35rem;
  cursor: pointer;
}

.btn-header-action {
  display: none;
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-light);
  box-shadow: 0 12px 25px rgba(0, 184, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 184, 255, 0.35);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* HERO */

.hero {
  padding: 52px 0 46px;
  background:
    radial-gradient(circle at top right, rgba(0, 184, 255, 0.22), transparent 34%),
    linear-gradient(180deg, var(--bg-dark), var(--bg-dark-2));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(35, 209, 139, 0.08);
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(2.1rem, 10vw, 4rem);
  line-height: 1.08;
  margin-bottom: 22px;
  letter-spacing: -1.4px;
}

.hero p {
  font-size: 1.03rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-actions .btn {
  width: 100%;
}

.hero-panel {
  background: rgba(11, 33, 63, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.hero-panel li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 900;
  margin-right: 8px;
}

/* SEÇÕES */

section {
  padding: 64px 0;
}

.calculator-section {
  background: var(--content-bg);
  color: var(--content-text);
}

.section-title {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.section-title span {
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.6px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  margin: 10px 0 12px;
  color: var(--content-title);
  line-height: 1.15;
}

.section-title p {
  color: var(--content-muted);
}

/* CALCULADORA */

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.form-card,
.result-card {
  background: var(--section-light);
  border: 1px solid var(--soft-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(4, 16, 31, 0.08);
}

.form-card h3,
.result-card h3 {
  color: var(--content-title);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full {
  grid-column: 1 / -1;
}

label {
  color: #20344d;
  font-weight: 700;
  font-size: 0.94rem;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--field-border);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 1rem;
  background: var(--content-bg);
  color: var(--content-text);
  outline: none;
  transition: 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.12);
}

.form-note {
  margin-top: 14px;
  color: #5d6f86;
  font-size: 0.9rem;
}

.calculate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.calculate-actions .btn {
  width: 100%;
  min-height: 52px;
}

.result-empty {
  color: #5d6f86;
  background: var(--content-bg);
  border: 1px dashed var(--field-border);
  border-radius: 18px;
  padding: 22px;
}

.result-box {
  display: none;
}

.result-highlight {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-2));
  color: var(--text-light);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
}

.result-highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.result-highlight strong {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  color: var(--accent);
}

.result-details {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.result-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--soft-border);
  color: var(--content-muted);
}

.result-line strong {
  color: var(--content-title);
  text-align: left;
}

.technical-note {
  background: var(--content-bg);
  border-left: 4px solid var(--primary-dark);
  border-radius: 14px;
  padding: 16px;
  color: var(--content-muted);
  margin: 18px 0;
}

.result-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-actions .btn {
  width: 100%;
}

/* CONTEÚDO */

.content {
  background: var(--content-bg);
  color: var(--content-text);
}

.content.alt {
  background: var(--section-light);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.content h2 {
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  margin-bottom: 18px;
  color: var(--content-title);
  line-height: 1.18;
}

.content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--content-title);
}

.content p {
  color: var(--content-muted);
  margin-bottom: 14px;
}

.content-box {
  background: var(--content-bg);
  border: 1px solid var(--soft-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(4, 16, 31, 0.06);
}

.content-box ul {
  padding-left: 20px;
  color: var(--content-muted);
}

/* CTA */

.cta {
  background:
    radial-gradient(circle at bottom left, rgba(35, 209, 139, 0.16), transparent 34%),
    var(--bg-dark-2);
}

.cta-box {
  background: linear-gradient(135deg, rgba(0, 184, 255, 0.14), rgba(35, 209, 139, 0.1));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  font-size: clamp(1.8rem, 7vw, 2.7rem);
  margin-bottom: 14px;
  line-height: 1.15;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cta-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-muted);
}

.cta-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: 900;
  margin-right: 8px;
}

/* FOOTER */

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-dark);
  font-size: 0.95rem;
}

/* TABLET */

@media (min-width: 621px) {
  .header-content {
    min-height: 76px;
  }

  .logo-img {
    height: 50px;
    max-width: 190px;
  }

  .hero-actions,
  .calculate-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn,
  .calculate-actions .btn {
    width: auto;
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card,
  .result-card,
  .cta-box {
    padding: 28px;
  }

  .result-line {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
  }

  .result-line strong {
    text-align: right;
  }
}

/* DESKTOP */

@media (min-width: 961px) {
  .menu-mobile {
    display: none;
  }

  .btn-header-action {
    display: inline-flex;
  }

  .nav {
    position: static;
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    border-bottom: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .nav a {
    color: var(--text-muted);
  }

  .nav a:hover,
  .nav a.active {
    color: var(--primary);
  }

  .hero {
    padding: 78px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
  }

  .hero p {
    font-size: 1.13rem;
  }

  section {
    padding: 72px 0;
  }

  .calculator-grid,
  .content-grid,
  .cta-box {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .content-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}