/* Octane Downloadables -- Lead Generation Design System */
:root {
  --brand-blue: #4daeeb;
  --black: #000000;
  --white: #ffffff;
  --body-text: #1e293b;
  --border-light: #dadada;
  --bg-hover: rgba(0,0,0,0.02);
  --font-stack: 'Roboto', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* Layout */
.octane-container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.octane-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Breadcrumb */
.octane-breadcrumb { padding: 1rem 0 0; }
.octane-breadcrumb ol { display: flex; align-items: center; gap: 0.4rem; list-style: none; font-size: 0.72rem; font-weight: 500; color: rgba(0,0,0,0.4); }
.octane-breadcrumb a { color: rgba(0,0,0,0.4); text-decoration: none; }
.octane-breadcrumb a:hover { color: var(--brand-blue); }
.octane-breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; opacity: 0.5; }
.octane-breadcrumb li[aria-current] { color: var(--black); }

/* Intro (GEO content block) */
.octane-intro { padding: 3.5rem 0 1.5rem; text-align: center; }
.octane-intro h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(0,0,0,0.25); margin-bottom: 0.8rem; line-height: 1.3; }
.octane-intro p { font-size: 0.78rem; color: var(--body-text); line-height: 1.8; max-width: 560px; margin: 0 auto; opacity: 0.4; }

/* FAQ Section */
.octane-faq { padding: 4rem 0; border-top: 1px solid var(--border-light); }
.octane-faq h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--black); margin-bottom: 2rem; }
.octane-faq-item { border-bottom: 1px solid var(--border-light); }
.octane-faq-item summary { padding: 1.2rem 0; font-size: 0.92rem; font-weight: 700; color: var(--black); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.octane-faq-item summary::-webkit-details-marker { display: none; }
.octane-faq-item summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; color: var(--brand-blue); flex-shrink: 0; margin-left: 1rem; }
.octane-faq-item[open] summary::after { content: '\2212'; }
.octane-faq-item p { padding: 0 0 1.2rem; font-size: 0.85rem; color: var(--body-text); line-height: 1.7; opacity: 0.8; max-width: 720px; }

/* Noscript fallback */
.octane-noscript-resources h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; }
.octane-noscript-resources article { padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.octane-noscript-resources h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.octane-noscript-resources p { font-size: 0.85rem; color: var(--body-text); line-height: 1.7; margin-bottom: 0.5rem; }

/* Hero: Featured Resource Split */
.octane-hero { padding: 5rem 0 4rem; }
.octane-hero-split { display: flex; align-items: center; gap: 4rem; }
.octane-hero-content { flex: 1 1 55%; min-width: 0; }
.octane-hero-cover { flex: 0 0 340px; position: relative; }
.octane-hero-cover img {
  width: 100%; border-radius: 8px;
}
.octane-hero-cover::after {
  content: 'POPULAR'; position: absolute; top: 12px; right: -8px;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em;
  color: var(--white); background: var(--brand-blue);
  padding: 0.3rem 0.7rem; border-radius: 4px;
}
.octane-hero-eyebrow {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand-blue); margin-bottom: 1.2rem;
}
.octane-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.08; color: var(--black);
  margin-bottom: 1.5rem; max-width: 600px;
}
.octane-hero-sub {
  font-size: 1rem; color: var(--body-text); line-height: 1.7;
  max-width: 500px; opacity: 0.8; margin-bottom: 2rem;
}
.octane-hero-cta {
  font-family: var(--font-stack); font-size: 0.88rem; font-weight: 700;
  padding: 0.85rem 2rem; background: var(--black); color: var(--white);
  border: none; border-radius: 100px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.octane-hero-cta svg { width: 16px; height: 16px; }
.octane-hero-cta:hover { background: var(--brand-blue); }
.octane-hero-meta {
  margin-top: 1rem; font-size: 0.72rem; font-weight: 500;
  color: rgba(0,0,0,0.35); letter-spacing: 0.03em;
}

/* Trust Strip */
.octane-trust { padding: 3rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.octane-trust-grid { display: flex; justify-content: center; gap: 5rem; }
.octane-trust-item { text-align: center; min-width: 120px; }
.octane-trust-number { display: block; font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; color: var(--black); line-height: 1; }
.octane-trust-label { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.35); margin-top: 0.5rem; line-height: 1.3; }

/* Filters */
.octane-filters { padding: 0 0 3rem; position: sticky; top: 0; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10; padding-top: 1.2rem; }
.octane-filter-list { display: flex; gap: 0.5rem; list-style: none; flex-wrap: wrap; }
.octane-filter-btn { font-family: var(--font-stack); font-size: 0.78rem; font-weight: 600; padding: 0.55rem 1.2rem; border: none; background: transparent; color: var(--body-text); cursor: pointer; border-radius: 100px; }
.octane-filter-btn:hover { background: var(--bg-hover); color: var(--brand-blue); }
.octane-filter-btn.active { background: var(--black); color: var(--white); }

/* Section Header */
.octane-section-header { margin-bottom: 2rem; padding-top: 1rem; }
.octane-section-header h2 { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.02em; color: var(--black); }

/* Resource Grid */
.octane-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; padding-bottom: 6rem; }
.octane-card { position: relative; padding: 2rem 0; cursor: default; display: flex; flex-direction: column; }
.octane-card::before { content: ''; position: absolute; top: 0; left: -1.5rem; right: -1.5rem; bottom: 0; border-radius: 12px; background: transparent; z-index: -1; }
.octane-card[data-category="ai-automation"] { border-left: 3px solid var(--brand-blue); padding-left: 1.5rem; }
.octane-card-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; margin-bottom: 1.2rem; }
.octane-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.octane-card-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 0.9rem; }
.octane-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; color: var(--black); margin-bottom: 0.7rem; }
.octane-card-desc { font-size: 0.82rem; color: var(--body-text); line-height: 1.65; opacity: 0.75; margin-bottom: 1.5rem; flex-grow: 1; }
.octane-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.octane-file-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 600; color: rgba(0,0,0,0.4); }
.octane-file-badge svg { width: 14px; height: 14px; opacity: 0.5; }

/* Download Buttons (All Gated) */
.octane-download-btn { font-family: var(--font-stack); font-size: 0.75rem; font-weight: 700; padding: 0.6rem 1.6rem; border: none; border-radius: 100px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.45rem; background: var(--black); color: var(--white); }
.octane-download-btn:hover { background: var(--brand-blue); }
.octane-download-btn svg { width: 12px; height: 12px; opacity: 0.8; }

/* Download Count Badges */
.octane-download-count { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; color: rgba(0,0,0,0.35); }
.octane-download-count strong { font-weight: 800; color: var(--brand-blue); }
.octane-hero-downloads { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 500; color: rgba(0,0,0,0.4); }
.octane-hero-downloads strong { font-weight: 800; color: var(--brand-blue); }

/* Modal */
.octane-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.octane-modal-overlay.active { opacity: 1; visibility: visible; }
.octane-modal { background: var(--white); border-radius: 16px; padding: 3rem; max-width: 440px; width: 90%; transform: translateY(20px) scale(0.97); transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94); position: relative; }
.octane-modal-overlay.active .octane-modal { transform: translateY(0) scale(1); }
.octane-modal-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 32px; height: 32px; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--body-text); }
.octane-modal-close:hover { background: var(--bg-hover); }
.octane-modal-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-blue); margin-bottom: 0.8rem; }
.octane-modal h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--black); margin-bottom: 0.6rem; }
.octane-modal-sub { font-size: 0.82rem; color: var(--body-text); opacity: 0.7; margin-bottom: 2rem; line-height: 1.6; }
.octane-form-group { margin-bottom: 1rem; }
.octane-form-group label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--body-text); margin-bottom: 0.4rem; }
.octane-form-group input { width: 100%; font-family: var(--font-stack); font-size: 0.88rem; padding: 0.75rem 1rem; border: 1px solid var(--border-light); border-radius: 8px; outline: none; color: var(--black); }
.octane-form-group input:focus { border-color: var(--brand-blue); }
.octane-form-group input::placeholder { color: #b0b0b0; }
.octane-form-submit { width: 100%; font-family: var(--font-stack); font-size: 0.85rem; font-weight: 700; padding: 0.85rem; background: var(--black); color: var(--white); border: none; border-radius: 100px; cursor: pointer; margin-top: 0.8rem; }
.octane-form-submit:hover { background: var(--brand-blue); }
.octane-modal-success { text-align: center; display: none; }
.octane-modal-success.active { display: block; }
.octane-modal-form.hidden { display: none; }
.octane-success-icon { width: 56px; height: 56px; margin: 0 auto 1.2rem; background: rgba(77,174,235,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--brand-blue); }
.octane-success-text { font-size: 0.88rem; color: var(--body-text); line-height: 1.6; }

/* CTA Section (Dark) */
.octane-cta { padding: 5rem 0; background: var(--black); text-align: center; }
.octane-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; color: var(--white); margin-bottom: 1rem; }
.octane-cta p { font-size: 0.92rem; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; }
.octane-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.octane-cta-primary { font-family: var(--font-stack); font-size: 0.82rem; font-weight: 700; padding: 0.8rem 2rem; background: var(--white); color: var(--black); border: none; border-radius: 100px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.octane-cta-primary:hover { background: var(--brand-blue); color: var(--white); }
.octane-cta-secondary { font-family: var(--font-stack); font-size: 0.82rem; font-weight: 700; padding: 0.8rem 2rem; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.25); border-radius: 100px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; }
.octane-cta-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* Sticky Bottom Bar */
.octane-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); z-index: 100; padding: 0.75rem 0; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
.octane-sticky-bar.visible { transform: translateY(0); }
.octane-sticky-inner { display: flex; align-items: center; justify-content: space-between; }
.octane-sticky-text { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-size: 0.82rem; }
.octane-sticky-text svg { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }
.octane-sticky-text strong { font-weight: 700; }
.octane-sticky-text span { opacity: 0.8; }
.octane-sticky-actions { display: flex; align-items: center; gap: 0.8rem; }
.octane-sticky-cta { font-size: 0.72rem; padding: 0.5rem 1.2rem; }
.octane-sticky-close { width: 28px; height: 28px; border: none; background: transparent; color: rgba(255,255,255,0.5); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.1rem; }
.octane-sticky-close:hover { color: rgba(255,255,255,0.8); }

/* Animations */
.octane-reveal { opacity: 0; transform: translateY(24px); }
.octane-card.hiding { opacity: 0; transform: scale(0.95) translateY(8px); pointer-events: none; position: absolute; visibility: hidden; }
.octane-card.showing { animation: octaneCardIn 0.4s cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
@keyframes octaneCardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 1024px) {
  .octane-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .octane-hero-split { gap: 2.5rem; }
  .octane-hero-cover { flex: 0 0 280px; }
  .octane-trust-grid { gap: 3rem; }
}
@media (max-width: 768px) {
  .octane-hero-split { flex-direction: column; gap: 2.5rem; }
  .octane-hero-cover { flex: none; width: 240px; order: -1; }
  .octane-hero h1 { font-size: 2rem; }
  .octane-trust-grid { gap: 2rem; }
  .octane-trust-number { font-size: 1.4rem; }
}
@media (max-width: 680px) {
  .octane-grid { grid-template-columns: 1fr; gap: 1rem; }
  .octane-hero { padding: 3rem 0 2.5rem; }
  .octane-card { padding: 1.5rem 0; }
  .octane-card[data-category="whitepaper"] { padding-left: 1rem; }
  .octane-card::before { left: -1rem; right: -1rem; }
  .octane-modal { padding: 2rem; }
  .octane-filter-list { gap: 0.3rem; }
  .octane-filter-btn { font-size: 0.72rem; padding: 0.45rem 0.9rem; }
  .octane-trust-grid { flex-direction: column; gap: 1.5rem; }
  .octane-sticky-text span { display: none; }
  .octane-cta-actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) { .octane-container { padding: 0 1.2rem; } }
