/* ============================================================
   BREACHFEED — Main Stylesheet
   breachfeed.in
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #040608;
  --surface:   #080d12;
  --border:    #0e2030;
  --cyan:      #00e5ff;
  --red:       #ff2d55;
  --amber:     #ffb300;
  --green:     #00ff88;
  --white:     #e8f0f5;
  --muted:     #4a6070;
  --font-mono: 'Share Tech Mono', monospace;
  --font-ui:   'Rajdhani', sans-serif;
  --font-head: 'Orbitron', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-ui);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ── SCANLINE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,229,255,0.015) 2px,
    rgba(0,229,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── NOISE TEXTURE ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 9998;
}

/* ── GRID BG ── */
.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── RADIAL GLOW ── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-orb.tl {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
}
.glow-orb.br {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(255,45,85,0.07) 0%, transparent 70%);
}

/* ── LAYOUT ── */
.wrapper {
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HEADER ── */
header {
  position: relative; z-index: 10;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.logo-wrap { display: flex; align-items: center; gap: 16px; }
.logo-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.logo-icon::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,229,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: eye-pulse 3s ease-in-out infinite;
}
@keyframes eye-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}
.logo-icon svg {
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.65)) drop-shadow(0 0 2px rgba(0,229,255,0.9));
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 3px; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--white);
}
.logo-text .breach { color: var(--white); }
.logo-text .feed {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,229,255,0.6);
}
.header-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-left: 2px solid rgba(0,229,255,0.3);
  padding-left: 7px;
}
.header-right {
  display: flex; align-items: center; gap: 16px;
}

/* ── ACCESS TOOLS BUTTON ── */
.access-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid rgba(0,229,255,0.25);
  background: rgba(0,229,255,0.04);
  overflow: hidden;
  transition: color 0.25s, border-color 0.25s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border-radius: 0;
}
.access-btn-bar {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.access-btn:hover .access-btn-bar { transform: translateX(0); }
.access-btn:hover { color: var(--bg); border-color: var(--cyan); }
.access-btn-bracket {
  position: relative; z-index: 1;
  color: rgba(0,229,255,0.4);
  font-size: 0.9rem; line-height: 1;
  transition: color 0.25s;
}
.access-btn:hover .access-btn-bracket { color: rgba(4,6,8,0.45); }
.access-btn-icon {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  transition: transform 0.3s ease;
}
.access-btn:hover .access-btn-icon { transform: rotate(45deg); }
.access-btn-text { position: relative; z-index: 1; }

/* ── STATUS PILL ── */
.status-pill {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,255,136,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  background: rgba(0,255,136,0.05);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.status-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.1em;
}

/* ── HERO ── */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--cyan);
}
h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
h1 .line-dim { color: var(--muted); font-weight: 400; font-size: 0.65em; display: block; letter-spacing: 0.12em; }
h1 .line-main { display: block; }
h1 .accent { color: var(--cyan); }
h1 .accent-red { color: var(--red); }

.hero-desc {
  font-size: 1.15rem;
  color: #7a99ac;
  max-width: 560px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 18px;
}
.builder-note {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--amber);
  letter-spacing: 0.08em;
  background: rgba(255,179,0,0.05);
  border: 1px solid rgba(255,179,0,0.2);
  border-left: 3px solid var(--amber);
  padding: 10px 16px;
  margin-bottom: 48px;
}
.builder-icon { flex-shrink: 0; display: flex; align-items: center; }
.hero-stats {
  display: flex; gap: 48px; flex-wrap: wrap;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}
.stat-num span { color: var(--cyan); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* ── SECTION DIVIDER ── */
.section-header {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--muted);
  white-space: nowrap;
}
.section-header .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── PRODUCT GRID ── */
.products {
  padding: 0 0 100px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* ── PRODUCT CARD ── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 40px 36px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); }

/* Card accent colors */
.card-cyan  { --c: var(--cyan);  --cr: 0,229,255; }
.card-red   { --c: var(--red);   --cr: 255,45,85; }
.card-amber { --c: var(--amber); --cr: 255,179,0; }
.card-green { --c: var(--green); --cr: 0,255,136; }

.card::before {
  background: radial-gradient(ellipse at 0% 0%, rgba(var(--cr), 0.08) 0%, transparent 65%);
}
.card:hover { border-color: var(--c); }
.card:hover::before { opacity: 1; }

/* Corner decoration */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  border-top: 32px solid var(--c);
  border-right: 32px solid transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover::after { opacity: 1; }

/* Scan line on hover */
.card-scan {
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  opacity: 0;
  transition: none;
}
.card:hover .card-scan {
  animation: scan-down 0.6s ease forwards;
}
@keyframes scan-down {
  0%   { top: -2px; opacity: 0.8; }
  100% { top: 102%; opacity: 0; }
}

.card-index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--c);
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.card-index::after {
  content: '';
  flex: 0 0 24px; height: 1px;
  background: var(--c);
  opacity: 0.5;
}
.card-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(var(--cr), 0.3);
  border-radius: 6px;
  display: grid; place-items: center;
  margin-bottom: 22px;
  background: rgba(var(--cr), 0.06);
  transition: background 0.3s, border-color 0.3s;
}
.card:hover .card-icon {
  background: rgba(var(--cr), 0.12);
  border-color: var(--c);
}
.card-icon svg { transition: transform 0.3s; }
.card:hover .card-icon svg { transform: scale(1.1); }

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.3s;
}
.card:hover .card-title { color: var(--c); }

.card-desc {
  font-size: 0.92rem;
  color: #5a7585;
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 28px;
}
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c);
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--cr), 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
}
.card-link:hover { border-color: var(--c); gap: 12px; }
.card-link svg { transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(3px); }

/* ── TERMINAL STRIP ── */
.terminal-strip {
  background: rgba(0,229,255,0.03);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  padding: 20px 28px;
  margin: 0 0 80px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap;
}
.terminal-strip .prompt { color: var(--cyan); flex-shrink: 0; }
.terminal-strip .cmd { color: var(--white); }
.terminal-strip .out { color: var(--muted); }
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--cyan);
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.footer-copy a { color: var(--cyan); text-decoration: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cyan); }

/* ── GLITCH ── */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: var(--red);
  animation: glitch-1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
  color: var(--cyan);
  animation: glitch-2 4s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch-1 {
  0%, 90%, 100% { transform: none; opacity: 0; }
  91% { transform: translate(-2px, 1px); opacity: 0.7; }
  93% { transform: translate(2px, -1px); opacity: 0.7; }
  95% { transform: none; opacity: 0; }
}
@keyframes glitch-2 {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93% { transform: translate(2px, 2px); opacity: 0.6; }
  95% { transform: translate(-2px, -1px); opacity: 0.6; }
  97% { transform: none; opacity: 0; }
}

/* ── ENTRANCE ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fade-up 0.7s ease forwards;
}
@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }
.delay-6 { animation-delay: 0.8s; }

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin-bottom: 80px;
  background: rgba(0,229,255,0.02);
}
.ticker {
  display: flex; gap: 80px;
  animation: ticker 22s linear infinite;
  width: max-content;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
}
.ticker-item .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.ticker-item.red .dot { background: var(--red); }
.ticker-item.amber .dot { background: var(--amber); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .wrapper { padding: 0 24px; }
  h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
  .hero { padding: 72px 0 60px; }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .wrapper { padding: 0 20px; }
  header { padding: 20px 0 18px; gap: 12px; flex-wrap: wrap; }
  .status-pill { padding: 5px 10px; }
  .status-label { font-size: 0.6rem; letter-spacing: 0.06em; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 2.1rem; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .stat-num { font-size: 1.5rem; }
  .builder-note { font-size: 0.65rem; }
  .product-grid { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 30px 28px 26px; }
  .card-title { font-size: 1rem; }
  .terminal-strip { padding: 14px 18px; margin: 0 0 48px; font-size: 0.65rem; flex-direction: column; gap: 6px; }
  .terminal-strip .out { display: none; }
  .ticker-wrap { margin-bottom: 48px; }
  .section-header { margin-bottom: 32px; }
  footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
  .footer-copy { font-size: 0.6rem; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .wrapper { padding: 0 16px; }
  header { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 0 16px; }
  .header-right { width: 100%; justify-content: space-between; }
  .access-btn { font-size: 0.6rem; padding: 8px 12px; letter-spacing: 0.1em; }
  .logo-text { font-size: 0.95rem; }
  .header-tag { font-size: 0.58rem; }
  .status-pill { align-self: flex-start; }
  .hero { padding: 40px 0 36px; }
  .hero-eyebrow { font-size: 0.62rem; letter-spacing: 0.12em; }
  h1 { font-size: 1.85rem; letter-spacing: 0.02em; }
  h1 .line-dim { font-size: 0.55em; }
  .hero-desc { font-size: 0.95rem; max-width: 100%; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.35rem; }
  .stat-label { font-size: 0.58rem; }
  .builder-note { font-size: 0.62rem; padding: 9px 12px; }
  .card { padding: 24px 20px 22px; }
  .card-index { font-size: 0.58rem; margin-bottom: 16px; }
  .card-icon { width: 44px; height: 44px; margin-bottom: 16px; }
  .card-title { font-size: 0.92rem; }
  .card-desc { font-size: 0.88rem; margin-bottom: 22px; }
  .card-link { font-size: 0.65rem; }
  .terminal-strip { padding: 12px 14px; font-size: 0.6rem; margin: 0 0 36px; }
  .terminal-strip .cmd { word-break: break-all; }
  .section-header h2 { font-size: 0.62rem; letter-spacing: 0.18em; }
  .section-header { margin-bottom: 24px; }
  .ticker-wrap { margin-bottom: 36px; padding: 8px 0; }
  .ticker-item { font-size: 0.58rem; gap: 7px; }
  .glow-orb.tl { width: 300px; height: 300px; top: -100px; left: -100px; }
  .glow-orb.br { width: 250px; height: 250px; }
  .footer-copy { font-size: 0.58rem; line-height: 1.6; }
  .footer-links { gap: 12px; }
  .footer-links a { font-size: 0.58rem; }
}

/* Tiny (≤360px) */
@media (max-width: 360px) {
  h1 { font-size: 1.6rem; }
  .logo-text { font-size: 0.85rem; }
  .card { padding: 20px 16px 18px; }
}
