/* Persist Security - landing page + CTI preview */
:root{
  --bg: #070a12;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --stroke: rgba(255,255,255,0.12);
  --accent: #46d7ff;
  --accent2: #ff6a3d;
  --shadow: 0 20px 60px rgba(0,0,0,0.55);
  --radius: 18px;
  --radius2: 24px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(70,215,255,0.10), transparent 55%),
              radial-gradient(900px 500px at 85% 30%, rgba(255,106,61,0.10), transparent 55%),
              var(--bg);
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.55)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 120px);
  opacity:0.55;
  mix-blend-mode: screen;
}

a{ color: inherit; text-decoration:none; }
a:hover{ opacity:0.92; }

/* ---------- Topbar ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 22px;
  border-bottom:1px solid var(--stroke);
  background: rgba(7,10,18,0.72);
  backdrop-filter: blur(12px);
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 260px;
}

.logo{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:0.5px;
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(135deg, rgba(70,215,255,0.65), rgba(255,106,61,0.55));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.brand-text .name{ font-weight:800; font-size:14px; }
.brand-text .tag{ font-size:12px; color: var(--muted); margin-top:1px; }

.nav{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:14px;
  color: var(--muted);
}
.nav a{ padding:10px 12px; border-radius: 12px; transition: background .15s, color .15s; }
.nav a:hover{ background: rgba(255,255,255,0.05); color: var(--text); opacity:1; }

.nav .cta{
  color: var(--text);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:11;
}
.hamburger span{
  display:block;
  width:24px;
  height:2px;
  background: var(--text);
  border-radius:2px;
  transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity:0; }
.hamburger.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout ---------- */
.wrap{ max-width: var(--max); margin: 0 auto; padding: 26px 22px 60px; }

/* ---------- Hero ---------- */
.hero{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items:center;
  padding: 26px 0 10px;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.kicker:before{
  content:"";
  width:10px; height:10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(70,215,255,0.12);
}

h1{
  font-size: clamp(34px, 4.5vw, 56px);
  line-height:1.05;
  margin: 0 0 14px;
  letter-spacing:-0.02em;
}

.sub{
  color: var(--muted);
  font-size: 16px;
  line-height:1.65;
  margin: 0 0 18px;
  max-width: 55ch;
}

.actions{ display:flex; gap:12px; flex-wrap:wrap; margin: 12px 0 18px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  box-shadow: 0 12px 35px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.06); opacity:1; }
.btn.primary{
  border: 1px solid rgba(70,215,255,0.35);
  background: linear-gradient(135deg, rgba(70,215,255,0.22), rgba(255,106,61,0.14));
}

.stats{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 14px;
}
.stat{
  min-width: 140px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--stroke);
}
.stat-num{ font-weight:900; font-size:16px; }
.stat-label{ font-size:12px; color: var(--muted); margin-top: 4px; }

.hero-art{ display:flex; justify-content:center; }
.card{
  width:min(430px, 100%);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.card img{ display:block; width:100%; height:auto; }
.card-caption{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding: 14px 14px 16px;
  background: rgba(7,10,18,0.55);
  border-top: 1px solid var(--stroke);
}
.pill{
  font-size:12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(70,215,255,0.25);
  background: rgba(70,215,255,0.10);
}
.pill.ghost{
  border-color: rgba(255,106,61,0.25);
  background: rgba(255,106,61,0.10);
}

/* ---------- Sections ---------- */
.section{
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius2);
  background: var(--panel);
  border: 1px solid var(--stroke);
}

.section h2{
  margin: 0 0 10px;
  letter-spacing:-0.01em;
}
.section p{
  margin: 0;
  color: var(--muted);
  line-height:1.7;
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
}
.tile{
  padding: 18px 18px;
  border-radius: var(--radius2);
  background: var(--panel);
  border: 1px solid var(--stroke);
  transition: transform .15s, border-color .15s;
}
.tile:hover{ transform: translateY(-2px); border-color: rgba(70,215,255,0.25); }
.tile h3{ margin: 0 0 8px; font-size: 16px; }
.tile p{ margin: 0; color: var(--muted); line-height:1.6; font-size: 14px; }

/* ---------- Live Pill / Status ---------- */
.live-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
}
.live-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#46ff7c;
  box-shadow: 0 0 6px rgba(70,255,124,0.6);
  animation: livePulse 1.5s ease-in-out infinite;
}
.live-dot.off{
  background:#ff4646;
  box-shadow: 0 0 6px rgba(255,70,70,0.6);
  animation:none;
}
@keyframes livePulse{
  0%,100%{ opacity:1; box-shadow: 0 0 6px rgba(70,255,124,0.6); }
  50%{ opacity:0.5; box-shadow: 0 0 14px rgba(70,255,124,0.9), 0 0 30px rgba(70,255,124,0.3); }
}
.cti-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  color: var(--muted);
  padding:5px 10px;
  border-radius:999px;
  background: rgba(0,0,0,0.3);
  border:1px solid var(--stroke);
}
.cti-header-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- 3D Globe Container ---------- */
.cti-globe-container{
  width:100%;
  height:480px;
  border-radius: var(--radius);
  overflow:hidden;
  background: radial-gradient(ellipse at center, rgba(0,20,40,0.9) 0%, rgba(0,0,0,0.95) 100%);
  border:1px solid var(--stroke);
  margin-bottom:16px;
  position:relative;
}

/* ---------- CTI Dashboard ---------- */
.cti-section{
  background: linear-gradient(135deg, rgba(70,215,255,0.06), rgba(255,106,61,0.04));
  border: 1px solid rgba(70,215,255,0.18);
}
.cti-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.cti-subtitle{
  font-size:14px;
  color: var(--accent);
  margin:2px 0 0;
  font-weight:600;
}
.cti-desc{
  margin:0 0 18px !important;
  max-width:72ch;
}

.cti-dashboard{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}

.cti-card{
  padding:16px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.35);
  border:1px solid var(--stroke);
}
.cti-card-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color: var(--muted);
  margin-bottom:10px;
}
.cti-big-number{
  font-size:32px;
  font-weight:900;
  line-height:1;
  margin-bottom:6px;
}
.cti-change{
  font-size:12px;
  color: var(--muted);
}
.cti-change.up{ color: #ff6a6a; }
.cti-change.down{ color: #46d7ff; }
.cti-change.neutral{ color: var(--muted); }

/* Attack type bars */
.cti-attack-types{ display:flex; flex-direction:column; gap:8px; }
.atype-row{ display:flex; align-items:center; gap:8px; }
.atype-label{ min-width:90px; font-size:12px; display:flex; align-items:center; gap:6px; }
.atype-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.atype-bar-wrap{ flex:1; height:6px; border-radius:99px; background:rgba(255,255,255,0.06); overflow:hidden; }
.atype-bar{ height:100%; border-radius:99px; transition: width .4s ease; }
.atype-count{ font-size:12px; color:var(--muted); min-width:45px; text-align:right; }
.cti-types-card{ grid-column: 1 / -1; }

/* Percent bar in tables */
.pct-bar-wrap{ display:inline-block; width:60px; height:5px; border-radius:99px; background:rgba(255,255,255,0.08); overflow:hidden; vertical-align:middle; margin-right:6px; }
.pct-bar{ height:100%; border-radius:99px; background: var(--accent); }

/* Tables */
.cti-feed{ grid-column: span 2; }
.cti-table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.cti-table th{
  text-align:left;
  padding:8px 10px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color: var(--muted);
  border-bottom:1px solid var(--stroke);
}
.cti-table td{
  padding:9px 10px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  color: var(--text);
}
.cti-table tbody tr:hover{ background: rgba(255,255,255,0.03); }

/* Live Feed */
.cti-live-feed-card{ grid-column: 1 / -1; }
.cti-live-feed{
  max-height:280px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.cti-live-feed::-webkit-scrollbar{ width:4px; }
.cti-live-feed::-webkit-scrollbar-track{ background:transparent; }
.cti-live-feed::-webkit-scrollbar-thumb{ background:rgba(255,255,255,0.15); border-radius:2px; }

.feed-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
  background: rgba(255,255,255,0.02);
  animation: feedIn 0.3s ease;
}
.feed-item:hover{ background: rgba(255,255,255,0.05); }
@keyframes feedIn{
  from{ opacity:0; transform:translateY(-6px); }
  to{ opacity:1; transform:translateY(0); }
}
.feed-dot{ width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.feed-type{ font-weight:700; min-width:80px; }
.feed-route{ color:var(--muted); }
.feed-ip{ font-family:'Courier New',Courier,monospace; font-size:11px; color:rgba(255,255,255,0.5); }
.feed-sev{
  margin-left:auto;
  padding:2px 7px;
  border-radius:6px;
  font-size:10px;
  font-weight:700;
  flex-shrink:0;
}
.feed-sev.sev-high{ background:rgba(255,70,70,0.18); color:#ff4646; }
.feed-sev.sev-med{ background:rgba(255,200,70,0.18); color:#ffc846; }
.feed-sev.sev-low{ background:rgba(70,215,255,0.18); color:#46d7ff; }

/* ---------- Contact ---------- */
.contact{
  background: transparent;
  border: none;
  padding: 0;
}
.contact-card{
  padding: 22px;
  border-radius: var(--radius2);
  background: linear-gradient(135deg, rgba(70,215,255,0.10), rgba(255,106,61,0.08));
  border: 1px solid var(--stroke);
}
.contact-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px; }
.small{ font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Contact form */
.contact-form{margin-top:14px; display:block;}
.form-row{display:flex; flex-direction:column; gap:8px; margin:12px 0;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:700px){ .form-grid{grid-template-columns:1fr;} }

label{font-weight:600; color:var(--text); font-size:0.95rem;}
.req{color:var(--accent); margin-left:4px;}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-family: var(--font);
  font-size:14px;
  outline:none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus{ border-color: rgba(70,215,255,0.6); box-shadow: 0 0 0 3px rgba(70,215,255,0.12); }
input.input-error, textarea.input-error{ border-color: rgba(255,100,100,0.7); box-shadow: 0 0 0 3px rgba(255,100,100,0.12); }
textarea{ resize:vertical; min-height:120px; }

.form-actions{display:flex; gap:12px; align-items:center; margin-top:14px; flex-wrap:wrap;}
.hp{position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;}

.error-list{margin:12px 0 0 18px; color:rgba(255,120,120,0.95); font-size:14px; line-height:1.7;}

/* ---------- Thank You ---------- */
.thankyou-section{
  text-align:center;
  padding:48px 22px;
}
.thankyou-icon{
  width:64px;
  height:64px;
  margin:0 auto 18px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:28px;
  font-weight:900;
  color:#46d7ff;
  background: rgba(70,215,255,0.12);
  border:2px solid rgba(70,215,255,0.3);
}

/* ---------- Footer ---------- */
.footer{
  max-width: var(--max);
  margin: 28px auto 0;
  padding: 20px 22px 50px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .brand{ min-width: unset; }
  .grid{ grid-template-columns: 1fr 1fr; }
  .cti-dashboard{ grid-template-columns: 1fr 1fr; }
  .cti-feed{ grid-column: 1 / -1; }
  .cti-globe-container{ height:380px; }
}
@media (max-width: 560px){
  .nav{
    display:flex;
    flex-direction:column;
    position:fixed;
    top:0;
    right:-100%;
    width:260px;
    height:100vh;
    background: rgba(7,10,18,0.97);
    backdrop-filter:blur(16px);
    padding:80px 22px 22px;
    gap:4px;
    border-left:1px solid var(--stroke);
    transition: right .25s ease;
    z-index:10;
  }
  .nav.open{ right:0; }
  .nav a{ padding:14px 16px; border-radius:12px; font-size:16px; color:var(--text); }
  .nav a:hover{ background: rgba(255,255,255,0.06); }
  .hamburger{ display:flex; }
  .grid{ grid-template-columns: 1fr; }
  .cti-dashboard{ grid-template-columns: 1fr; }
  .cti-feed{ grid-column: auto; }
  .cti-types-card{ grid-column: auto; }
  .cti-live-feed-card{ grid-column: auto; }
  .cti-globe-container{ height:300px; }
  .cti-table{ font-size:12px; }
  .footer{ flex-direction:column; text-align:center; }
}
