:root {
  --bg: #030508;
  --surface: #2a1647;
  --card: #23133a;
  --card2: #1f1232;
  --border: #3a1c63;
  --border2: #5e309d;
  --pink: #883CF0;
  --pink2: #873cf06d;
  --pink3: #883CF0;
  --cyan: #a78bfa;
  --violet: #7209b7;
  --indigo: #f65bf6;
  --green: #06d6a0;
  --yellow: #b33ff3;
  --text: #e8f0ff;
  --text-mid: #dee3e8;
  --text-dim: #e9edf1;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.account-takeover{
  background: #191127;
  color: var(--text);
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  height:100vh;
  overflow-y: auto;
}

/* Diagonal stripe texture */
.account-takeover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      transparent 0px, transparent 18px,
      rgba(247, 37, 133, 0.018) 18px, rgba(247, 37, 133, 0.018) 19px);
  pointer-events: none;
  z-index: 0;
}

/* Pink top glow */
.account-takeover::after {
  content: '';
  position: absolute;
  top: -300px;
  left: 30%;
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 37, 247, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLL PROGRESS BAR ── */
#ato-prog {
  position: sticky;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--pink), var(--pink2));
  box-shadow: 0 0 16px var(--pink);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
  z-index: 1;
  width: 0%;
}

/* ── MOBILE NAV ── */
.ato-nav-toggle {
  display: none;
  position: sticky;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border2);
  color: var(--pink);
  font-size: 0.65rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.2s;
}

.ato-nav-toggle:hover {
  background: #23133a9f;
}

.ato-nav-drawer {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card2);
  border-bottom: 1px solid var(--border2);
  z-index: 1;
  padding: 3.5rem 1.5rem 1.5rem;
  animation: ato-slide-down 0.25s ease;
}

.ato-nav-drawer.open {
  display: block;
}

@keyframes ato-slide-down {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.ato-nav-drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ato-nav-drawer-list a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
  
  font-size: 0.63rem;
  
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.ato-nav-drawer-list a:hover {
  color: var(--pink);
  border-color: var(--border2);
  background: #23133a9f;
}

.ato-nav-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 1.2rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CONTAINER ── */
.ato-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

/* ── HEADER ── */
.ato-header {
  padding: 60px 0 44px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.h-tag {
  font-size: 10px;
  color: var(--pink);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  opacity: .9;
}

.h-tag-line {
  width: 28px;
  height: 1px;
  background: var(--pink);
  opacity: .5;
}

h1.ato-h1 {
  
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 800;
  line-height: .95;
  color: #fff;
}

h1.ato-h1 .ato-accent {
  color: var(--pink);
  text-shadow: 0 0 60px #be52e50f;
  display: block;
}

h1.ato-h1 .ato-sub {
  font-size: .52em;
  font-weight: 400;
  color: var(--text-mid);
  display: block;
  margin-top: 8px;
}

.ato-underline {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--pink3), var(--violet), transparent);
  margin-top: 4px;
  animation: ato-slide-in 1s ease forwards;
}

@keyframes ato-slide-in {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }

  to {
    transform: scaleX(1);
  }
}

.h-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin-top: 22px;
  font-weight: 400;
  line-height: 1.7;
}

.ato-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 6px 16px;
  background: #23133a;
  border: 1px solid #3a1c63;
  font-size: 10px;
  color: var(--pink);
}

.ato-blink {
  animation: ato-blink 1.6s step-end infinite;
}

@keyframes ato-blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: 1px;
  border: 1px solid var(--border);
  margin-top: 40px;
}

.stat {
  background: var(--card);
  padding: 22px 20px;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}

.stat:hover {
  background: var(--card2);
}

.stat::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}

.stat:nth-child(1)::after {
  background: var(--pink);
}

.stat:nth-child(2)::after {
  background: var(--cyan);
}

.stat:nth-child(3)::after {
  background: var(--yellow);
}

.stat:nth-child(4)::after {
  background: var(--green);
}

.s-label {
  
  font-size: 8px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.s-val {
  
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat:nth-child(1) .s-val {
  color: var(--pink);
}

.stat:nth-child(2) .s-val {
  color: var(--cyan);
}

.stat:nth-child(3) .s-val {
  color: var(--yellow);
}

.stat:nth-child(4) .s-val {
  color: var(--green);
}

.s-desc {
  font-size: 11px;
  color: var(--text-mid);
  font-weight: 400;
  line-height: 1.5;
}

/* ── SECTION HEADINGS ── */
.sec {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 52px;
  margin-bottom: 26px;
}

.sec-n {
  
  font-size: 9px;
  color: var(--pink);
  opacity: .55;
}

.sec-t {
  
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.sec-r {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
}

/* ── ATTACK VECTOR CARDS ── */
.vector-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 52px;
}

.vmap-card {
  background: var(--card);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: background .2s;
}

.vmap-card:hover {
  background: var(--card2);
}

.vmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.vmap-card:nth-child(1)::before {
  background: var(--pink);
}

.vmap-card:nth-child(2)::before {
  background: var(--cyan);
}

.vmap-card:nth-child(3)::before {
  background: var(--yellow);
}

.vmap-card:nth-child(4)::before {
  background: var(--violet);
}

.vmap-card:nth-child(5)::before {
  background: var(--green);
}

.vmap-card:nth-child(6)::before {
  background: var(--indigo);
}

.vm-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.vm-name {
  
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 5px;
}

.vm-tag {
  
  font-size: 9px;
  color: var(--pink);
  margin-bottom: 11px;
}

.vm-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 400;
}

/* ── ATTACK DIAGRAM ── */
.diag-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px 28px 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.diag-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 110%, rgba(247, 37, 133, .05) 0%, transparent 60%);
}

.diag-wrap svg {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

/* SVG dash animation */
.da {
  stroke-dasharray: 5, 3;
  animation: ato-dash 1s linear infinite;
}

@keyframes ato-dash {
  to {
    stroke-dashoffset: -8;
  }
}

/* ── TABS / STEPPER ── */
.ato-tabs {
  display: flex;
  background: var(--border);
  border: 1px solid var(--border);
  gap: 1px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ato-tab {
  flex: 1;
  min-width: 80px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: background .2s;
}

.ato-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  transform: scaleX(0);
  transition: transform .25s;
}

.ato-tab.active {
  background: var(--card2);
}

.ato-tab.active::after {
  transform: scaleX(1);
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
}

.ato-tab.done::after {
  transform: scaleX(1);
  background: var(--green);
}

.ato-tab .ti {
  font-size: 17px;
  filter: grayscale(1);
  opacity: .35;
  transition: all .2s;
}

.ato-tab.active .ti,
.ato-tab.done .ti {
  filter: none;
  opacity: 1;
}

.ato-tab .tn {
  
  font-size: 9px;
  color: var(--text-dim);
}

.ato-tab .tl {
  
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  transition: color .2s;
}

.ato-tab.active .tn,
.ato-tab.active .tl {
  color: var(--pink);
}

.ato-tab.done .tn,
.ato-tab.done .tl {
  color: var(--green);
}

/* ── PANELS ── */
.ato-panel {
  display: none;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--card);
  animation: ato-fade-up .3s ease;
}

.ato-panel.active {
  display: block;
}

@keyframes ato-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.pl {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
}

.pr {
  padding: 36px 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-phase {
  
  font-size: 9px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.p-title {
  
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 14px;
}

.victim-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(247, 37, 133, .06);
  border-left: 3px solid var(--pink);
  margin-bottom: 20px;
}

.vb-label {
  
  font-size: 9px;
  color: var(--text-dim);
}

.vb-status {
  
  font-size: 13px;
  font-weight: 700;
}

.p-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.p-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  font-weight: 400;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.p-list li::before {
  content: '▸';
  color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 10px;
}

/* ── TERMINAL ── */
.term {
  background: #1f172f;
  border: 1px solid #3a1c63;
  border-radius: 4px;
  overflow: hidden;
  
  font-size: 12.5px;
  max-width: 100%;
}

.tbar {
  background: #1f12321a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #3a1c63;
}

.td {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.td.r {
  background: #ff5f57;
}

.td.y {
  background: #ffbd2e;
}

.td.g {
  background: #28ca41;
}

.ttitle {
  margin-left: 8px;
  font-size: 10px;
  color: var(--text-dim);
}

.tbody {
  padding: 16px 18px;
  line-height: 2.1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tbody .pr {
  color: #f0f8ff;
}

.tbody .cm {
  color: var(--text);
}

.tbody .out {
  color: var(--text-mid);
}

.tbody .hl {
  color: var(--yellow);
}

.tbody .ok {
  color: var(--green);
}

.tbody .er {
  color: var(--pink);
}

.tbody .cy {
  color: var(--cyan);
}

.tbody .sp {
  color: var(--text-dim);
}

.tbody .vi {
  color: #b5a0ff;
}

/* ── PANEL CONTROLS ── */
.ato-ctrl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
}

.cbtn {
  
  font-size: 11px;
  padding: 10px 22px;
  min-height: 44px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all .2s;
  text-transform: uppercase;
}

.cbtn-p {
  border-color: var(--border);
  color: var(--text-dim);
}

.cbtn-p:hover:not(:disabled) {
  border-color: var(--text-mid);
  color: var(--text);
}

.cbtn-p:disabled {
  opacity: .25;
  cursor: default;
}

.cbtn-n {
  border-color: var(--pink3);
  color: var(--pink);
}

.cbtn-n:hover:not(:disabled) {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 0 20px #be52e50f;
}

.cbtn-n:disabled {
  opacity: .25;
  cursor: default;
}

.c-ind {
  
  font-size: 11px;
  color: var(--text-dim);
}

.c-ind em {
  color: var(--pink);
  font-style: normal;
}

/* ── IMPACT MATRIX ── */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 52px;
}

.imp-card {
  background: var(--card);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background .2s;
}

.imp-card:hover {
  background: var(--card2);
}

.imp-ico {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.imp-title {
  
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 6px;
}

.imp-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 400;
}

/* ── DEFENSE CARDS ── */
.ato-def-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 52px;
}

.def-card {
  background: var(--card);
  padding: 24px 22px;
  position: relative;
  transition: background .2s;
}

.def-card:hover {
  background: var(--card2);
}

.def-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  opacity: .4;
  transition: opacity .2s;
}

.def-card:hover::after {
  opacity: 1;
}

.def-ico {
  font-size: 24px;
  margin-bottom: 12px;
}

.def-title {
  
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.def-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 400;
}

/* ── CREDENTIAL STUFFING DEMO ── */
.demo-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  margin-bottom: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-l {
  padding: 32px;
  border-right: 1px solid var(--border);
}

.demo-r {
  padding: 32px;
  background: var(--surface);
}

.demo-title {
  
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.demo-sub {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-weight: 400;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border2);
}

.flow-step:last-child {
  border-bottom: none;
}

.fs-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: #291a3e;
  border: 1px solid #3a1c63;
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 11px;
  color: var(--pink);
  font-weight: 500;
}

.fs-label {
  
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.fs-detail {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 400;
}

.result-strip {
  display: flex;
  gap: 2px;
  flex-direction: column;
  
  font-size: 11px;
  max-height: 300px;
  overflow-y: auto;
}

.rs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--card);
  border-left: 3px solid;
}

.rs-row.fail {
  border-color: var(--text-dim);
  color: var(--text-dim);
}

.rs-row.hit {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(247, 37, 133, .06);
}

.rs-row.hit .rs-icon {
  animation: ato-glow 1s infinite;
}

@keyframes ato-glow {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

.rs-icon {
  font-size: 10px;
}

.rs-user {
  flex: 1;
}

.rs-code {
  font-size: 10px;
  opacity: .7;
}

/* ── FOOTER ── */
.ato-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  
  font-size: 10px;
  color: var(--text-dim);
}

/* ==========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================== */

/* Below 1024px - hamburger */
@media (max-width: 1024px) {
  .ato-nav-toggle {
    display: flex;
  }

  .ato-container {
    padding: 0 20px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vector-map {
    grid-template-columns: repeat(2, 1fr);
  }

  .ato-def-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .demo-wrap {
    grid-template-columns: 1fr;
  }

  .demo-l {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

/* Below 768px - single column */
@media (max-width: 768px) {
  .ato-header {
    padding: 40px 0 24px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .vector-map {
    grid-template-columns: 1fr;
  }

  .ato-def-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .pgrid {
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
    overflow: hidden;
  }

  .pl {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 15px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .pr {
    padding: 20px 15px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .demo-wrap {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .demo-l {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px;
    box-sizing: border-box;
  }

  .demo-r {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .ato-ctrl {
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .sec-t {
    font-size: 14px;
  }

  .p-title {
    font-size: 17px;
  }

  h1.ato-h1 {
    font-size: clamp(20px, 8vw, 32px);
  }

  .diag-wrap {
    padding: 20px 12px;
    overflow-x: auto;
    width: 100%;
  }

  .diag-wrap svg {
    min-width: 600px;
    display: block;
  }
}

/* 375px */
@media (max-width: 420px) {
  .ato-container {
    padding: 0 14px;
  }

  .cbtn {
    padding: 10px 14px;
    font-size: 10px;
  }

  .ato-tab {
    min-width: 60px;
    padding: 12px 4px;
  }

  .ato-tab .tl {
    font-size: 9px;
  }
}

/* Touch tap targets */
@media (hover: none) and (pointer: coarse) {
  .ato-tab {
    min-height: 52px;
  }

  .cbtn {
    min-height: 48px;
  }

  .vmap-card {
    padding: 20px;
  }
}

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 5px; height: 6px; }
  ::-webkit-scrollbar-track { background: #873cf015; }
  ::-webkit-scrollbar-thumb { background: #873cf015; border-radius: 3px; }