/* OpenSentinel — marketing site */
:root {
  --bg-deep: #050a12;
  --bg: #0a1220;
  --bg-card: #0f1a2e;
  --bg-elevated: #152238;
  --border: rgba(56, 189, 248, 0.12);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: #1d4ed8;
  --success: #34d399;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --glow: 0 0 80px rgba(59, 130, 246, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.btn:focus-visible,
.nav-link:focus-visible,
.code-copy:focus-visible,
.brand:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(5, 10, 18, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent-bright);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(148, 163, 184, 0.25);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.22), transparent),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(56, 189, 248, 0.08), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-copy .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-meta .dot {
  color: var(--success);
}

/* Hero visual */
.hero-visual {
  perspective: 1200px;
}

.browser-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.browser-frame:hover {
  transform: rotateY(0) rotateX(0);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dots i:nth-child(1) {
  background: #ef4444;
}
.browser-dots i:nth-child(2) {
  background: #eab308;
}
.browser-dots i:nth-child(3) {
  background: #22c55e;
}

.browser-body {
  padding: 1rem;
  min-height: 280px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
}

.mock-sidebar {
  background: #0b1528;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mock-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mock-strip {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  opacity: 0.92;
}
.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  flex: 1;
}
.mock-card {
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
  min-height: 72px;
}
.mock-card.wide {
  grid-column: 1 / -1;
  min-height: 100px;
}

/* Sections */
section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  margin-bottom: 2.5rem;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
}

/* Trust strip */
.trust-strip {
  background: var(--bg);
  border-block: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-inner strong {
  color: var(--text);
  font-weight: 600;
}

/* Feature grid */
.features-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Included categories */
.bg-alt {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.category-list {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

@media (min-width: 700px) {
  .category-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.category-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

/* Download */
.download-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.download-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.code-block {
  position: relative;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 4rem 1rem 1rem;
  margin-top: 1rem;
}
.code-block code {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #bae6fd;
  word-break: break-all;
}
.code-copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}
.code-copy:hover {
  border-color: #64748b;
}
.code-copy.copied {
  border-color: var(--success);
  color: var(--success);
}

/* Requirements */
.req-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.req-card {
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.req-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.req-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
}

details.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}
details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0;
}

/* CTA */
.cta {
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(59, 130, 246, 0.18), transparent);
  border-top: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}
.cta p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 42ch;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  font-size: 0.9rem;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}
