/* ============================================================
   STREAM CORE LLC — strmcore.com
   Main Stylesheet
   ============================================================ */

/* ========== RESET & ROOT ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #060B18;
  --bg-2:        #0B1120;
  --bg-3:        #111827;
  --card:        rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --cyan:        #00D4FF;
  --indigo:      #6366F1;
  --green:       #10B981;
  --text:        #F1F5F9;
  --muted:       #94A3B8;
  --radius:      12px;
  --ease:        0.25s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; }

a { text-decoration: none; }

img, svg { display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
  background: linear-gradient(130deg, var(--cyan) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(130deg, var(--cyan), var(--indigo));
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.28);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  letter-spacing: 0.01em;
}
.btn-ghost:hover { color: var(--cyan); }

.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 22px 0;
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 11, 24, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 14px 0;
  border-color: var(--card-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo / Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-accent { color: var(--cyan); }

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: 28px; padding: 10px 20px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-2);
  border-top: 1px solid var(--card-border);
  padding: 12px 24px 20px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  color: var(--muted);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--card-border);
  transition: color var(--ease);
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover { color: var(--text); }

.mobile-menu .btn {
  margin-top: 12px;
  align-self: flex-start;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Background effects */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.orb-1 {
  width: 640px; height: 640px;
  background: rgba(0, 212, 255, 0.11);
  top: -160px; right: -120px;
}
.orb-2 {
  width: 480px; height: 480px;
  background: rgba(99, 102, 241, 0.1);
  bottom: -80px; left: 15%;
}
.orb-3 {
  width: 300px; height: 300px;
  background: rgba(0, 212, 255, 0.07);
  top: 30%; left: -60px;
}

/* Hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 100px 28px 80px;
}

.hero-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 510px;
  margin-bottom: 36px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  background: linear-gradient(130deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Dashboard Visual ---- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-card {
  background: var(--bg-3);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.04),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.card-secondary {
  padding: 20px 24px;
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.dash-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #27C93F; }

.dash-title {
  margin-left: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  flex: 1;
}

.live-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Metrics row */
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--card-border);
}

.metric { text-align: center; }

.metric-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-change {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
}
.metric-change.up { color: var(--green); }

/* Bar chart */
.dash-chart {
  margin-bottom: 16px;
}

.chart-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.bar-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 0 2px;
}

.bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(0,212,255,0.6) 0%, rgba(99,102,241,0.4) 100%);
  border-radius: 3px 3px 0 0;
  transition: opacity 0.3s;
}
.bar:hover { opacity: 0.85; }
.bar.bar-highlight {
  background: linear-gradient(180deg, var(--cyan) 0%, var(--indigo) 100%);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}

.bar-day {
  font-size: 0.65rem;
  color: var(--muted);
}

/* Channel tags */
.dash-channels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.channel {
  padding: 3px 11px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--muted);
  cursor: pointer;
  transition: var(--ease);
  user-select: none;
}
.channel:hover { border-color: rgba(0,212,255,0.3); color: var(--text); }
.channel.active {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.35);
  color: var(--cyan);
  font-weight: 600;
}

/* Mini metric (card-secondary) */
.mini-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.mini-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cyan);
}
.mini-score.safe { color: var(--green); }

.mini-bar-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--indigo));
  border-radius: 100px;
}
.mini-bar-fill.danger { background: #EF4444; }

/* ========== SECTION COMMON ========== */
.section { padding: 110px 0; }

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title { margin-bottom: 18px; }

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ========== FADE-IN ANIMATION ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SERVICES ========== */
.services-section { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 8px 36px rgba(0, 212, 255, 0.07);
}

.service-card.featured {
  background: linear-gradient(145deg, rgba(0,212,255,0.07), rgba(99,102,241,0.07));
  border-color: rgba(0, 212, 255, 0.2);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: linear-gradient(130deg, var(--cyan), var(--indigo));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-link {
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 600;
  transition: letter-spacing var(--ease);
}
.service-link:hover { letter-spacing: 0.03em; }

/* ========== WHY STREAMCORE ========== */
.why-section { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.why-card {
  padding: 36px 32px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color var(--ease), transform var(--ease);
}

.why-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-3px);
}

.why-num {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(130deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.why-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ========== CONTACT ========== */
.contact-section { background: var(--bg-2); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-tag { margin-bottom: 18px; }
.contact-info h2 { margin-bottom: 16px; }

.contact-info > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Form */
.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-3);
  color: var(--text);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}

.footer-inner {
  display: flex;
  gap: 80px;
  padding: 64px 28px;
  align-items: flex-start;
}

.footer-logo { margin-bottom: 14px; }

.footer-brand > p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 220px;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 60px;
  margin-left: auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-domain {
  color: rgba(0, 212, 255, 0.5) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .contact-inner { gap: 52px; }
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 80px 28px 60px;
    text-align: center;
  }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 28px; }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
    padding: 48px 28px;
  }
  .footer-links { margin-left: 0; }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 540px) {
  .services-grid { gap: 16px; }
  .why-grid { gap: 16px; }
  .service-card, .why-card { padding: 24px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 60px; height: 1px; }
  .footer-links { flex-direction: column; gap: 32px; }
}
