/* Horns Sentinel Group: alignment layer for the product pages (threat
   intelligence, OSINT, brand protection). Their sections keep their own layout;
   this file matches buttons, hero, forms and spacing to the rest of the site.
   Loaded after each page's own styles, so these rules win. */

/* ---------- Hero ---------- */

.product-hero {
  position: relative;
  max-width: none;
  padding: clamp(48px, 9vw, 96px) var(--gutter) clamp(48px, 8vw, 88px);
  isolation: isolate;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}

.product-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -180px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(217, 117, 68, 0.18), transparent 62%);
  pointer-events: none;
}

.product-hero > * {
  position: relative;
}

.product-hero h1 {
  font-size: clamp(2.2rem, 6.5vw, 3.6rem);
  letter-spacing: -0.04em;
}

.product-hero p {
  color: var(--text-muted);
}

/* Keep every section on the same grid as the rest of the site. */
.product-hero,
.problem-section > *,
.features-section > *,
.pricing-section > *,
.specs-section > *,
.modules-section > *,
.usecases-section > *,
.sources-section > *,
.coverage-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */

.btn-primary,
.btn-secondary,
.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn-primary,
.pricing-card.featured .pricing-btn {
  background: var(--accent);
  color: #0a0c0f;
}

.btn-primary:hover,
.pricing-card.featured .pricing-btn:hover {
  background: var(--accent-hover);
}

.btn-secondary,
.pricing-btn {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover,
.pricing-btn:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
}

.pricing-btn {
  width: 100%;
}

/* ---------- Section headings ---------- */

.section-header h2,
.specs-container h2 {
  font-size: clamp(1.9rem, 5.2vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-header p,
.specs-container > p {
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.4vw, 1.15rem);
}

/* ---------- Cards ---------- */

.feature-card,
.pricing-card,
.module-card,
.usecase-card,
.source-card,
.agent-card,
.specs-column,
.comparison-row {
  border-radius: var(--radius);
}

.pricing-card.featured {
  border-color: var(--accent-line);
}

/* ---------- Early access form in the call to action ---------- */

.cta-band .newsletter-form-container {
  align-items: flex-start;
}

.cta-band .newsletter-form {
  max-width: 520px;
  justify-content: flex-start;
}

.newsletter-form-input {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-sans);
}

.newsletter-form-input::placeholder {
  color: var(--text-faint);
}

.newsletter-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.newsletter-form-button,
.newsletter-loading-button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0c0f;
  font: 600 1rem/1 var(--font-sans);
  cursor: pointer;
}

.newsletter-form-button:hover {
  background: var(--accent-hover);
}

/* ---------- Section rhythm: left aligned, like every other page ---------- */

.section-header,
.sources-header,
.specs-container,
.comparison-container,
.problem-comparison {
  max-width: var(--max-width);
  margin: 0 auto clamp(32px, 6vw, 56px);
  padding-inline: var(--gutter);
  text-align: left;
}

/* The heading block stays narrow for readability, but starts where the cards do. */
.section-header > * {
  max-width: 720px;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-header .eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin: 20px 0 0;
}

/* Cards pick up the same padding, border and hover as the rest of the site. */
.feature-card,
.module-card,
.usecase-card,
.source-card,
.agent-card,
.specs-column,
.pricing-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.feature-card:hover,
.module-card:hover,
.usecase-card:hover,
.source-card:hover,
.agent-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.feature-card h3,
.module-card h3,
.usecase-card h3,
.source-card h3,
.agent-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature-card p,
.module-card p,
.usecase-card p,
.source-card p,
.agent-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.feature-card .feature-icon,
.agent-card .agent-icon {
  margin-left: 0;
  margin-right: auto;
}

/* Some sections carry their own narrower max-width, which left headings and
   cards on different gridlines. Constrain at the section, not the grid. */
.agents-section > *,
.news-section > *,
.comparison-section > *,
.stats-section > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.features-grid,
.agents-grid,
.modules-grid,
.usecases-grid,
.sources-grid,
.pricing-grid,
.specs-grid,
.coverage-grid,
.comparison-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--gutter);
}

/* Side spacing comes from the inner blocks above, so the sections themselves
   must not add their own or mobile ends up with double padding. */
.problem-section,
.features-section,
.pricing-section,
.specs-section,
.modules-section,
.usecases-section,
.sources-section,
.coverage-section,
.agents-section,
.news-section,
.comparison-section,
.stats-section {
  padding-left: 0;
  padding-right: 0;
}

/* ---------- Same material as the rest of the site ----------
   These pages kept flat panels after the design pass, which made them look
   like a different site. They now use the shared glass, edge and lift. */

.feature-card,
.pricing-card,
.module-card,
.usecase-card,
.source-card,
.agent-card,
.specs-column,
.problem-card,
.solution-card,
.comparison-row,
.stat-card {
  border-radius: var(--radius-lg);
  background-image: var(--glass);
  box-shadow: var(--edge), var(--shadow-soft);
}

.feature-card:hover,
.module-card:hover,
.usecase-card:hover,
.source-card:hover,
.agent-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--edge), var(--shadow-lift), var(--glow-accent);
}

.pricing-card.featured {
  background-image:
    linear-gradient(180deg, rgba(217, 117, 68, 0.14), rgba(217, 117, 68, 0.03)),
    var(--glass);
}

.hero-price .price {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.hero-price .compare {
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card:hover,
  .module-card:hover,
  .usecase-card:hover,
  .source-card:hover,
  .agent-card:hover {
    transform: none;
  }
}

/* "Talk to us" is words, not a figure, so it does not need the display size. */
.pricing-card .price,
.pricing-card .pricing-price {
  font-size: clamp(1.5rem, 3.2vw, 1.9rem);
  letter-spacing: -0.03em;
}

/* ---------- Terminal ----------
   The scan runs line by line and the cursor blinks on a hard cut, the way the
   product's own terminal does: 1s, no fade. The whole run loops so someone
   arriving mid-scroll still sees it happen. */

.hero-visual .terminal > div {
  opacity: 0;
  animation: terminal-line 14s var(--ease) infinite;
}

.hero-visual .terminal > div:nth-child(1) { animation-delay: 0.2s; }
.hero-visual .terminal > div:nth-child(2) { animation-delay: 0.9s; }
.hero-visual .terminal > div:nth-child(3) { animation-delay: 1.6s; }
.hero-visual .terminal > div:nth-child(4) { animation-delay: 2.3s; }
.hero-visual .terminal > div:nth-child(5) { animation-delay: 3s; }
.hero-visual .terminal > div:nth-child(6) { animation-delay: 3.9s; }
.hero-visual .terminal > div:nth-child(7) { animation-delay: 4.6s; }
.hero-visual .terminal > div:nth-child(8) { animation-delay: 5.4s; }
.hero-visual .terminal > div:nth-child(9) { animation-delay: 6.1s; }
.hero-visual .terminal > div:nth-child(10) { animation-delay: 6.8s; }

@keyframes terminal-line {
  0%,
  1% {
    opacity: 0;
    transform: translateY(2px);
  }
  3%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: none;
  }
}

.terminal__cursor {
  animation: terminal-blink 1s steps(1, end) infinite;
}

@keyframes terminal-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual .terminal > div,
  .terminal__cursor {
    opacity: 1;
    animation: none;
  }
}

/* ---------- Hero visuals on phones ----------
   Each product page hid its hero visual below 768px, so on a phone, which is
   where most of our traffic lands, these pages showed nothing but text. They
   stay, at a size that fits. */

@media (max-width: 768px) {
  .product-hero .hero-visual {
    display: block;
    margin-top: 28px;
    padding: 18px;
    text-align: left;
  }

  .hero-visual .terminal {
    font-size: 11.5px;
    line-height: 1.7;
    overflow-x: auto;
  }

  .hero-visual .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  /* "Talk to us" and the line beside it collided on a narrow screen. */
  .hero-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* Same rule for the product pages, whose panels live in their own stylesheet. */
.js-motion .live-panel:not(.is-playing) *,
.js-motion .hero-visual:not(.is-playing) * {
  animation-play-state: paused;
}
