/* =========================================================
   1Defender.ai — cold hacker / CLI-matrix theme
   Palette: deep navy → ice/cyan accents, mono headings,
   sparing mint for status indicators (no neon-green flood).
   ========================================================= */

:root {
  /* Surfaces */
  --bg:           #070912;
  --bg-2:         #0B0E1A;
  --bg-3:         #0E1322;
  --surface:      #10131F;
  --surface-2:    #161B2E;
  --surface-3:    #1B2238;

  /* Hairlines */
  --border:        #1E2438;
  --border-strong: #2A3252;
  --border-cyan:   rgba(0, 212, 255, 0.22);

  /* Text */
  --text:        #E5E9F2;
  --text-muted:  #8B95B0;
  --text-dim:    #5A6486;
  --text-faint:  #3A445F;

  /* Accents — cold blues / cyan */
  --cyan:         #00D4FF;
  --cyan-bright:  #5BE9FF;
  --cyan-dim:     #0098B8;
  --ice:          #B8E8FF;
  --blue:         #3B7BFF;
  --blue-deep:    #1969FE;

  /* Status (used sparingly) */
  --mint:   #5FF5C8;
  --amber:  #FFB547;
  --red:    #FF5577;

  /* Type */
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Geometry */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Glow */
  --glow-cyan: 0 0 24px rgba(0, 212, 255, 0.18);
  --glow-cyan-strong: 0 0 40px rgba(0, 212, 255, 0.32);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 800px 500px at 80% 30%, rgba(59, 123, 255, 0.05), transparent 55%);
}

/* Subtle scanline overlay — blends into bg, not a heavy effect */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
}

a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cyan-bright); }

img, svg { max-width: 100%; display: block; }

::selection {
  background: rgba(0, 212, 255, 0.32);
  color: #fff;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
}

/* =========================================================
   Typography
   ========================================================= */

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

.mono { font-family: var(--mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.04);
}

.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--cyan-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: "// ";
  color: var(--text-faint);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }

/* =========================================================
   Navigation
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand:hover { color: var(--text); }

/* Wordmark logo — used as designed, no filter. */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity .2s;
}

.brand:hover .logo-img { opacity: 0.85; }

.logo-img.lg { height: 56px; }
.logo-img.xl { height: 72px; }

@media (max-width: 600px) {
  .logo-img { height: 26px; }
  .logo-img.lg, .logo-img.xl { height: 44px; }
}

/* Hero logo — primary brand statement. Logo + product descriptor inline,
   so visitors immediately know they've landed on the product, not the
   1defender.com services site. */
.hero-logo {
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  position: relative;
}

.hero-logo img {
  height: 70px;
  width: auto;
}

.hero-logo-tag {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-transform: uppercase;
  padding-left: 18px;
  border-left: 1px solid var(--border-strong);
  line-height: 1;
}

.hero-logo::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

@media (max-width: 600px) {
  .hero-logo { gap: 12px; }
  .hero-logo img { height: 48px; }
  .hero-logo-tag { font-size: 1.2rem; padding-left: 12px; }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .15s;
  position: relative;
}

.nav-link:hover { color: var(--text); }

.nav-link.active { color: var(--cyan); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.mobile-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  margin: 3px 0;
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .mobile-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: #021018;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.4), var(--glow-cyan);
}

.btn-primary:hover {
  background: var(--cyan-bright);
  color: #021018;
  box-shadow: 0 0 0 1px rgba(91, 233, 255, 0.5), var(--glow-cyan-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.04);
}

.btn-arrow {
  font-family: var(--mono);
  margin-left: 2px;
  transition: transform .18s;
}

.btn:hover .btn-arrow { transform: translateX(3px); }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-cmd {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.hero-cmd .prompt { color: var(--cyan); }
.hero-cmd .typed { color: var(--text); }
.hero-cmd .cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--cyan-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 .strike {
  position: relative;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85em;
  color: var(--text-muted);
  white-space: nowrap;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust span::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
}

/* Hero terminal mockup */
.terminal {
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.08),
    var(--glow-cyan);
  position: relative;
}

.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.04), transparent 40%);
  pointer-events: none;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--surface-3);
}
.terminal-bar .dot.r { background: #FF5577; }
.terminal-bar .dot.y { background: #FFB547; }
.terminal-bar .dot.g { background: #5FF5C8; }

.terminal-title {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 22px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-muted);
  min-height: 320px;
}

.terminal-line { display: block; }
.terminal-line .p   { color: var(--cyan); margin-right: 6px; }
.terminal-line .ok  { color: var(--mint); }
.terminal-line .warn{ color: var(--amber); }
.terminal-line .err { color: var(--red); }
.terminal-line .label { color: var(--text); }
.terminal-line .key   { color: var(--ice); }
.terminal-line .num   { color: var(--cyan-bright); }

.terminal-line.indent { padding-left: 18px; }

/* =========================================================
   Cloud / integrations strip
   ========================================================= */

.clouds {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.clouds-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.clouds-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) { .clouds-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .clouds-grid { grid-template-columns: repeat(2, 1fr); } }

.cloud-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all .18s;
}

.cloud-pill:hover {
  border-color: var(--border-cyan);
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.cloud-pill svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }

/* =========================================================
   Capabilities grid
   ========================================================= */

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left { text-align: left; margin: 0 0 56px; }

.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }

.cap {
  position: relative;
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .2s ease;
  overflow: hidden;
}

.cap::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% -10%, rgba(0, 212, 255, 0.10), transparent 50%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}

.cap:hover {
  border-color: var(--border-cyan);
  transform: translateY(-3px);
}

.cap:hover::after { opacity: 1; }

.cap-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-cyan);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--cyan);
}

.cap-icon svg { width: 22px; height: 22px; }

.cap-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cap h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cap p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.55; }

/* =========================================================
   How it works (terminal steps)
   ========================================================= */

.flow {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 800px) { .flow-grid { grid-template-columns: 1fr; } }

.flow-step {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.flow-step .num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  margin-bottom: 14px;
}

.flow-step .num::before { content: "[ "; color: var(--text-faint); }
.flow-step .num::after  { content: " ]"; color: var(--text-faint); }

.flow-step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.flow-step p { color: var(--text-muted); font-size: 0.92rem; }

.flow-step pre {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ice);
  overflow-x: auto;
}

.flow-step pre .c { color: var(--cyan); }
.flow-step pre .m { color: var(--text-dim); }

/* =========================================================
   Compliance band
   ========================================================= */

.compliance {
  text-align: center;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 32px auto 0;
}

@media (max-width: 700px) { .compliance-grid { grid-template-columns: repeat(3, 1fr); } }

.compliance-pill {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  text-align: center;
  padding: 96px 0 110px;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 280px at 50% 50%, rgba(0, 212, 255, 0.10), transparent 60%);
  pointer-events: none;
}

.cta h2 { max-width: 720px; margin: 0 auto 18px; }
.cta p { color: var(--text-muted); max-width: 540px; margin: 0 auto 32px; }

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col h4::before { content: "// "; color: var(--text-faint); }

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-bottom .endorse { color: var(--text-muted); }

/* =========================================================
   Pricing
   ========================================================= */

.price-card {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 36px;
  background: linear-gradient(180deg, var(--surface), var(--bg-3));
  border: 1px solid var(--border-cyan);
  border-radius: var(--r-lg);
  text-align: center;
  box-shadow: var(--glow-cyan);
}

.price-card .tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.price-card h3 { font-size: 1.6rem; margin-bottom: 12px; }

.price-card .body {
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* =========================================================
   Platform page (capability matrix)
   ========================================================= */

.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

@media (max-width: 800px) { .matrix { grid-template-columns: 1fr; } }

.matrix-cell {
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.matrix-cell:nth-child(2n) { border-right: none; }

@media (max-width: 800px) {
  .matrix-cell { border-right: none; }
}

.matrix-cell h3 {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.matrix-cell h3::before { content: "› "; color: var(--text-faint); }

.matrix-cell p { color: var(--text-muted); font-size: 0.92rem; }
.matrix-cell ul {
  list-style: none;
  margin-top: 14px;
}
.matrix-cell ul li {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
}
.matrix-cell ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* =========================================================
   Utilities
   ========================================================= */

.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* Subtle reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
