/* ============================================================
   MAIN.CSS — Layout, navbar, all page sections, footer
   ============================================================ */

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  background: hsla(222, 15%, 9%, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.navbar__logo img {
  height: 36px;
  width: auto;
  display: block;
}

.navbar__product {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  padding-left: var(--space-3);
  border-left: 1px solid var(--border-2);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.navbar__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.navbar__links a:hover {
  color: var(--text);
  background: var(--surface);
}

.navbar__cta {
  margin-left: var(--space-2);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
  margin-left: var(--space-2);
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--text);
  background: var(--surface);
}

.lang-toggle svg {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 740px) {
  .navbar__links           { display: none; }
  .navbar__cta             { margin-left: auto; padding: 8px 14px; font-size: 13px; }
  .lang-toggle             { padding: 6px 8px; }
  .navbar__inner           { padding-inline: 12px; gap: var(--space-2); }
  .navbar__logo img        { display: none; }
  .navbar__product         { padding-left: 0; border-left: none; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px var(--space-6) var(--space-20);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 560px at 50% 18%, hsla(210, 85%, 55%, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 15% 80%, hsla(168, 65%, 46%, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 85% 80%, hsla(264, 55%, 52%, 0.06) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  max-width: 780px;
  text-align: center;
}

.hero__tag {
  margin-bottom: var(--space-6);
}

.hero__headline {
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue-light), hsl(190, 90%, 62%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.72;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto var(--space-10);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ─── HERO SCREENSHOT ─── */
.hero__screenshot-wrap {
  position: relative;
  max-width: 1060px;
  width: 100%;
  margin: var(--space-20) auto 0;
  padding-inline: var(--space-6);
}

.hero__screenshot-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 180px;
  background: radial-gradient(ellipse, hsla(210, 85%, 55%, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero__screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--border);
  overflow: hidden;
}

.hero__screenshot img {
  width: 100%;
  display: block;
}

/* ─── TRUSTED BY STRIP ─── */
.trust-strip {
  padding: var(--space-12) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
  margin-bottom: var(--space-6);
}

.trust-strip__items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  opacity: 0.75;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.7;
}

/* ─── SECTION SHARED ─── */
.section {
  padding: var(--space-32) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-2);
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  gap: 1px;
  background: var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 36px 30px;
  transition: background var(--transition);
}

.feature-card:hover {
  background: var(--surface);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--blue-glow);
  border: 1px solid hsla(210, 85%, 60%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: var(--space-5);
}

.feature-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ─── PRODUCT SCREENSHOTS TABS ─── */
.screenshots-section {
  padding: var(--space-32) 0;
  background: var(--bg-2);
}

.screenshots-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition),
              border-color var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-2);
}

.tab-btn.active {
  color: var(--blue-light);
  background: var(--blue-glow);
  border-color: hsla(210, 85%, 60%, 0.25);
}

.screenshot-display {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.screenshot-display img {
  width: 100%;
  display: block;
  transition: opacity 0.25s ease;
}

.screenshot-display img.hidden {
  display: none;
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(to top, hsla(222, 15%, 9%, 0.95), transparent);
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
}

/* ─── HOW IT WORKS ─── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}

.how-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.66% + 16px);
  right: calc(16.66% + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--blue), var(--blue-dark));
  opacity: 0.35;
}

.how-step {
  text-align: center;
  padding: 0 var(--space-2);
}

.how-step__num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-light);
  margin: 0 auto var(--space-5);
  position: relative;
  z-index: 1;
}

.how-step h3 {
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.how-step p {
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 680px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid::before { display: none; }
}

/* ─── SPLIT FEATURE (text + screenshot side by side) ─── */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-feature--reverse {
  direction: rtl;
}
.split-feature--reverse > * {
  direction: ltr;
}

.split-feature__text .tag {
  margin-bottom: var(--space-4);
}

.split-feature__text h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.split-feature__text p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.split-feature__visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  position: relative;
}

.split-feature__visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.split-feature__visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .split-feature { grid-template-columns: 1fr; gap: var(--space-10); }
  .split-feature--reverse { direction: ltr; }
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.pricing-card {
  background: var(--bg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--featured {
  background: var(--surface);
}

.pricing-card__popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 4px 14px;
  border-radius: 0 0 8px 8px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.pricing-card__price {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-card__price sup {
  font-size: 16px;
  font-weight: 600;
  vertical-align: super;
  color: var(--text-2);
}

.pricing-card__price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-3);
}

.pricing-card__custom {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  padding-top: 4px;
}

.pricing-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: var(--space-3) 0 var(--space-6);
}

.pricing-card__divider {
  height: 1px;
  background: var(--border);
  margin-bottom: var(--space-6);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.pricing-card__features .ok { color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-card__features .no { color: var(--text-3); flex-shrink: 0; }

.pricing-card__cta {
  margin-top: var(--space-8);
}

.pricing-card__cta .btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }
}

/* ─── PRICING ADD-ON CARD ─── */
.addon-card {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: var(--space-8);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
}

.addon-card__left .tag {
  margin-bottom: var(--space-3);
}

.addon-card__left h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.addon-card__left p {
  font-size: 14px;
  line-height: 1.7;
}

.addon-card__cta {
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .addon-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ─── SECURITY STRIP ─── */
.security-strip {
  padding: var(--space-16) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  gap: var(--space-8);
  justify-content: center;
}

.security-item {
  text-align: center;
}

.security-item__icon {
  font-size: 28px;
  margin-bottom: var(--space-3);
  display: block;
}

.security-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.security-item__sub {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CTA SECTION ─── */
.cta-section {
  padding: var(--space-32) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 800px 360px at 50% 50%, hsla(210, 85%, 55%, 0.1) 0%, transparent 65%);
}

.cta-section h2 {
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.cta-section__note {
  font-size: 12px;
  color: var(--text-3);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__brand-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.footer__brand-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 240px;
}

.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col ul li a {
  font-size: 13px;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer__bottom a {
  color: var(--text-3);
}

.footer__bottom a:hover {
  color: var(--text-2);
}

@media (max-width: 820px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ─── LIGHT THEME OVERRIDES ─── */

/* Navbar: override hardcoded dark hsla background */
.light .navbar {
  background: hsla(0, 0%, 100%, 0.90);
}

/* Hero glows: tone down opacity on light bg */
.light .hero__glow {
  background:
    radial-gradient(ellipse 900px 560px at 50% 18%, hsla(210, 85%, 55%, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 15% 80%, hsla(168, 65%, 46%, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 85% 80%, hsla(264, 55%, 52%, 0.03) 0%, transparent 60%);
}

.light .hero__screenshot-glow {
  background: radial-gradient(ellipse, hsla(210, 85%, 55%, 0.08) 0%, transparent 70%);
}

/* Screenshot caption: swap gradient from dark-bg to light-bg */
.light .screenshot-caption {
  background: linear-gradient(to top, hsla(210, 20%, 97%, 0.95), transparent);
  color: var(--text-2);
}

/* CTA section glow: reduce opacity on light bg */
.light .cta-section::before {
  background: radial-gradient(ellipse 800px 360px at 50% 50%, hsla(210, 85%, 55%, 0.06) 0%, transparent 65%);
}

/* Theme toggle icon visibility */
#themeToggle .icon-sun  { display: none; }
#themeToggle .icon-moon { display: block; }
.light #themeToggle .icon-sun  { display: block; }
.light #themeToggle .icon-moon { display: none; }

/* ─── CHAT WIDGET — mobile fix ─── */
@media (max-width: 480px) {
  #legaldominio-widget-container {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    height: min(650px, 100dvh) !important;
  }
}

/* modal styles → modal.css */
