/* ChatGuard Pro promo site — static, responsive */

:root{
  /* background (single long gradient like the provided example) */
  --bg0:#47151e;
  --bg1:#101b45;
  --bg2:#070d16;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.09);
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.55);
  --red:#ff3b30;
  --red2:#b30f0a;
  --yellow:#ffd66b;
  --shadow:0 20px 60px rgba(0,0,0,.45);
  --radius:20px;
  --radius2:28px;
  --max:1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
html{
  background: #47151e;
  background: linear-gradient(180deg, rgba(71, 21, 30, 1) 0%, rgba(16, 27, 69, 1) 59%, rgba(7, 13, 22, 1) 100%);
  background-attachment:fixed;
  background-repeat:no-repeat;
  background-size:cover;
  overflow-x:hidden;
}
body{
  min-height:100vh;
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: transparent;
  overflow-x:hidden;
}

/* Single sticky background for the whole site */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background: #47151e;
  background: linear-gradient(180deg, rgba(71, 21, 30, 1) 0%, rgba(16, 27, 69, 1) 59%, rgba(7, 13, 22, 1) 100%);
  will-change:transform;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}

main, section, footer{background:transparent}

main{overflow-x:hidden}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background:rgba(5,6,10,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
}
.brand img{
  width:44px;
  height:44px;
  border-radius:14px;
  box-shadow:0 12px 30px rgba(255,59,48,.18);
}
.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand .title strong{font-size:14px; letter-spacing:.4px}
.brand .title span{font-size:12px;color:var(--muted2)}

.nav{
  display:flex;
  align-items:center;
  gap:8px;
}
.nav a{
  padding:10px 12px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
  transition:all .18s ease;
}
.nav a:hover{color:var(--text); border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.03)}
.nav a.active{color:var(--text); background:rgba(255,59,48,.12); border-color:rgba(255,59,48,.25)}

.header-actions{display:flex; align-items:center; gap:10px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
}
.btn:hover{transform:translateY(-1px); background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18)}
.btn.primary{
  background:linear-gradient(135deg, rgba(255,59,48,.95), rgba(179,15,10,.95));
  border-color:rgba(255,59,48,.35);
  box-shadow:0 18px 45px rgba(255,59,48,.22);
}
.btn.primary:hover{background:linear-gradient(135deg, rgba(255,59,48,1), rgba(179,15,10,1))}
.btn .dot{
  width:10px;height:10px;border-radius:99px;background:rgba(0, 216, 36, 0.95);
  box-shadow:0 0 0 4px rgba(255,214,107,.15), 0 0 30px rgba(255,214,107,.35);
}

/* Mobile nav */
.burger{
  display:none;
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.burger:focus{outline:2px solid rgba(255,214,107,.35); outline-offset:2px}

.mobile-drawer{
  display:none;
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.drawer-panel{
  position:absolute;
  top:14px; right:14px;
  width:min(360px, calc(100% - 28px));
  background:rgba(12,14,22,.92);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:14px;
}
.drawer-panel .row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.drawer-panel nav{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.drawer-panel nav a{padding:12px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.03)}
.drawer-panel nav a:hover{background:rgba(255,255,255,.07)}

/* Hero */
.hero{
  padding:52px 0 26px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:center;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
}
.kicker .spark{
  width:10px;height:10px;border-radius:99px;background:rgba(74,222,128,1);
  box-shadow:0 0 0 4px rgba(74,222,128,.14), 0 0 26px rgba(74,222,128,.26);
}

h1{
  margin:14px 0 10px;
  font-size:clamp(30px, 4.5vw, 54px);
  line-height:1.04;
  letter-spacing:-0.02em;
}
.lead{color:var(--muted); font-size:clamp(15px, 1.6vw, 18px); line-height:1.55; margin:0 0 18px}
.hero-actions{display:flex;flex-wrap:wrap; gap:12px; margin-top:18px}

/* Headline accent like in your screenshot */
.accent{
  background:linear-gradient(90deg, rgb(255, 60, 60), rgb(55, 100, 255));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* Typed line (fixed container, no layout jumping / no horizontal scroll) */
.typed-pill{
  margin-top:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.12);
  padding:14px 16px;
  max-width:860px;
  width:100%;
  display:flex;
  align-items:center;
  gap:8px;
  overflow:hidden;
}
.typed-pill .prefix{color:var(--muted); white-space:nowrap}
.typed-pill .typed{
  /* Do NOT stretch to full width — otherwise the caret ends up at the far right edge.
     Let text define its width and shrink with ellipsis when needed. */
  flex:0 1 auto;
  min-width:0;
  display:inline-block;
  color:var(--text);
  background:none;
  -webkit-text-fill-color:unset;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:800;
}
.typed-pill .typed-caret{margin-left:4px; flex:0 0 auto}

@media (max-width: 520px){
  .typed-pill{flex-wrap:wrap; gap:6px}
  .typed-pill .typed{white-space:normal}
}

.typed{
  color:#fff;
  background:linear-gradient(90deg, rgba(255,214,107,1), rgba(255,59,48,1));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.typed-caret{
  display:inline-block;
  width:0;
  height:1em;
  border-right:2px solid rgba(255,255,255,.75);
  margin-left:0;
  transform:translateY(2px);
  animation:caret 1s infinite;
}
@keyframes caret{0%,49%{opacity:1}50%,100%{opacity:0}}

/* Hero card — ONLY your image (no shield/asteroid animation) */
.hero-card{
  position:relative;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  box-shadow:var(--shadow);
  overflow:hidden;
  /* min-height:350px; */
}
.hero-card .hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Feature cards */
.section{padding:34px 0}
.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
}
.section-title h2{margin:0;font-size:clamp(22px, 3vw, 30px)}
.section-title p{margin:0;color:var(--muted);max-width:520px;line-height:1.55}

@media (max-width: 860px){
  .section-title{flex-direction:column; align-items:flex-start}
  .section-title p{max-width:none}
}

.grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column:span 4;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  padding:16px;
  overflow-wrap:anywhere;
}
.card:hover{border-color:rgba(255,59,48,.22); background:rgba(255,255,255,.055)}
.card .icon{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.14);
  /* background:rgba(255,59,48,.12); */
  box-shadow:0 16px 40px rgba(255,59,48,.10);
}
.card h3{margin:12px 0 6px;font-size:16px}
.card p{margin:0;color:var(--muted);line-height:1.55;font-size:14px}
.card a{overflow-wrap:anywhere; word-break:break-word}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.badge strong{color:var(--text)}

/* Page hero */
.page-hero{padding:34px 0 10px}
.page-hero h1{margin:0 0 10px}
.page-hero p{margin:0;color:var(--muted);line-height:1.6;max-width:860px}

.prose{
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  padding:20px;
  line-height:1.65;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.prose h2,.prose h3{color:var(--text)}
.prose a{color:#fff;text-decoration:underline; text-decoration-color:rgba(255,214,107,.45)}
.prose code{background:rgba(255,255,255,.06);padding:2px 6px;border-radius:8px;color:#fff}
.prose pre{white-space:pre-wrap; font-family:inherit; color:var(--muted); margin:0}
.prose hr{border:0;border-top:1px solid rgba(255,255,255,.10);margin:18px 0}

/* Terms page — highlight each clause (like the screenshot) */
.terms{padding:22px}
.terms .terms-h1{
  margin:0 0 14px;
  font-size:clamp(26px, 3.6vw, 40px);
  line-height:1.08;
  letter-spacing:-.01em;
  color:var(--text);
}
.term-section{margin-top:18px}
.term-section h2{
  margin:16px 0 10px;
  font-size:18px;
  color:var(--text);
}
.term-item, .term-subitem{
  display:flex;
  gap:12px;
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.12);
  margin:10px 0;
}
.term-num{
  flex:0 0 auto;
  min-width:74px;
  text-align:center;
  font-weight:900;
  letter-spacing:.2px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(255,59,48,.12);
  border:1px solid rgba(255,59,48,.25);
  color:rgba(255,255,255,.95);
  max-height: 45px;
}
.term-num.sm{
  min-width:92px;
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  font-weight:800;
}
.term-text{color:var(--muted); line-height:1.6}
.term-list{margin:10px 0 0; padding-left:20px; color:var(--muted)}
.term-list li{margin:8px 0; line-height:1.6}
.term-list strong{color:var(--text)}

@media (max-width: 520px){
  .term-item, .term-subitem{flex-direction:column}
  .term-num, .term-num.sm{min-width:unset; width:fit-content}
}

/* Contacts page (layout like your screenshot) */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:14px;
}
.contact-card{
  grid-column:span 6;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  padding:22px;
}
.contact-top{display:flex;align-items:flex-start;gap:14px}
.contact-icon{
  width:58px;
  height:58px;
  aspect-ratio:1/1;
  flex:0 0 58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(90,210,255,.10);
}
.contact-title{margin:2px 0 6px;font-size:22px;letter-spacing:-.01em}
.contact-desc{margin:0;color:var(--muted);line-height:1.55}

.copy-row{
  margin-top:16px;
  display:grid;
  grid-template-columns: 84px 1fr auto;
  align-items:center;
  gap:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.16);
  padding:12px 12px;
}
.copy-label{
  color:var(--muted2);
  grid-column:1;
}
.copy-value{
  grid-column:2;
  font-weight:800;
  letter-spacing:.2px;
  white-space:normal;
  overflow:visible;
  overflow-wrap:anywhere;
}
.copy-row .btn.sm{
  grid-column:3;
  justify-self:end;
}
.btn.sm{padding:10px 12px;border-radius:14px;font-size:13px}

@media (max-width: 520px){
  .copy-row{
    grid-template-columns: 1fr auto;
    grid-template-rows:auto auto;
    align-items:start;
  }
  .copy-label{grid-column:1 / -1; opacity:.9}
  .copy-value{grid-column:1; grid-row:2; font-size:13px}
  .copy-row .btn.sm{grid-column:2; grid-row:2; align-self:start}
}


.contact-actions{margin-top:14px;display:flex;flex-wrap:wrap;gap:12px}

/* Extra blocks on Contacts page (like the screenshot) */
.contact-mini{
  grid-column:span 4;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  padding:18px;
  display:flex;
  flex-direction:column;
  min-height:170px;
}
.contact-mini .mini-icon{
  width:44px;
  height:44px;
  aspect-ratio:1/1;
  flex:0 0 44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(90,210,255,.10);
  box-shadow:0 16px 40px rgba(90,210,255,.10);
}
.contact-mini h3{margin:14px 0 8px;font-size:18px;letter-spacing:-.01em}
.contact-mini p{margin:0;color:var(--muted);line-height:1.55;font-size:14px}
.contact-mini .mini-actions{margin-top:auto;padding-top:12px}

@media (max-width: 980px){
  .contact-card{grid-column:span 12}
  .contact-mini{grid-column:span 12}
}

.footer{
  padding:28px 0 44px;
  color:var(--muted2);
  border-top:1px solid rgba(255,255,255,.08);
  margin-top:18px;
}
.footer .cols{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}
.footer nav{display:flex;flex-wrap:wrap;gap:10px}
.footer nav a{padding:8px 10px;border-radius:12px;border:1px solid transparent}
.footer nav a:hover{border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.03)}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  /* .hero-card{min-height:350px} */
  .card{grid-column:span 6}
  .section-title{flex-direction:column; align-items:flex-start}
  .section-title p{max-width:none}
}
@media (max-width: 720px){
  .nav, .header-actions .btn.primary{display:none}
  .burger{display:inline-flex;align-items:center;justify-content:center}
  .card{grid-column:span 12}
  .grid{gap:12px}
  .card{padding:14px}
  .hero{padding:40px 0 18px}
  /* .hero-card{min-height:350px} */
  .brand{min-width:unset}
}


@media (max-width: 650px){
    .typed-pill {
        min-height: 130px;
    }
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{animation:none !important; transition:none !important; scroll-behavior:auto !important}
}
