/* =========================
   VeilVault – addon CSS
   Purpose:
   - Keep CodeVeil design system (styles.v2.css) as the base
   - Restore VeilVault-only components that CodeVeil doesn't define
   - Minimal overrides, no theme drift
   ========================= */

/* -------------------------
   CTA pills (Hero + Download)
   ------------------------- */

.cta-row {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.65rem 3rem;
  border-radius: 999px;

  border: 2px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);

  text-decoration: none;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  will-change: transform;
}

.cta-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #7a5cfe;
  transform: translateY(-1px);
  text-decoration: none;
}

.cta-pill:active {
  transform: translateY(0px);
}

.cta-pill-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.cta-pill-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #7a5cfe;
}

/* -------------------------
   Features split (text + visual)
   ------------------------- */

section#features {
  align-items: flex-start;
}

section#features .features-wrap {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

section#features .features-text {
  max-width: 72ch;
}

section#features .features-visual {
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(0rem, 2vw, 2rem);
  align-items: flex-start;
  padding-top: 0.75rem;
}

figure.feature-collage {
  margin: 0; /* grid controls spacing */
  transform: none;
}

figure.feature-collage img {
  width: 120%;
  max-width: 700px;
  border-radius: 10px;
  display: block;
}

figure.feature-collage figcaption {
  max-width: 520px;
}

/* -------------------------
   Security Model – center title + mirrored columns
   ------------------------- */

section.layout.wide.security-duel {
  padding-left: clamp(1.25rem, 8vw, 12rem);
  padding-right: clamp(1.25rem, 8vw, 12rem);
}

section.layout.wide.security-duel .security-duel-inner {
  width: 100%;
}

section.layout.wide.security-duel .security-duel-title {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

section.layout.wide.security-duel .security-duel-title h2 {
  margin: 0;
}

section.layout.wide.security-duel .security-duel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

section.layout.wide.security-duel .security-col {
  max-width: 68ch;
}

section.layout.wide.security-duel .security-left {
  justify-self: start;
  text-align: left;
}

section.layout.wide.security-duel .security-right {
  justify-self: end;
  text-align: left;
}

section.layout.wide.security-duel .security-col h3 {
  margin-top: 2rem;
}

/* -------------------------
   Center stack panels (Pricing + Download)
   ------------------------- */

.center-panel {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 2.25rem 2rem;
}

.center-panel-strong {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.center-subtle {
  opacity: 0.8;
  margin-top: 1.5rem;
}

/* (Optional) helper wrapper: doesn't change layout, just keeps intent explicit */
.center-stack {
  display: block;
}

/* Mobile nav right-side actions */
.mobile-nav-actions{
  display:flex;
  align-items:center;
  gap:.6rem;
}

/* Compact segmented language toggle for bottom bar */
.lang-toggle{
  display:flex;
  align-items:center;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
}

.lang-toggle--compact .lang-pill{
  padding:.35rem .55rem;
  font-weight:800;
  font-size:.82rem;
  line-height:1;
}

.lang-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:rgba(255,255,255,.82);
  border-right:1px solid rgba(255,255,255,.10);
}

.lang-pill:last-child{
  border-right:none;
}

.lang-pill:hover{
  color:#fff;
  background:rgba(255,255,255,.06);
}

.lang-pill.is-active{
  color:#fff;
  background:rgba(255,255,255,.12);
  cursor:default;
  pointer-events:none;
}

/* -------------------------
   Mobile responsiveness for VeilVault-specific layouts
   Mirrors the stacking behavior you already had.
   ------------------------- */

@media (max-width: 899px) {
  /* Features: stack text then visual */
  section#features .features-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  section#features .features-visual {
    justify-content: flex-start;
    padding-top: 0;
    padding-right: 0;
  }

  figure.feature-collage img,
  figure.feature-collage figcaption {
    max-width: 100%;
    width: 100%;
  }

  /* Security duel stacks */
  section.layout.wide.security-duel {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  section.layout.wide.security-duel .security-duel-grid {
    grid-template-columns: 1fr;
    row-gap: 2.5rem;
  }

  section.layout.wide.security-duel .security-right {
    justify-self: start;
  }

  /* Panels shouldn’t feel cramped */
  .center-panel {
    padding: 1.6rem 1.25rem;
  }
}

@media (max-width: 600px) {
  /* Nothing dramatic, just keep it tidy */
  .cta-pill {
    padding: 0.65rem 2.2rem;
  }
}
