/* ============================================================
   StreamX.Services — Main Stylesheet
   No tracking, no third-party scripts embedded.
   ============================================================ */

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

:root {
  --ink:      #0a0e1a;
  --ink-mid:  #1c2340;
  --ink-soft: #3a4460;
  --body:     #5a6480;
  --border:   #dde2f0;
  --bg:       #f4f6fb;
  --white:    #ffffff;
  --accent:   #ff6b2b;       /* orange — CTA */
  --accent2:  #0d52ff;       /* electric blue — brand */
  --accent2-light: #e8effe;
  --grad-start: #0a0e1a;
  --grad-end:   #1a2a6c;
  --radius:   14px;
  --radius-sm: 8px;
  --shadow:   0 4px 24px rgba(10,14,26,0.10);
  --shadow-lg:0 12px 48px rgba(10,14,26,0.18);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  padding-bottom: 80px; /* room for mobile call bar */
}

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1;
}

.logo-accent { color: var(--accent); }
.logo-domain { color: rgba(255,255,255,0.45); font-weight: 500; font-size: 0.95rem; }

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

.desktop-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}

.desktop-nav a:hover { color: var(--white); }

.header-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 20px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.header-cta:hover { background: #e85d20; transform: scale(1.03); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(255,107,43,0.35);
}

.btn-primary:hover {
  background: #e85d20;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255,107,43,0.45);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn-large  { padding: 15px 32px; font-size: 1rem; }
.btn-xl     { padding: 18px 44px; font-size: 1.1rem; }

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255,107,43,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(255,107,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,43,0); }
}
.pulse { animation: pulse-ring 2.2s infinite; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2a6c 60%, #0d1b3e 100%);
  overflow: hidden;
  padding: 80px 0 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(13,82,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255,107,43,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(13,82,255,0.2);
  color: #7eb3ff;
  border: 1px solid rgba(13,82,255,0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.headline-accent {
  background: linear-gradient(90deg, #ff6b2b, #ff9e5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}

/* Hero visual — fake terminal/error card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(13,82,255,0.15);
}

.screen-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #1a2233;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #27c93f; }

.screen-label {
  margin-left: 8px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  font-family: monospace;
}

.screen-body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 59, 59, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255,59,59,0.3);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
}

.screen-code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  width: 100%;
}

.screen-arrow {
  font-size: 1.5rem;
  color: var(--accent);
  align-self: center;
}

.fix-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(39,201,63,0.15);
  color: #4ddf6a;
  border: 1px solid rgba(39,201,63,0.3);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  animation: fadeInUp 0.5s ease 0.3s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-wave {
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--bg);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 40px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 88px 0; }
.section-alt { background: var(--bg); }

.section-label {
  display: inline-block;
  background: var(--accent2-light);
  color: var(--accent2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--body);
  max-width: 560px;
  margin-bottom: 52px;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 320px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step-num {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--accent2);
  background: var(--accent2-light);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}

.step p { font-size: 0.9rem; line-height: 1.65; }

.step-arrow {
  font-size: 1.5rem;
  color: var(--border);
  padding-top: 60px;
  flex-shrink: 0;
}

/* ============================================================
   FIX GRID
   ============================================================ */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.fix-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.fix-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--accent2);
}

.fix-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}

.fix-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.fix-card p { font-size: 0.875rem; line-height: 1.65; }

.fix-cta { text-align: center; }

/* ============================================================
   WHY GRID
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}

.why-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.why-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.why-icon-wrap {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.why-card p { font-size: 0.875rem; line-height: 1.65; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--bg); }
.faq-q.open  { color: var(--accent2); }

.faq-arrow {
  font-size: 0.7rem;
  color: var(--body);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-q.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
}

.faq-a.open { display: block; }
.faq-a p { font-size: 0.9rem; line-height: 1.7; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, #0a0e1a 0%, #1a2a6c 60%, #0d1b3e 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(13,82,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  position: relative;
}

.final-cta p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-note {
  margin-top: 18px !important;
  font-size: 0.82rem !important;
  color: rgba(255,255,255,0.35) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   MOBILE FIXED CALL BAR
   ============================================================ */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 16px;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-call-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 20px;
  border-radius: 12px;
  width: 100%;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 18px rgba(255,107,43,0.45);
  animation: pulse-ring 2.2s infinite;
}

.mobile-call-link:active {
  background: #e85d20;
  transform: scale(0.98);
}

.call-icon { font-size: 1.2rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .fix-grid  { grid-template-columns: repeat(2, 1fr); }
  .why-grid  { grid-template-columns: repeat(2, 1fr); }
  .steps     { flex-direction: column; align-items: stretch; }
  .step-arrow { display: none; }
  .step      { max-width: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 90px; }

  .desktop-nav { display: none; }
  .header-cta  { display: none; }
  .header-inner { justify-content: space-between; }

  .hero { padding: 56px 0 0; }
  .hero-inner { padding-bottom: 48px; }
  .hero-headline { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn-primary { display: none; }
  .final-cta .btn-white { display: none; }
  .final-cta .cta-note { display: none; }
  .hero-trust { flex-direction: column; gap: 8px; }

  .stats-inner { gap: 0; }
  .stat { padding: 12px 20px; }
  .stat-num { font-size: 1.6rem; }
  .stat-divider { height: 36px; }

  .section { padding: 60px 0; }
  .section-sub { margin-bottom: 36px; }

  .fix-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }

  /* Show mobile call bar */
  .mobile-call-bar { display: block; }

  /* Hide in-page CTA buttons on mobile so the bar is the primary action */
  .fix-cta { display: none; }
}

@media (max-width: 420px) {
  .stat-divider { display: none; }
  .stats-inner  { justify-content: flex-start; gap: 0; }
  .stat         { padding: 10px 16px; flex-basis: 50%; }
}
