/* ============================================================
   LANDING.CSS — TRINITY · alpinelinux.fr
   Base : landing v4 (doc 14)
   + chat overlay modal mergé depuis landing v3 (doc 12)
   ============================================================ */

:root {
  --v:    #3e3aab;
  --vd:   #302d8f;
  --vp:   #eceafc;
  --vl:   #f5f4ff;
  --mono: 'JetBrains Mono', monospace;
  --dis:  'Archivo Black', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #0f0e1a; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.container    { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section.section.section-light.section-hardware .container { padding: 0; }
.section      { padding: 5rem 3rem; }
.section-white { background: white; }
.section-light { background: var(--vl); }

/* ── TYPO COMMUNE ── */
.s-eye {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--v);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.33rem;
    font-weight: bold;
}
.s-eye i {
  font-size: 1.33rem;
}
.s-title {
  font-family: var(--dis); font-size: clamp(1.33rem, 3vw, 2.1rem);
  color: #0f0e1a; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.66rem;
}
.s-sub { font-size: 0.9rem; color: #6b7280; line-height: 1.75; max-width: 500px; margin: 0 auto; }
.s-head { text-align: center; margin-bottom: 3rem; }

/* ── BOUTONS ── */
.btn-primary {
  font-weight: 700; font-size: 0.85rem; color: white; background: var(--v);
  padding: 0.7rem 1.6rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.btn-primary:hover { background: var(--vd); }
.btn-outline {
  font-weight: 600; font-size: 0.85rem; color: var(--v);
  border: 1.5px solid rgba(62,58,171,.25); padding: 0.7rem 1.6rem;
  border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  background: transparent; transition: all .15s;
}
.btn-outline:hover {
  border-color: var(--v);
  color: var(--v);
  background: white;
}
.btn-cta-white {
  font-weight: 700; font-size: 0.85rem; color: var(--v); background: white;
  padding: 0.7rem 1.6rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.btn-cta-white:hover {
  border-color: var(--v);
  color: var(--v);
  background: white;
}
.btn-cta-ghost {
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, .65);
    border: 1.5px solid rgba(255, 255, 255, .2);
    padding: 0.7rem 1.6rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.66rem;
    transition: all .15s;
}
a.btn-cta-ghost i {
    font-size: 1.33rem;
    opacity: 0.66;
}
.btn-cta-ghost:hover { color: white; border-color: rgba(255,255,255,.45); }

/* ── NAV ── */
nav {
  background: white; border-bottom: 1px solid #ebebf5;
  padding: 0 3rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.nav-brand img { width: 5.5rem; max-width: none;}
.nav-links { display: flex; gap: 2.5rem; list-style: none; margin-left: 10rem; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: #6b7280; transition: color .15s; }
.nav-links a:hover { color: var(--v); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn-login {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  padding: 0.45rem 1rem;
  transition: color .15s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.btn-login i {
  font-size: 0.9rem;
}
.btn-login:hover {
    color: var(--v);
    font-weight: 900;
}
.btn-signup {
  font-size: 0.8rem; font-weight: 700; color: var(--v); background:  white;
  padding: 0.25rem 1.25rem; border-radius: 6px; border: 1.5px solid;
  display: inline-flex; align-items: center; gap: 6px; transition: background .15s;
}
.btn-signup:hover { background: var(--vd); }

/* ── HERO ── */
.hero { background: white; padding: 5rem 3rem 0; text-align: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 1200px; height: 550px; background: var(--vl);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 0;
}
.hero-dot { position: absolute; border-radius: 50%; background: var(--v); z-index: 1; }
.hero-dot--sm { width: 10px; height: 10px; }
.hero-dot--md { width: 14px; height: 14px; }
.hero-dot--lg { width: 18px; height: 18px; opacity: .3; }
.d1 { top: 120px; left: 14%; }
.d2 { top: 200px; right: 12%; }
.d3 { top: 80px; right: 22%; opacity: .2; }
.d4 { top: 300px; left: 8%; opacity: .15; }
.hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-family: var(--dis); font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #0f0e1a; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 0.95rem; color: #6b7280; line-height: 1.75;
  margin-bottom: 2.25rem; max-width: 500px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 3.5rem; }
.btn-primary-hero {
  font-weight: 700; font-size: 0.88rem; color: white; background: var(--v);
  padding: 0.75rem 1.75rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.btn-primary-hero:hover { background: var(--vd); }
.btn-demo {
  font-weight: 600; font-size: 0.88rem; color: #374151;
  border: 1.5px solid #e5e7eb; padding: 0.75rem 1.75rem;
  border-radius: 8px; background: white;
  display: inline-flex; align-items: center; gap: 7px; transition: all .15s;
}
.btn-demo:hover { border-color: var(--v); color: var(--v); }
.hero-img-wrap {
  position: relative; z-index: 2; max-width: 860px; margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(62,58,171,0.25));
}
.hero-img-wrap img { width: 100%; display: block; }

/* ── TRUST BAR ── */
.trust-bar {
  background: white; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
  padding: 2rem 3rem; display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.65rem; color: #6b7280; white-space: nowrap; }
.trust-item i { font-size: 1rem; color: var(--v); opacity: 0.6; }
.trust-val { font-family: var(--dis); font-size: 1rem; color: #0f0e1a; }
.trust-sub { font-size: 0.58rem; color: #9ca3af; }

/* ── FEATURES ── */
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.feat-card {
  background: white; border: 1px solid #e9eaf0; border-radius: 12px;
  padding: 1.75rem 1.5rem; text-align: center; transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(62,58,171,.1); }
.feat-icon { width: 56px; height: 50px; border-radius: 8px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; }
.feat-icon i { font-size: 1.25rem; }
.feat-icon.vi { background: var(--vp); } .feat-icon.vi i { color: var(--v); }
.feat-icon.bl { background: #eff6ff; } .feat-icon.bl i { color: #3b82f6; }
.feat-icon.gr { background: #f0fdf4; } .feat-icon.gr i { color: #22c55e; }
.feat-icon.or { background: #fff7ed; } .feat-icon.or i { color: #f97316; }
.feat-name { font-family: var(--dis); font-size: 0.82rem; color: #0f0e1a; margin-bottom: 0.5rem; }
.feat-desc { font-size: 0.78rem; color: #6b7280; line-height: 1.65; }

/* ── ABOUT ── */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-title { font-family: var(--dis); font-size: clamp(1.5rem,3vw,2.1rem); color: #0f0e1a; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.about-desc  { font-size: 0.88rem; color: #6b7280; line-height: 1.8; margin-bottom: 0.75rem; }
.about-stats { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.about-stat-val { font-family: var(--dis); font-size: 2rem; line-height: 1; color: var(--v); }
.about-stat-lbl { font-family: var(--mono); font-size: 0.55rem; color: #9ca3af; margin-top: 3px; letter-spacing: 0.08em; }
.about-right { display: flex; flex-direction: column; gap: 1rem; }
.about-srv-cards { display: flex; flex-direction: column; gap: 8px; }
.about-srv { background: white; border: 1px solid #e9eaf0; border-radius: 8px; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 10px; }
.about-srv-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: pk 2s ease-in-out infinite; }
.about-srv-name { font-size: 0.78rem; font-weight: 600; color: #0f0e1a; }
.about-srv-sub  { font-family: var(--mono); font-size: 0.55rem; color: #9ca3af; margin-top: 1px; }

/* ── TERMINAL ── */
.terminal { background: #0d0c18; border: 1px solid rgba(62,58,171,.28); border-radius: 10px; overflow: hidden; box-shadow: 0 0 40px rgba(62,58,171,.15); }
.term-bar { background: rgba(62,58,171,.18); padding: 0.5rem 0.9rem; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid rgba(62,58,171,.12); }
.tdot { width: 8px; height: 8px; border-radius: 50%; }
.tdot:nth-child(1) { background: #ff5f57; }
.tdot:nth-child(2) { background: #febc2e; }
.tdot:nth-child(3) { background: #28c840; }
.tterm { font-family: var(--mono); font-size: 0.56rem; color: rgba(255,255,255,.22); margin-left: auto; }
.term-body { padding: 1.1rem 1.4rem; font-family: var(--mono); font-size: 0.68rem; line-height: 1.9; color: rgba(255,255,255,.42); }
.tp  { color: rgba(62,58,171,.9); }
.tc  { color: rgba(255,255,255,.8); }
.tok { color: #22c55e; }
.ta  { color: #a89ff5; }
.ti  { color: rgba(255,255,255,.22); }
.cursor { display: inline-block; width: 6px; height: 13px; background: rgba(255,255,255,.6); vertical-align: middle; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faq-item { border: 1px solid #e9eaf0; border-radius: 10px; background: white; overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 1.1rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem; font-weight: 600; color: #0f0e1a; text-align: left; gap: 1rem;
}
.faq-q:hover { color: var(--v); }
.faq-icon { font-size: 0.7rem; color: var(--v); flex-shrink: 0; transition: transform .2s; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s;
  font-size: 0.82rem; color: #6b7280; line-height: 1.7; padding: 0 1.25rem;
}
.faq-a code { background: var(--vp); color: var(--v); padding: 1px 5px; border-radius: 3px; }
.faq-item.open .faq-a  { max-height: 200px; padding: 0 1.25rem 1.1rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ── DOWNLOAD ISO ── */
section.section.section-white.section-download .container {
    border: 1.5px solid #3e3aab29;
    padding: 4rem;
    border-radius: 20px;
}
section.section.section-white.section-download h2 strong {
    color: #3e3aab;
    margin: 0 0.66rem;
}
.dl-list { display: flex; flex-direction: column; gap: 0; border: 1px solid #e9eaf0; border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.dl-row {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem 1.5rem; background: white;
  border-bottom: 1px solid #e9eaf0; transition: background .15s;
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: var(--vl); }
.dl-row--featured { background: var(--vp); border-left: 3px solid var(--v); }
.dl-row--featured:hover { background: #e0dcfa; }
.dl-row-info { flex: 1; min-width: 0; }
.dl-row-name { display: block; font-family: var(--mono); font-size: 0.75rem; font-weight: 600; color: #0f0e1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row--featured .dl-row-name { color: var(--v); }
.dl-row-desc { display: block; font-size: 0.72rem; color: #9ca3af; margin-top: 2px; }
.dl-row--featured .dl-row-desc { color: var(--v); opacity: .7; }
.dl-row-meta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.dl-row-size { font-family: var(--mono); font-size: 0.65rem; color: #9ca3af; }
.dl-row-hash { font-family: var(--mono); font-size: 0.62rem; color: var(--v); background: var(--vp); padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(62,58,171,.15); transition: .15s; }
.dl-row-hash:hover { background: var(--v); color: white; }
.dl-row-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1.1rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid rgba(62,58,171,.25); color: var(--v); transition: all .15s; white-space: nowrap;
}
.dl-row-btn:hover { border-color: var(--v); background: var(--vp); }
.dl-row-btn--primary { background: var(--v); color: white; border-color: var(--v); }
.dl-row-btn--primary:hover { background: var(--vd); border-color: var(--vd); }
.dl-footer { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.dl-docs { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.7rem; color: #6b7280; padding: 6px 14px; border: 1px solid #e9eaf0; border-radius: 6px; transition: all .15s; }
.dl-docs:hover { color: var(--v); border-color: var(--v); background: var(--vp); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.price-card {
  background: white; border: 1px solid #e9eaf0; border-radius: 14px;
  padding: 2rem; display: flex; flex-direction: column; position: relative;
  transition: transform .2s, box-shadow .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(62,58,171,.1); }
.price-card--featured { border: 3.33px solid var(--v); }
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--v); color: white; font-size: 0.62rem; font-weight: 700;
  padding: 3px 14px; border-radius: 20px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.price-top { margin-bottom: 1.5rem; }
.price-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem; }
.price-icon i { font-size: 1rem; }
.price-icon.vi    { background: var(--vp); } .price-icon.vi i    { color: var(--v); }
.price-icon.pa { background: rgba(107, 173, 255, 0.15); } .price-icon.pa i { color: #3b82f6; }
.price-icon.or    { background: #fff7ed; } .price-icon.or i    { color: #f97316; }
.price-name { font-family: var(--dis); font-size: 0.9rem; color: #0f0e1a; margin-bottom: 0.5rem; }
.price-val { font-family: var(--dis); font-size: 2rem; color: #0f0e1a; line-height: 1; }
.price-period { font-family: var(--mono); font-size: 0.6rem; color: #9ca3af; margin-top: 2px; }
.price-card--featured .price-period { color: rgba(255,255,255,.5); }
ul.price-features li:nth-child(4) {
    font-weight: bold;
}
.price-features { padding: 0 0 2.5rem; }
.price-features li { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #374151; }
.price-features li.muted { color: #d1d5db; }
.price-features .fa-check { color: #22c55e; font-size: 0.65rem; }
.price-features .fa-minus  { color: #e5e7eb; font-size: 0.65rem; }
.price-btn { border: none; display: block; text-align: center; padding: 0.75rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem; transition: all .15s; }
.price-btn--outline { border: 1.5px solid rgba(62,58,171,.25); color: var(--v); }
.price-btn--outline:hover { border-color: var(--v); background: var(--vp); }
.price-btn--white { background: white; color: var(--v); }
.price-btn--white:hover { background: var(--vp); }

/* ── SUPPORT ── */
.support-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.support-eye   { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--v); margin-bottom: 0.65rem; }
.support-title { font-family: var(--dis); font-size: clamp(1.4rem,3vw,2rem); color: #0f0e1a; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.9rem; }
.support-desc  { font-size: 0.88rem; color: #6b7280; line-height: 1.8; margin-bottom: 1.25rem; }
.support-tags  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.75rem; }
.stag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; color: var(--v); background: var(--vp); border: 1px solid rgba(62,58,171,.15); padding: 3px 9px; border-radius: 4px; }

/* ── CHAT BANNER (initChatBanner) ── */
.chat { background: #0f0e1a; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(62,58,171,.1); }
.chat-bar { background: linear-gradient(45deg, rgb(64 30 169) 50%, rgb(69 45 203) 100%); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(62,58,171,.12); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{ opacity:1; box-shadow:0 0 8px #22c55e; } 50%{ opacity:0.6; box-shadow:0 0 16px #22c55e; } }
.chat-bar-title { font-family: var(--mono); font-size: 0.65rem; font-weight: 600; color: white; }
.chat-bar-sub   { font-family: var(--mono); font-size: 0.5rem; color: rgba(255,255,255,.33); margin-left: auto; }
.chat-body { padding: 1rem; min-height: 33rem; display: flex; flex-direction: column; gap: 8px; }
.chat-footer { border-top: 1px solid rgba(62,58,171,.1); padding: 0.6rem 0.85rem; }
.chat-input { display: flex; align-items: center; gap: 6px; background: #1a1730; border: 1px solid rgba(62,58,171,.18); border-radius: 20px; padding: 0.38rem 0.5rem 0.38rem 0.85rem; }
.chat-ph  { flex: 1; font-family: var(--mono); font-size: 0.6rem; color: rgba(255,255,255,.30); }
.chat-btn { width: 30px; height: 30px; background: linear-gradient(45deg, rgb(64 30 169) 50%, rgb(69 45 203) 100%); border: none; border-radius: 50%; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; }

/* bubbles banner */
#chat-banner { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.bubble { max-width: 85%; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.bubble.visible { opacity: 1; transform: translateY(0); margin-bottom: 3rem; }
.bubble.user { align-self: flex-end; }
.bubble.bot  { align-self: flex-start; }
.bubble-text { font-size: 1rem; line-height: 1.6; padding: 1rem 1.66rem; border-radius: 12px; }
.user .bubble-text { color: white; border-bottom-right-radius: 3px; background: linear-gradient(45deg, rgba(100,94,255,1) 50%, rgba(71,68,227,1) 100%); }
.bot  .bubble-text { background: linear-gradient(45deg, #6924ff9e 50%, rgba(88,0,255,0.72) 100%); color: white; border-bottom-left-radius: 3px; }
.bubble-text code { font-family: monospace; font-size: 1rem; background: rgba(62,58,171,0.3); padding: 1px 5px; border-radius: 3px; color: #a89ff5; }
.bubble-meta { font-size: 10px; color: rgba(255,255,255,0.25); display: flex; gap: 6px; margin-top: 0.5rem; }
.user .bubble-meta { justify-content: flex-end; }
.typing { display: none; align-self: flex-start; align-items: center; gap: 5px; padding: 10px 14px; background: #2a2545; border-radius: 12px; border-bottom-left-radius: 3px; }
.typing.visible { display: flex; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--v); animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-5px)} }
@keyframes pk { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── CHAT OVERLAY MODAL (initChat) ── */
.chat-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; justify-content: center; align-items: center; z-index: 9999;
}
.chat-wrapper {
  width: 100%; max-width: 900px; height: 90vh;
  background: #fff; border-radius: 12px;
  display: flex; flex-direction: column; overflow: hidden;
}
/* bubbles overlay — contexte .thread */
.thread .bubble {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  max-width: 50%; margin-top: 2rem; padding: 1rem 1rem 0.75rem; width: 100%;
  opacity: 1; transform: none;
}
.thread .bubble-text code { font-weight: bold; background: #3e3aab17; padding: 0.15rem 0.33rem; }
.thread .bubble .bubble-text { opacity: 0.95; }
.thread .bubble.question .bubble-text { opacity: 0.85; }
.thread .bubble.question {
  background: #f8f8f8; border-radius: 8px 0 8px 8px; max-width: 60%;
}
.thread .bubble.question .bubble-footer .bubble-pseudo { opacity: 0.4; }
.thread .bubble.question .bubble-footer i.fa-comment   { opacity: 0.1; }
.thread .bubble.question .bubble-footer .timestamp     { opacity: 0.2; }
.thread .bubble.response {
  background: linear-gradient(45deg, rgba(62,58,171,.1) 50%, rgba(37,45,196,.08) 100%);
  text-align: left; white-space: pre-line; align-self: flex-start;
  border-radius: 0 8px 8px 8px; color: #220c4cd9; max-width: 80%;
}
.bubble-footer {
  display: flex; align-self: flex-end; font-size: 0.55rem; font-weight: 900;
  color: inherit; margin-top: 0.5rem; font-family: monospace;
  flex-direction: column; align-items: flex-end;
}
.bubble-footer i.fa-comment { position: relative; top: 0.05rem; opacity: 0.5; }
.bubble-pseudo { opacity: 0.8; }
.timestamp     { opacity: 0.6; }
.chat-overlay #support-input {
  width: 100%; display: flex; justify-content: space-around;
  align-items: center; padding: 1rem; border-radius: 20px; border: 1px solid #3e3aab59;
}
.chat-overlay button#support-btn { background: none; border: none; font-size: 2rem; color: var(--v); }
.chat-overlay button#support-btn:hover { color: var(--vd); }
input#support-input:focus-visible { border: 2px solid #c6c6c6; outline: none; }

/* UNYPORT BLOCK */
section.section.section-light.section-unyport {
  display: block;
}
.unyport-block .s-eye,
.unyport-wrap .s-eye,
.about-inner .s-eye,
.support-inner .s-eye,
.hw-content .s-eye  {
    justify-content: flex-start;
}
.unyport-wrap {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 2rem;
  align-items: start;
}
.unyport-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.33rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e9eaf0;
    border-radius: 14px;
    padding: 4rem 2rem;
    width: 100%;
    height: 100%;
    grid-auto-flow: column;
    max-width: 1200px;
    margin: auto;
}
.unyport-block__right {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.unyport-block .btn-primary,
.unyport-block .btn-outline {
  text-decoration: none;
}
.unyport-block .unyport-block__left .s-sub {
    margin: 2rem 0;
}

.unyport-landing .unyport-block {
    display: grid;
    grid-auto-flow: row !important;
}

a.chat-cta {
  display: flex; justify-content: flex-start; gap: 0.5rem;
  border: 1px solid; padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 4px; background: #3a5dab; color: #eef2ff;
  align-items: center; margin: auto;
}
.section-unyport .container {
    max-width: none;
    width: 100%;
    padding: 0;
    height: 100%;
}
.unyport-block__screen {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

/* ── #DOWNTHEBASTION ── */
.section-bastion {
  padding: 10rem 5rem; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(circle, rgba(29,15,56,1) 0%, rgba(6,5,20,1) 29%);
  }
.bastion-gif {
    width: 50rem;
    position: relative;
    margin: 0;
    border: 1px solid #ffffff12;
    padding: 1.33rem 2rem;
    box-shadow: 0px 0px 40px 18px rgb(53 53 53 / 25%);
    border-radius: 15px;
    top: 0.25rem;
}
.bastion-gif img { max-width: none;  object-fit: contain; }
.bastion-layout {
  display: flex; flex-direction: row-reverse; justify-content: space-between;
  max-width: 1200px; margin: auto;  width: 100%; gap: 3.66rem; align-items: flex-end;
}
.bastion-glow {
  position: absolute; width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62,58,171,.25) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.bastion-inner {
  position: relative; z-index: 1; max-width: 300px; margin: 0; min-width: 33%;
  display: flex; flex-direction: column; align-items: stretch;
}
.bastion-tag {
  display: inline-block; font-family: var(--dis); font-size: 2.33rem; color: #623ce6;
  border-bottom: 7px solid; letter-spacing: -0.05em; margin-bottom: 1rem;
  line-height: 3.33rem; text-align: left; margin-left: 0; align-self: flex-start;
}
.bastion-title {
  font-family: var(--dis); font-size: clamp(0.75rem,2vw,1.33rem); color: #ffffffcc;
  letter-spacing: -0.02em; line-height: 1.1; text-align: left; align-self: flex-start;
}
.bastion-desc { font-size: 0.88rem; color: rgba(255,255,255,.38); line-height: 1.8; margin-bottom: 2rem; text-align: left; }
.bastion-stats { display: flex; gap: 3rem; justify-content: space-between; margin-bottom: 2rem; flex-wrap: wrap; width: 100%; }
.bastion-stat-lbl { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 4px; }
.bastion-stat-val { font-family: var(--dis); font-size: 3.33rem; line-height: 1; }
#attempts { color: #623ce6; }
#success  { color: #22c55e; }
#sessions { color: #00b7ff; }
.bastion-servers { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin-bottom: 2rem; width: 100%; }
.bastion-srv {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px; padding: 0.45rem 0.66rem; width: 100%;
  font-family: var(--mono); font-size: 0.6rem; color: rgba(255,255,255,.35);
}
.bastion-srv-dot { width: 5px; height: 5px; border-radius: 50%; background: #22c55e; animation: pk 2s ease-in-out infinite; }

/* ── HARDWARE ── */
.hw-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.hw-img { background: var(--vl); display: flex; align-items: center; justify-content: center; }
.hw-img img { max-width: 550px; filter: drop-shadow(0 8px 24px rgba(62,58,171,.15)); }
.hw-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 1.5rem; }
.hw-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--vl);
    border: 1px solid #e9eaf0;
    border-left: 5px solid #3e3aab2e;
    border-radius: 0 8px 8px 0;
    padding: 1rem 1.1rem;
}
.hw-card-ico  { color: var(--v); font-size: 0.85rem; margin-top: 2px; opacity: .7; flex-shrink: 0; }
.hw-card-name { font-size: 0.82rem; font-weight: 600; color: #0f0e1a; }
.hw-card-desc { font-family: var(--mono); font-size: 0.66rem; color: #6b7280; margin-top: 2px; line-height: 1.5; }

/* ── CTA FINAL ── */
.cta-final { background: var(--v); padding: 5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.cta-final::before, .cta-final::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.07); }
.cta-final::before { width: 400px; height: 400px; top: -150px; right: -80px; }
.cta-final::after  { width: 250px; height: 250px; bottom: -80px; left: -50px; }
.cta-inner  { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-title  { font-family: var(--dis); font-size: clamp(1.6rem,3.5vw,2.4rem); color: white; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1.66rem; flex-direction: column; }
.cta-title em { font-style: normal; color: rgba(255,255,255,.3); }
.cta-sub    { font-size: 0.88rem; color: rgba(255,255,255,.42); line-height: 1.75; margin-bottom: 2rem; }
.cta-btns   { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── COMPLÉMENTS ── */
.about-cta    { display: flex; gap: 10px; margin-top: 2rem; flex-wrap: wrap; }
.hw-cta       { margin-top: 2rem; }
.pricing-note { text-align: center; font-size: .78rem; color: #9ca3af; margin-top: 2rem; }
.pricing-note a { color: var(--v); font-weight: 600; }

/* ── ABOUT — stack cards 2 colonnes ── */
.stack-cards-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stack-card {
  background: white; border: 1px solid #e9eaf0; border-radius: 10px;
  padding: 1.25rem; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.stack-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,58,171,.08); }
.stack-bar { position: absolute; top: 0; left: 0; right: 0; height: 10px; }
.sc-alpine .stack-bar    { background: var(--v); }
.sc-xen .stack-bar       { background: #00b7ff; }
.sc-ddm .stack-bar       { background: #71cf00; }
.sc-migration .stack-bar { background: #2b69b3; }
.stack-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 0.65rem; flex-wrap: wrap; }
.stack-name { font-family: var(--dis); font-size: 0.82rem; color: #0f0e1a; }
.stack-badge { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 3px; white-space: nowrap; }
.sc-alpine-badge    { background: var(--vp); color: var(--v); }
.sc-xen-badge       { background: rgba(0,183,255,.08); color: #00b7ff; }
.sc-ddm-badge       { background: rgba(113,207,0,.08); color: #59a800; }
.sc-migration-badge { background: rgba(0, 26, 255, 0.1); color: #0956b4; }
.stack-body { font-size: 0.78rem; color: #6b7280; line-height: 1.65; }
.stack-body code { background: var(--vp); color: var(--v); padding: 1px 4px; border-radius: 3px; font-size: .75em; }
.stack-body strong { font-weight: 600; color: #374151; }

/* ── RESPONSIVE ── 
@media (min-width: 2560px) { .bastion-gif { left: 20%; } }
@media (min-width: 1700px) { .bastion-gif { left: 5.5%; } } */
@media (max-width: 1400px) {
  .bastion-layout { flex-direction: column-reverse;  align-items: center;}
  .bastion-gif { position: relative; margin: 0 auto 5rem; width: auto; max-width: 100%;}
  .bastion-inner { max-width: 100%; position: relative; z-index: 1; display: flex; flex-direction: column; margin: 0; }
  .section-bastion { padding: 5rem; }
}
@media (max-width: 1200px) {.hw-inner { grid-template-columns: 1fr; gap: 1rem;} }
@media (max-width: 1040px) {
  .feat-grid    { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: repeat(3,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .icon-codeberg {display: none;}
}
@media (max-width: 900px) {
  .hw-img img { max-width: 100%; }
  .unyport-wrap { grid-template-columns: 1fr; }
  .section-unyport .container { padding: 0; }
  .about-inner, .hw-inner, .support-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .unyport-block { grid-template-columns: 1fr; }
  .unyport-block__right { justify-content: flex-start; }
  .faq-grid, .pricing-grid { grid-template-columns: 1fr; }
  .icon-codeberg {display: none;}
}
@media (max-width: 820px) {
  .container { padding: 1rem !important; }
   nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hero, .section, .cta-final { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-top: 4.5rem; }
  footer { padding: 2.5rem 1.25rem 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .trust-bar { gap: 2rem; padding: 1.5rem; }
  .thread { padding: 0 1rem; }
  .dl-row { flex-wrap: wrap; gap: 0.75rem; }
  .dl-row-meta { order: 3; }
  .dl-row-btn { order: 4; }
}
@media (max-width: 640px) {
  .stack-cards-2col { grid-template-columns: 1fr; }
  .bastion-inner { zoom: 66%; }
}
