
:root {
  --bg: #eef2f8;
  --bg-soft: #ffffff;
  --primary: #1a4fe0;
  --primary-light: #dbe7ff;
  --primary-soft: rgba(26, 79, 224, 0.12);
  --accent: #16a34a;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --danger: #b91c1c;
  --text-main: #0b1a4a;
  --text-soft: #5b6b8a;
  --border: #e2e8f4;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 20px 50px rgba(11, 26, 74, 0.15);
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Serif", "Times New Roman", Times, serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 22, 58, 0.98) 0%, rgba(16, 42, 106, 0.96) 100%);
  border-bottom: 1px solid rgba(15, 40, 110, 0.6);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 25%;
  background: radial-gradient(circle at 20% 20%, #e6efff 0, #1a4fe0 45%, #0a163a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eff6ff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.4);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
  color: #e9f1ff;
}

.logo-text-sub {
  font-size: 0.8rem;
  color: #c8d8ff;
}

.brand-ia {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.logo-wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.05rem;
  line-height: 1;
  user-select: none;
}

.logo-bahnschrift {
  font-family: Bahnschrift, "Bahnschrift SemiLight", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  font-size: 34px;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo-ia {
  font-family: "Bookman Old Style", Bookman, "URW Bookman", "Bookman URW", serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  color: #58b7e8;
  letter-spacing: 0.5px;
  transform: translateY(1px);
}

.logo-caret {
  width: 3px;
  height: 40px;
  background: #000000;
  display: inline-block;
  margin-left: 0.2rem;
  transform: translateY(3px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(26, 79, 224, 0.35);
}

.btn-primary:hover {
  background: #153db4;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(26, 79, 224, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-ghost:hover {
  background: #ffffff;
  border-color: var(--primary);
}

main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
}

/* HERO */
.section.hero {
  max-width: none;
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.3rem;
  padding-top: 4.2rem;
  padding-bottom: 3.6rem;
  background: linear-gradient(180deg, #0a163a 0%, #102a6a 46%, #2b5fe3 100%);
  color: #e7efff;
  border-bottom: 1px solid rgba(15, 40, 110, 0.6);
  text-align: center;
}

.hero > div:first-child {
  max-width: 900px;
}

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #a9c2ff;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-highlight {
  color: #8fc2ff;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #d6e4ff;
  
  margin-bottom: 1.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.8rem;
  color: #c8d8ff;
  justify-content: center;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-meta-badge {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.hero-card {
  background: var(--bg-soft);
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 26px 60px rgba(6, 16, 45, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.7);
  color: var(--text-main);
  width: min(960px, 100%);
  margin-top: 1.5rem;
}

.hero-pillbox {
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #eef3ff);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1.7fr 2fr;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.pillbox-graphic {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 10% 10%, #bfdbfe 0, #eff6ff 30%, transparent 55%),
    radial-gradient(circle at 80% 90%, #bbf7d0 0, #ecfdf5 32%, transparent 60%),
    linear-gradient(135deg, #0f172a, #111827);
  position: relative;
  overflow: hidden;
}

.pillbox-body {
  position: absolute;
  inset: 18% 10%;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  box-shadow:
    0 14px 26px rgba(15, 23, 42, 0.6),
    0 0 0 1px rgba(148, 163, 184, 0.4);
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.8rem;
  justify-content: space-between;
}

.pillbox-lid {
  height: 34%;
  border-radius: 16px;
  background: linear-gradient(120deg, #1a4fe0, #5aa6ff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem;
  color: #e5f0ff;
  font-size: 0.7rem;
  font-weight: 600;
}

.pillbox-leds {
  display: flex;
  gap: 0.25rem;
}

.pillbox-leds span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
}

.pillbox-leds span:nth-child(1) { background: #22c55e; }
.pillbox-leds span:nth-child(2) { background: #f97316; }
.pillbox-leds span:nth-child(3) { background: #ef4444; }

.pillbox-screen {
  flex: 1;
  border-radius: 12px;
  background: #0b1a4a;
  color: #e5e7eb;
  padding: 0.35rem 0.5rem;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.pillbox-screen-chip {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(26, 79, 224, 0.22);
  color: #c7dcff;
}

.pillbox-stat {
  border-radius: 999px;
  background: #081534;
  padding: 0.12rem 0.5rem;
  font-size: 0.6rem;
  color: #b7c9ff;
}

.pillbox-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.6rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

.hero-pillbox-copy-title {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero-pillbox-copy-sub {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.hero-pillbox-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  font-size: 0.78rem;
}

.metric-card {
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  font-size: smaller;
  color: var(--text-soft);
}

.metric-value {
  font-weight: 600;
}

/* Sections */
.section-heading {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 1.7rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: flex-start;
}

.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.bullet-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.bullet-dot {
  margin-top: 0.3rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}

.card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
}

.card-title {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.card-sub {
  font-size: 0.84rem;
  color: var(--text-soft);
  margin-bottom: 0.9rem;
}

.feature-section .section-heading,
.feature-section .section-sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1rem 0 2rem;
}

.feature-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.feature-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(26, 79, 224, 0.12);
}

.feature-layout {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.feature-layout.is-active {
  display: grid;
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--text-main);
}

.feature-text {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: 0 22px 46px rgba(11, 26, 74, 0.08);
}

.whatsapp-section {
  margin-top: 2.5rem;
}

.whatsapp-heading {
  font-size: 1.3rem;
  margin: 0.45rem 0 0.6rem;
  color: var(--text-main);
}

.tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.4rem;
}

.tab {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-main);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
}

.tab.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(26, 79, 224, 0.15);
}

.whatsapp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.whatsapp-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: 0 18px 38px rgba(11, 26, 74, 0.08);
}

.whatsapp-card.is-active {
  border-color: rgba(26, 79, 224, 0.45);
  box-shadow: 0 24px 50px rgba(11, 26, 74, 0.14);
}

.whatsapp-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

.chat-mock {
  background: #f4f7ff;
  border-radius: 16px;
  padding: 0.85rem;
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(26, 79, 224, 0.12);
}

.chat-mock[data-animate="true"] {
  height: 230px;
  overflow: hidden;
}

.chat-scroll {
  height: 100%;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
  padding-right: 0.2rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.35;
}

.chat-mock[data-animate="true"] .chat-bubble {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-mock[data-animate="true"] .chat-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-bubble.agent {
  background: #0b1a4a;
  color: #e9f1ff;
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  margin-left: auto;
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(26, 79, 224, 0.15);
  border-bottom-right-radius: 4px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #15803d;
  font-weight: 500;
}

.price {
  margin-top: 0.6rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
}

.price-sub {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: -0.2rem;
}

.cta-section {
  text-align: center;
  padding-bottom: 3rem;
}

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  color: #e5f0ff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.55);
}

.cta-box h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  font-size: 0.94rem;
  margin-bottom: 1.3rem;
  opacity: 0.96;
}

.cta-box .btn-primary {
  background: #0f172a;
  box-shadow: none;
}

.cta-box .btn-primary:hover {
  background: #020617;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
}

footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #f6f8fd;
}

.hero .btn-primary {
  background: #0b1a4a;
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: #081334;
  box-shadow: none;
}

.hero .btn-ghost {
  background: transparent;
  color: #e9f1ff;
  border-color: rgba(233, 241, 255, 0.45);
}

.hero .btn-ghost:hover {
  background: rgba(233, 241, 255, 0.1);
  border-color: rgba(233, 241, 255, 0.7);
}

html {
  scroll-behavior: smooth;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 32, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.5rem 1.6rem 1.6rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(6, 12, 32, 0.35);
}

.modal-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.modal-sub {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.modal-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.modal-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.modal-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 79, 224, 0.15);
}

.modal-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.3rem;
}

.modal-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  min-height: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-soft);
}

.modal-close:hover {
  color: var(--text-main);
}

header .btn-ghost {
  background: #f3f6ff;
  color: #0b1a4a;
  border-color: transparent;
}

header .btn-ghost:hover {
  background: #ffffff;
  border-color: transparent;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-pillbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .whatsapp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 1.8rem;
  }

  .nav {
    padding-inline: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-actions {
    display: none;
  }
}
