/* ===================================================================
   Aftershock Security — styles.css
   Red / white / black · hacker aesthetic, matched to the logo
   =================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --card: #121216;
  --card-2: #161619;
  --border: #26262d;
  --red: #e01e2c;
  --red-bright: #ff3142;
  --red-deep: #8f1019;
  --red-soft: rgba(224, 30, 44, 0.10);
  --text: #f4f5f6;
  --muted: #989aa3;
  --dim: #62646d;
  --radius: 10px;
  --maxw: 1180px;
  --nav-h: 88px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --glow: 0 0 26px -8px rgba(224, 30, 44, 0.55);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.01em; }
.grad { color: var(--red); }
.accent { color: var(--red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
  padding: 13px 24px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn--primary:hover { background: var(--red-bright); box-shadow: 0 0 36px -6px rgba(224, 30, 44, 0.75); }
.btn--outline { border-color: var(--border); color: var(--text); background: rgba(255, 255, 255, 0.015); }
.btn--outline:hover { border-color: var(--red); color: #fff; }
.btn--ghost { border-color: var(--red); color: var(--text); padding: 10px 18px; }
.btn--ghost:hover { background: var(--red); color: #fff; }
/* legacy hook (ShadowTrace) — neutral, not live */
.btn--orange { border-color: var(--border); color: var(--text); background: transparent; }
.btn--orange:hover { border-color: var(--red); color: #fff; }
.btn--full { width: 100%; }

/* ===== Navbar ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(8, 8, 10, 0.86); backdrop-filter: blur(14px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav__logo { height: 58px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 0.93rem; font-weight: 500; color: var(--muted); transition: color 0.2s ease; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__cta { color: var(--text) !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--text); transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; padding: 130px 0 90px; }
.hero--inner { min-height: auto; padding: 150px 0 70px; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.28; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 74% 16%, rgba(224, 30, 44, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, rgba(8, 8, 10, 0.85) 60%, var(--bg) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(224, 30, 44, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 30, 44, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000 28%, transparent 74%);
}
.hero__content { position: relative; z-index: 2; max-width: 840px; }
.hero__eyebrow {
  font-family: var(--mono); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.76rem; color: var(--muted); margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
}
.hero__eyebrow::before { content: "//"; color: var(--red); }
.hero__title { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; margin: 0 0 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.hero--inner .hero__title { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.hero__sub { font-size: clamp(1.04rem, 2vw, 1.26rem); color: var(--muted); max-width: 660px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--mono); }
.hero__badges span { font-weight: 500; font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); display: inline-flex; align-items: center; }
.hero__badges span::before { content: "▸"; color: var(--red); margin-right: 8px; }

/* ===== Trust strip ===== */
.trust { border-block: 1px solid var(--border); background: var(--bg-2); padding: 24px 0; }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 38px; }
.trust__label { font-family: var(--mono); font-size: 0.74rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.trust__items { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.trust__items span { font-family: var(--mono); font-weight: 600; font-size: 0.9rem; color: #4f5159; letter-spacing: 0.02em; transition: color 0.2s ease; }
.trust__items span:hover { color: var(--text); }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head--left { margin-left: 0; text-align: left; }
.kicker { font-family: var(--mono); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; color: var(--red); }
.kicker::before { content: "// "; color: var(--red); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin: 14px 0 16px; text-transform: uppercase; }
.section__head p { color: var(--muted); font-size: 1.06rem; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(224, 30, 44, 0.5); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 9px; background: var(--red-soft); border: 1px solid rgba(224, 30, 44, 0.28); margin-bottom: 18px; color: var(--red-bright); }
.card__icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== Product feature row ===== */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product + .product { margin-top: 90px; }
.product--rev .product__media { order: 2; }
.product__media { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; display: grid; place-items: center; min-height: 230px; position: relative; overflow: hidden; }
.product__media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(224,30,44,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(224,30,44,0.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.product__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, var(--red-soft), transparent 70%); }
.product__badge { position: relative; z-index: 1; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); }
.product__badge.grad { color: var(--red); }
.product__badge.orange { color: var(--dim); }
.product__tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 4px; margin-bottom: 14px; }
.tag--live { background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(224, 30, 44, 0.32); }
.tag--soon { background: rgba(255, 255, 255, 0.04); color: var(--dim); border: 1px solid var(--border); }
.tag--internal { background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(224, 30, 44, 0.32); }
.product h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 14px; text-transform: uppercase; }
.product p { color: var(--muted); margin-bottom: 14px; font-size: 1.02rem; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split__col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; }
.split__col h3 { font-size: 1.25rem; margin-bottom: 8px; text-transform: uppercase; }
.split__col h3 .pill { font-family: var(--mono); font-size: 0.66rem; vertical-align: middle; padding: 4px 9px; border-radius: 4px; margin-left: 8px; letter-spacing: 0.06em; }
.pill--green { background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(224,30,44,0.3); }
.pill--orange { background: rgba(255,255,255,0.04); color: var(--muted); border: 1px solid var(--border); }

/* ===== Checks / lists ===== */
.checks { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; background: var(--red); transform: rotate(45deg); }

/* ===== Steps ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step__num { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--red); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ===== Prose ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin: 36px 0 12px; text-transform: uppercase; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 10px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose .updated { font-family: var(--mono); color: var(--red); font-size: 0.86rem; font-weight: 500; }
.prose a { color: var(--red-bright); }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--border); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; text-transform: uppercase; }
.cta-band p { color: var(--muted); font-size: 1.06rem; max-width: 560px; margin: 0 auto 28px; }
.cta-band .hero__actions { justify-content: center; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 12px 0 16px; text-transform: uppercase; }
.contact__intro > p { color: var(--muted); font-size: 1.03rem; margin-bottom: 28px; }
.contact__meta { list-style: none; display: grid; gap: 18px; }
.contact__meta li { display: grid; gap: 3px; }
.contact__meta strong { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--dim); }
.contact__meta a { font-size: 1rem; color: var(--text); transition: color 0.2s ease; }
.contact__meta a:hover { color: var(--red-bright); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); font-weight: 500; letter-spacing: 0.03em; }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 12px 14px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 30, 44, 0.16); }
.contact__form .btn--full { grid-column: 1 / -1; }
.form__note { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.86rem; color: var(--red-bright); min-height: 1em; }
.form__note.success { color: #f4f5f6; }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 56px; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 340px; font-size: 0.92rem; }
.footer__col h4 { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--text); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--red-bright); }
.footer__col a .ext { font-size: 0.72rem; color: var(--dim); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.footer__network { color: var(--muted); }
.footer__network a { color: var(--red-bright); font-weight: 600; }
.footer__legal a:hover { color: var(--red-bright); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .cards, .cards--2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .product, .product--rev, .contact, .split { grid-template-columns: 1fr; gap: 36px; }
  .product--rev .product__media { order: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; top: var(--nav-h); right: 0; width: min(78vw, 300px); height: calc(100vh - var(--nav-h));
    flex-direction: column; align-items: flex-start; gap: 22px; background: var(--bg-2);
    border-left: 1px solid var(--border); padding: 32px 28px; transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__toggle { display: flex; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards, .cards--2, .steps, .contact__form, .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } }
