/*
 Theme Name:   SignalFrameworks
 Theme URI:    https://signalframeworks.com
 Description:  SignalFrameworks child theme built on Blocksy
 Author:       SignalFrameworks
 Author URI:   https://signalframeworks.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  signalframeworks
*/

/* ══════════════════════════════════════
   SignalFrameworks Design System
   ══════════════════════════════════════ */

:root {
  --sf-bg: #06090f;
  --sf-text: #edf2f8;
  --sf-muted: #7a8599;
  --sf-line: rgba(255,255,255,0.06);
  --sf-accent: #7dd3fc;
  --sf-accent-2: #38bdf8;
  --sf-glow: rgba(125, 211, 252, 0.15);
  --sf-max: 1060px;
  --sf-max-wide: 1200px;
  --sf-radius: 14px;
}

/* ── Global overrides ── */
/* Blocksy's main.min.css loads after child theme and overrides colors.
   We use high-specificity selectors and !important to ensure our design wins. */
body,
body.ct-body,
html body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  background: var(--sf-bg) !important;
  color: var(--sf-text) !important;
  line-height: 1.7 !important;
  font-size: 1.08rem !important;
  -webkit-font-smoothing: antialiased;
  --theme-text-color: var(--sf-text) !important;
  --theme-palette-color-1: var(--sf-accent) !important;
  --theme-palette-color-2: var(--sf-accent-2) !important;
  --theme-link-initial-color: var(--sf-accent) !important;
  --theme-headings-color: var(--sf-text) !important;
}

body h1, body h2, body h3, body h4, body h5, body h6,
.entry-title, .page-title, .site-title {
  color: var(--sf-text) !important;
}

body p, body li, body span, body div,
.entry-content, .entry-content p {
  color: inherit;
}

a { color: inherit !important; text-decoration: none !important; }
a:hover { color: var(--sf-accent) !important; }

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
}

/* ── Ambient gradient orbs ── */
.sf-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.sf-ambient .orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  will-change: transform;
}
.sf-ambient .orb-1 {
  width: 600px; height: 600px; top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.12), transparent 70%);
  animation: sf-drift-1 20s ease-in-out infinite;
}
.sf-ambient .orb-2 {
  width: 500px; height: 500px; bottom: -10%; right: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08), transparent 70%);
  animation: sf-drift-2 25s ease-in-out infinite;
}
.sf-ambient .orb-3 {
  width: 400px; height: 400px; top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.06), transparent 70%);
  animation: sf-drift-3 18s ease-in-out infinite;
}
@keyframes sf-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, 40px) scale(1.1); }
  66% { transform: translate(-40px, 80px) scale(0.95); }
}
@keyframes sf-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(1.05); }
  66% { transform: translate(40px, -60px) scale(0.9); }
}
@keyframes sf-drift-3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  50% { transform: translate(-50%, -60px) scale(1.15); }
}

/* ── Cursor glow ── */
.sf-cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.07), transparent 70%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: left, top;
}

/* ── Reveal animations ── */
.sf-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Word reveal ── */
.sf-word-reveal .word {
  display: inline-block; opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-word-reveal.visible .word { opacity: 1; transform: translateY(0); }

/* ── Header override ── */
.sf-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(6, 9, 15, 0.7) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sf-nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
  width: min(100% - 2.5rem, var(--sf-max));
  margin: 0 auto;
}
.sf-logo {
  font-weight: 800; letter-spacing: -0.04em; font-size: 1.05rem;
  position: relative;
}
.sf-logo span { color: var(--sf-accent); }
.sf-logo::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--sf-accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.sf-logo:hover::after { opacity: 1; }
.sf-nav-link {
  font-size: 0.95rem; color: var(--sf-muted); font-weight: 500;
  transition: color 0.3s; letter-spacing: 0.01em;
}
.sf-nav-link:hover { color: var(--sf-accent); }

/* ── Container ── */
.sf-container {
  width: min(100% - 2.5rem, var(--sf-max));
  margin: 0 auto;
}
.sf-container-wide {
  width: min(100% - 2.5rem, var(--sf-max-wide));
  margin: 0 auto;
}

/* ── Buttons ── */
.sf-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent; cursor: pointer;
  letter-spacing: 0.01em; position: relative;
}
.sf-btn-primary {
  background: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-2));
  color: #06090f;
  box-shadow: 0 0 30px rgba(125, 211, 252, 0.2), 0 0 80px rgba(125, 211, 252, 0.06);
}
.sf-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(125, 211, 252, 0.3), 0 0 100px rgba(125, 211, 252, 0.1);
}
.sf-btn-primary:active { transform: translateY(0) scale(0.98); }

/* ── Hero ── */
.sf-hero {
  padding: 10rem 0 7rem;
  position: relative; z-index: 2;
}
.sf-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 0.95;
  letter-spacing: -0.045em; margin-bottom: 1.8rem;
  max-width: 720px; font-weight: 900;
}
.sf-hero .sub {
  font-size: 1.05rem; color: var(--sf-muted); max-width: 520px;
  margin-bottom: 2.8rem; line-height: 1.7;
}
.sf-hero-note {
  margin-top: 1.5rem; font-size: 0.9rem; color: var(--sf-muted);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.03em;
  opacity: 0.7;
}
.sf-hero-line {
  width: 60px; height: 1px; margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--sf-accent), transparent);
}

/* ── Sections ── */
.sf-section {
  padding: 4.5rem 0;
  position: relative; z-index: 2;
}
.sf-section + .sf-section {
  border-top: 1px solid var(--sf-line);
}
.sf-section-label {
  font-size: 0.82rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sf-accent); margin-bottom: 1.5rem;
  font-weight: 600; font-family: 'JetBrains Mono', monospace;
}

/* ── Pulse line ── */
.sf-pulse-line {
  position: relative; height: 2px; margin-bottom: 1.5rem;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.15), rgba(125, 211, 252, 0.03));
  border-radius: 2px; overflow: hidden; max-width: 300px;
}
.sf-pulse-dot {
  position: absolute; top: -2px; width: 6px; height: 6px;
  background: var(--sf-accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--sf-accent), 0 0 30px rgba(125, 211, 252, 0.3);
  animation: sf-pulse-sweep 3s ease-in-out infinite;
}
@keyframes sf-pulse-sweep {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── Signal list ── */
.sf-signal-list {
  list-style: none; display: flex; flex-direction: column;
  padding: 0; margin: 0;
}
.sf-signal-list li {
  padding: 1.4rem 1.2rem; margin: 0 -1.2rem;
  border-radius: var(--sf-radius);
  font-size: 1.1rem; color: var(--sf-muted);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; cursor: default;
}
.sf-signal-list li + li { border-top: 1px solid rgba(255,255,255,0.04); }
.sf-signal-list li:hover {
  background: rgba(125, 211, 252, 0.04);
  border-color: transparent;
  transform: translateX(8px);
  color: var(--sf-text);
}
.sf-signal-list li::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 0; background: var(--sf-accent);
  border-radius: 2px; transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-signal-list li:hover::before { height: 60%; }
.sf-signal-list li strong { color: var(--sf-text); font-weight: 600; }

/* ── The deal ── */
.sf-deal-statement {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.035em;
  margin-bottom: 1.5rem; max-width: 600px; font-weight: 800;
}
.sf-deal-detail {
  color: var(--sf-muted); font-size: 1.08rem; max-width: 520px;
  margin-bottom: 0.8rem; line-height: 1.7;
}
.sf-deal-highlight {
  color: var(--sf-text); font-weight: 500;
  padding: 1.2rem 1.4rem; margin-top: 1rem;
  border-radius: var(--sf-radius);
  background: rgba(125, 211, 252, 0.04);
  border: 1px solid rgba(125, 211, 252, 0.1);
  max-width: 520px;
  position: relative; overflow: hidden;
}
.sf-deal-highlight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sf-accent), transparent);
}

/* ── FAQ ── */
.sf-faq-list { display: flex; flex-direction: column; padding: 0; margin: 0; list-style: none; }
.sf-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.3s;
}
.sf-faq-item:hover { background: rgba(255,255,255,0.01); }
.sf-faq-question {
  width: 100%; background: none; border: none; color: var(--sf-text);
  font-size: 1.08rem; font-weight: 600; text-align: left;
  padding: 1.5rem 2.5rem 1.5rem 0; cursor: pointer; position: relative;
  font-family: inherit; line-height: 1.4; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.sf-faq-question:hover { color: var(--sf-accent); }
.sf-faq-question::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--sf-accent); font-weight: 400;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'JetBrains Mono', monospace;
}
.sf-faq-item.open .sf-faq-question::after { transform: translateY(-50%) rotate(45deg); }
.sf-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s;
}
.sf-faq-item.open .sf-faq-answer { max-height: 400px; padding-bottom: 1.4rem; }
.sf-faq-answer p { color: var(--sf-muted); font-size: 1.02rem; line-height: 1.7; margin: 0; }

/* ── Contact ── */
.sf-contact {
  padding: 4.5rem 0 6rem;
  position: relative; z-index: 2;
  border-top: 1px solid var(--sf-line);
}
.sf-contact h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.1; letter-spacing: -0.035em;
  margin-bottom: 0.8rem; font-weight: 800;
}
.sf-contact-sub {
  color: #b0bdd0; font-size: 1rem; margin-bottom: 2.5rem;
  max-width: 480px; line-height: 1.65;
}
.sf-form-group { margin-bottom: 1.1rem; }
.sf-form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: #c0cad8; margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}
.sf-form-group input,
.sf-form-group textarea {
  width: 100%; padding: 0.8rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
  color: var(--sf-text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s; outline: none;
}
.sf-form-group input:focus,
.sf-form-group textarea:focus {
  border-color: rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 20px rgba(125, 211, 252, 0.06);
}
.sf-form-group textarea { resize: vertical; min-height: 90px; }
.sf-form-max { max-width: 480px; }

/* ── Alt CTAs ── */
.sf-alt-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.2rem; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: var(--sf-text); font-size: 0.88rem; font-weight: 500;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sf-alt-cta:hover {
  background: rgba(125, 211, 252, 0.08);
  border-color: rgba(125, 211, 252, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.1);
}
.sf-alt-cta-row {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 2rem; flex-wrap: wrap;
}

/* ── Footer ── */
.sf-footer {
  padding: 2rem 0 3rem; color: var(--sf-muted);
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem; opacity: 0.4;
  position: relative; z-index: 2;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Blog: article styles ── */
.sf-article-body h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  margin-top: 2.5rem; margin-bottom: 1rem;
  color: var(--sf-text);
}
.sf-article-body h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-top: 2rem; margin-bottom: 0.8rem;
  color: var(--sf-text);
}
.sf-article-body p {
  margin-bottom: 1.4rem; color: #c8d2df;
  font-size: 1.08rem; line-height: 1.8;
}
.sf-article-body ul,
.sf-article-body ol {
  margin-bottom: 1.4rem; padding-left: 1.5rem; color: #c8d2df;
}
.sf-article-body li { margin-bottom: 0.6rem; line-height: 1.7; }
.sf-article-body strong { color: var(--sf-text); }
.sf-article-body blockquote {
  border-left: 3px solid var(--sf-accent);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: rgba(125,211,252,0.04);
  border-radius: 0 var(--sf-radius) var(--sf-radius) 0;
}
.sf-article-body blockquote p {
  margin-bottom: 0; color: var(--sf-text); font-style: italic;
}

/* ── Blog: newsletter sidebar ── */
.sf-newsletter-box {
  border: 1px solid var(--sf-line); border-radius: var(--sf-radius);
  padding: 2rem 1.6rem; background: rgba(255,255,255,0.02);
}
.sf-newsletter-box h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.sf-newsletter-box p { color: var(--sf-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; }
.sf-newsletter-box input[type="email"] {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  background: rgba(255,255,255,0.04); color: var(--sf-text);
  font-family: inherit; font-size: 0.9rem; outline: none;
  margin-bottom: 0.8rem; transition: border-color 0.2s;
}
.sf-newsletter-box input[type="email"]:focus { border-color: var(--sf-accent); }
.sf-newsletter-box input[type="email"]::placeholder { color: var(--sf-muted); }
.sf-newsletter-btn {
  width: 100%; padding: 0.8rem 1rem;
  border: none; border-radius: 8px;
  background: var(--sf-accent); color: var(--sf-bg);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.sf-newsletter-btn:hover { background: var(--sf-accent-2); }
.sf-newsletter-btn:active { transform: scale(0.98); }

/* ── Selection ── */
::selection { background: rgba(125, 211, 252, 0.25); color: var(--sf-text); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.3); }

/* ── Large screens ── */
@media (min-width: 1400px) {
  :root {
    --sf-max: 1140px;
    --sf-max-wide: 1300px;
  }
  body { font-size: 1.15rem !important; }
  .sf-hero { padding: 12rem 0 8rem; }
  .sf-hero h1 { font-size: clamp(3.2rem, 5.5vw, 5.5rem); }
  .sf-hero .sub { font-size: 1.15rem; max-width: 580px; }
  .sf-section { padding: 5.5rem 0; }
  .sf-signal-list li { font-size: 1.18rem; padding: 1.6rem 1.4rem; }
  .sf-deal-statement { font-size: clamp(2rem, 3.5vw, 3rem); max-width: 700px; }
  .sf-deal-detail { font-size: 1.15rem; max-width: 600px; }
  .sf-deal-highlight { max-width: 600px; font-size: 1.1rem; }
  .sf-faq-question { font-size: 1.15rem; }
  .sf-faq-answer p { font-size: 1.08rem; }
  .sf-contact h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
  .sf-contact-sub { font-size: 1.08rem; max-width: 540px; }
  .sf-form-max { max-width: 540px; }
}

@media (min-width: 1800px) {
  :root {
    --sf-max: 1240px;
    --sf-max-wide: 1400px;
  }
  .sf-hero { padding: 14rem 0 9rem; }
  .sf-hero h1 { font-size: 5.5rem; }
  .sf-section { padding: 6rem 0; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { font-size: 1.05rem !important; }
  .sf-hero { padding: 5rem 0 4rem; }
  .sf-hero .sub { font-size: 1.1rem; line-height: 1.75; }
  .sf-hero-note { font-size: 0.88rem; }
  .sf-section { padding: 3.5rem 0; }
  .sf-section-label { font-size: 0.75rem; }
  .sf-signal-list li {
    padding: 1.3rem 0.8rem; margin: 0 -0.8rem;
    font-size: 1.08rem; line-height: 1.7;
  }
  .sf-deal-detail { font-size: 1.05rem; }
  .sf-deal-highlight { font-size: 1.05rem; }
  .sf-faq-question { font-size: 1.05rem; min-height: 56px; }
  .sf-faq-answer p { font-size: 1rem; }
  .sf-contact { padding: 3.5rem 0 4.5rem; }
  .sf-contact-sub { font-size: 1.05rem; }
  .sf-form-group label { font-size: 0.88rem; }
  .sf-form-group input,
  .sf-form-group textarea { font-size: 1rem; padding: 0.85rem 1rem; min-height: 50px; }
  .sf-alt-cta { font-size: 0.95rem; padding: 0.8rem 1.3rem; width: 100%; justify-content: center; }
  .sf-alt-cta-row { flex-direction: column; gap: 0.5rem; }
  .sf-cursor-glow { display: none; }
}