/* ==========================================================================
   Sequenzo Enterprise Cinematic Design System (v29)
   Self-contained, zero dependency on uncompiled Tailwind classes.
   ========================================================================== */

@keyframes sqFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

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

/* 1. Enterprise Cinematic Hero (No poster image ghost text!) */
.hp-hero.sq-cinematic-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 18%, rgba(14, 165, 233, 0.25), transparent 62%),
    radial-gradient(800px 500px at 12% 85%, rgba(3, 105, 161, 0.32), transparent 65%),
    linear-gradient(135deg, #061325 0%, #0b2540 55%, #0d3258 100%) !important;
  color: #f8fafc !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16) !important;
}

.sq-hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sq-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  mix-blend-mode: screen;
}

.sq-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.sq-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse at 60% 45%, #000 35%, transparent 80%);
}

.hp-hero.sq-cinematic-hero > .mx-auto {
  position: relative;
  z-index: 2;
}

.hp-hero.sq-cinematic-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc !important;
}

.hp-hero.sq-cinematic-hero .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.hp-hero.sq-cinematic-hero h1,
.hp-hero.sq-cinematic-hero .text-background {
  color: #ffffff !important;
}

.hp-hero.sq-cinematic-hero p,
.hp-hero.sq-cinematic-hero .hp-hero-bullets li {
  color: #dbeafe !important;
  opacity: 0.92;
}

.hp-hero.sq-cinematic-hero .hp-hero-secondary {
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}
.hp-hero.sq-cinematic-hero .hp-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #7dd3fc !important;
}

.sq-hero-mockup-wrap {
  position: relative;
  will-change: transform;
  transition: transform 0.12s ease-out;
}

.sq-hero-mockup-wrap .hp-hero-mockup__window {
  background: #ffffff !important;
  color: #0b2540 !important;
  border: 1px solid rgba(125, 211, 252, 0.35) !important;
  box-shadow: 0 28px 64px -16px rgba(2, 10, 24, 0.65) !important;
}

.sq-hero-mockup-wrap .hp-hero-mockup__popup {
  animation: sqFloat 5s ease-in-out infinite;
  box-shadow: 0 20px 44px -10px rgba(2, 10, 24, 0.5) !important;
}

/* 2. Enterprise Interactive Feature Showcase */
.sq-showcase-sec {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-bottom: 1px solid #dbe8f4;
}

.sq-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sq-sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.25rem;
}

.sq-sec-head h2 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--foreground);
}

.sq-sec-head p {
  margin-top: 0.75rem;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.sq-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.sq-tab-pill {
  appearance: none;
  border: 1px solid #cfe0f0;
  background: #ffffff;
  color: #0b2540;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(11, 37, 64, 0.04);
}

.sq-tab-pill:hover {
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
}

.sq-tab-pill.is-active {
  background: #0369a1;
  border-color: #0369a1;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(3, 105, 161, 0.45);
}

.sq-stage-card {
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 16px 40px -16px rgba(11, 37, 64, 0.12);
}

.sq-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  animation: sqFadeIn 0.3s ease both;
}

@media (min-width: 900px) {
  .sq-panel {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 2.75rem;
  }
}

.sq-panel.is-active {
  display: grid;
}

.sq-panel-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 6px;
}

.sq-panel h3 {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0b2540;
}

.sq-panel p {
  margin-top: 0.75rem;
  font-size: 15.5px;
  line-height: 1.65;
  color: #334e68;
}

.sq-panel-list {
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.sq-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #1e3a5f;
  font-weight: 500;
}

.sq-panel-box {
  background: #f8fbff;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  padding: 1.35rem;
}

.sq-terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid #dbe8f4;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #0b2540;
}

.sq-badge-ok {
  background: #dcfce7;
  color: #15803d;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.sq-kv-list {
  display: grid;
  gap: 0.65rem;
}

.sq-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2edf8;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  color: #334e68;
}

.sq-kv-row strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #0369a1;
}

.sq-kv-row--highlight {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  font-weight: 600;
}

/* 3. Enterprise Responsive Dashboard Preview (Fixed SVG & Grid!) */
.sq-dash-sec {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.sq-dash-controls {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cfe0f0;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(11, 37, 64, 0.05);
}

.sq-vp-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #334e68;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sq-vp-btn:hover {
  background: #f0f7ff;
  color: #0369a1;
}

.sq-vp-btn.is-active {
  background: #0b2540;
  color: #ffffff;
}

.sq-sim-btn {
  appearance: none;
  border: 0;
  background: #0369a1;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
  transition: background 0.15s ease, transform 0.1s ease;
}

.sq-sim-btn:hover {
  background: #075985;
  transform: translateY(-1px);
}

.sq-dash-window {
  margin: 2rem auto 0;
  width: 100%;
  max-width: 100%;
  background: #0b2540;
  color: #f8fafc;
  border-radius: 22px;
  border: 1px solid #1e3a5f;
  box-shadow: 0 28px 60px -18px rgba(11, 37, 64, 0.35);
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sq-dash-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: #081c33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sq-dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Strictly constrain SVG logo so it NEVER blows up to 600px! */
.sq-dash-logo {
  display: block !important;
  height: 24px !important;
  width: auto !important;
  max-width: 130px !important;
  object-fit: contain;
}

.sq-dash-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.sq-dash-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.sq-dash-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px;
}

@media (min-width: 680px) {
  .sq-dash-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sq-dash-kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
}

.sq-dash-kpi__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.sq-dash-kpi__val {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
}

.sq-dash-kpi__sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.sq-dash-table-wrap {
  padding: 0 24px 24px;
}

.sq-dash-thread {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(6, 19, 37, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 10px;
}

.sq-dash-thread__title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.sq-dash-thread__email {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  margin-left: 8px;
}

.sq-dash-thread__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
}

/* 4. Enterprise Blog Showcase Grid (Strictly sized 16:9 thumbnails!) */
.sq-blogs-sec {
  padding: 3.5rem 0 4.5rem;
  background: #f5faff;
  border-top: 1px solid #dbe8f4;
  border-bottom: 1px solid #dbe8f4;
}

.sq-blogs-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2rem;
}

.sq-blogs-header h2 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  font-weight: 800;
  color: #0b2540;
}

.sq-blogs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

.sq-blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dbe8f4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px -4px rgba(11, 37, 64, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sq-blog-card:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
  box-shadow: 0 18px 34px -12px rgba(3, 105, 161, 0.18);
}

.sq-blog-card__thumb {
  display: block;
  width: 100%;
  height: 196px;
  overflow: hidden;
  background: #e0f2fe;
  position: relative;
}

.sq-blog-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.35s ease;
}

.sq-blog-card:hover .sq-blog-card__thumb img {
  transform: scale(1.04);
}

.sq-blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sq-blog-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
}

.sq-blog-card__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0b2540;
}

.sq-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.sq-blog-card__title a:hover {
  color: #0369a1;
}

.sq-blog-card__excerpt {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #486581;
  flex: 1;
}

.sq-blog-card__link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0369a1;
  text-decoration: none;
}
