/* ---------- Buttons ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  font-family: var(--mono-display);
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary,
.btn-plan {
  position: relative;
  overflow: hidden;
  color: #12100b;
  background: var(--amber);
  border-color: var(--amber);
}
.btn-primary::before,
.btn-plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    115deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-plan:hover::before {
  left: 125%;
}
.btn-primary:hover,
.btn-plan:hover {
  background: #ffc555;
}
.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------- Hero metrics ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  max-width: 580px;
}
.metrics div {
  padding: 18px 0 0 18px;
  border-left: 1px solid var(--line);
}
.metrics div:first-child {
  padding-left: 0;
  border-left: none;
}
.metrics strong {
  display: block;
  font-family: var(--mono-display);
  color: var(--amber);
  font-size: 21px;
}
.metrics span {
  display: block;
  color: var(--muted-2);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* ---------- Hero terminal ---------- */
.hero-visual {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.term-window {
  position: relative;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s ease;
}
.hero-visual:hover .term-window {
  transform: translateY(-5px);
  border-color: rgba(255, 176, 32, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}
.term-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-3);
}
.term-dots {
  display: inline-flex;
  gap: 5px;
}
.term-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  display: block;
}
.term-path {
  color: var(--amber);
  flex: 1;
}
.term-log {
  padding: 22px 20px 14px;
  font-size: 13px;
  line-height: 2.1;
}
.term-log li {
  color: var(--muted);
  opacity: 0;
  animation: line-in 0.4s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.28s + 0.15s);
}
.ln-prompt {
  color: var(--muted-3);
  margin-right: 8px;
}
.ln-ok {
  color: var(--green);
  font-weight: 600;
}
.ln-amber {
  color: var(--amber);
  font-weight: 600;
}
.ln-muted {
  color: var(--muted-3);
}
.ln-final {
  color: var(--text);
}
.term-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px 22px;
  border-top: 1px dashed var(--line-soft);
}
.term-badge {
  font-size: 11px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 6px 9px;
}
.term-badge.is-ok {
  color: var(--green);
  border-color: rgba(53, 224, 138, 0.3);
}

/* ---------- Shared card chrome ---------- */
.compare-card,
.feature-card,
.step-card,
.price-card,
.faq details {
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    border-color 0.25s ease,
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.5s var(--ease);
}
.compare-card:hover,
.feature-card:hover,
.step-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

/* Staggered reveal for card grids */
.comparison .compare-card,
.feature-grid .feature-card,
.steps .step-card,
.pricing-grid .price-card,
.faq-list details {
  opacity: 0;
  transform: translateY(18px);
}
.reveal.is-visible .compare-card,
.reveal.is-visible .feature-card,
.reveal.is-visible .step-card,
.reveal.is-visible .price-card,
.reveal.is-visible .faq-list details {
  opacity: 1;
  transform: none;
}
.reveal.is-visible .compare-card:nth-child(2),
.reveal.is-visible .feature-card:nth-child(2),
.reveal.is-visible .step-card:nth-child(2),
.reveal.is-visible .price-card:nth-child(2),
.reveal.is-visible .faq-list details:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal.is-visible .compare-card:nth-child(3),
.reveal.is-visible .feature-card:nth-child(3),
.reveal.is-visible .step-card:nth-child(3),
.reveal.is-visible .price-card:nth-child(3),
.reveal.is-visible .faq-list details:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal.is-visible .faq-list details:nth-child(4) {
  transition-delay: 0.24s;
}

/* ---------- Threat comparison ---------- */
.comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.compare-card {
  padding: 26px;
}
.compare-card h3 {
  margin-bottom: 20px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-card li {
  padding: 13px 0;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}
.compare-card li:first-child {
  border-top: none;
}
.compare-card span {
  color: var(--muted-2);
}
.compare-card strong {
  font-weight: 600;
  text-align: right;
  color: var(--text-bright);
}
.danger h3 {
  color: var(--red);
}
.danger h3::before {
  content: "[FAIL] ";
}
.safe {
  border-color: rgba(53, 224, 138, 0.25);
}
.safe h3 {
  color: var(--green);
}
.safe h3::before {
  content: "[ OK ] ";
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 26px;
  position: relative;
}
.feature-card:hover {
  border-color: var(--amber);
}
.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
}
.feature-path {
  display: block;
  font-size: 11px;
  color: var(--muted-3);
  margin-bottom: 18px;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--amber);
  color: var(--amber);
  transition: transform 0.3s var(--ease);
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-card p,
.step-card p,
.price-card p,
.faq p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ---------- Steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step-card {
  padding: 26px;
  position: relative;
}
.step-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--amber-dim);
  font-family: var(--mono-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 10px;
  width: 100%;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 26px 26px 26px;
  min-height: 380px;
}
.price-card:hover { 
  border-color: var(--muted-3);
}
.price-card.popular {
  border-color: var(--amber);
  animation: popular-pulse 3.4s ease-in-out infinite;
}
.price-head {
  margin-bottom: 4px;
}
.price-tier {
  font-family: var(--mono-display);
  color: var(--text-bright);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.popular-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 9px 20px;
  background: var(--amber);
  color: #12100b;
  font-family: var(--mono-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(255, 176, 32, 0.45);
}
.price {
  color: var(--amber) !important;
  font-family: var(--mono-display);
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0 20px;
}
.price span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 500;
}
.price-card li {
  position: relative;
  padding: 9px 0 9px 18px;
  color: var(--text);
  font-size: 13.5px;
  border-top: 1px dashed var(--line-soft);
}
.price-card li:first-child {
  border-top: none;
}
.price-card li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--green);
  font-weight: 700;
}
.btn-plan {
  margin-top: auto;
  width: 100%;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq details {
  padding: 0 22px;
}
.faq details[open] {
  border-color: var(--amber);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 20px 0;
  font-size: 15.5px;
  font-weight: 700;
  list-style: none;
  color: var(--text);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary span {
  color: var(--text);
}
.faq summary i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  font-style: normal;
}
.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--amber);
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s ease;
}
.faq summary i::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}
.faq summary i::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}
.faq details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq details p {
  padding: 0 0 22px;
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 30px;
  align-items: center;
  margin: 10px 0 48px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(23, 22, 15, 0.55);
  backdrop-filter: blur(10px);
}
.site-footer p {
  max-width: 400px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}
.copyright {
  white-space: nowrap;
  font-size: 12.5px;
  color: var(--muted-3);
}
