/* ============================================================
   MONARCH — PREMIUM POLISH v2 (Cinematic AI Studio)
   Load order: styles.css → premium.css → premium-v2.css
   Revert ("geri al2") removes this file & restores *.bak2 HTML.
   ============================================================ */

/* ---------- Token refinements (v2) ---------- */
:root {
  --bg-base: #04060F;
  --aurora-1: rgba(60, 110, 255, 0.18);
  --aurora-2: rgba(140, 80, 230, 0.14);
  --aurora-3: rgba(0, 180, 255, 0.10);
  --glass-bg: linear-gradient(180deg, rgba(16, 22, 44, 0.55), rgba(10, 14, 28, 0.40));
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(120, 170, 255, 0.20);
  --hairline: rgba(255, 255, 255, 0.05);
  --text-soft: #B7C2DD;
  --text-faint: #7B879F;
  --brand-blue: #6FB1FF;
  --brand-violet: #9A6BFF;
}

/* Cinematic page atmosphere — replaces busy network feel */
body::before {
  background:
    radial-gradient(ellipse 70% 50% at 12% -10%, var(--aurora-1), transparent 65%),
    radial-gradient(ellipse 55% 40% at 88% 8%, var(--aurora-2), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 110%, var(--aurora-3), transparent 65%);
  filter: blur(20px);
}

/* Soften hero canvas + video further; lift grid */
.bg-canvas { opacity: 0.10; }
.bg-video  { opacity: 0.06; filter: blur(4px) saturate(0.7); }

.bg-grid {
  background-image:
    linear-gradient(rgba(140, 170, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 230, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
}

.bg-gradient-mesh {
  background:
    radial-gradient(ellipse 55% 45% at 18% 30%, rgba(60, 110, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 45% 40% at 82% 68%, rgba(140, 80, 230, 0.14), transparent 60%);
  filter: blur(2px);
}

/* Stronger vignette for cinematic feel */
.bg-vignette {
  background:
    linear-gradient(180deg, rgba(4, 6, 15, 0.4) 0%, rgba(4, 6, 15, 0.05) 28%, rgba(4, 6, 15, 0.6) 78%, var(--bg-base) 100%),
    radial-gradient(ellipse at center, transparent 22%, rgba(4, 6, 15, 0.50) 80%);
}

/* ---------- Logo: refined small glow ---------- */
.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(120, 170, 255, 0.20));
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(120, 170, 255, 0.35));
}

.logo-text {
  font-weight: 600;
  letter-spacing: 2.2px;
  font-size: 0.9375rem;
  text-transform: uppercase;
}

.logo-text .logo-suffix {
  color: var(--text-faint);
  font-weight: 500;
}

/* ---------- Typography balance ---------- */
.hero-title {
  letter-spacing: -3px;
  font-weight: 600;
}

.hero-title .gradient-text {
  background: linear-gradient(110deg, #7FB6FF 0%, #3D8FFF 45%, #9A6BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.hero-subtitle {
  color: #A6B2D2;
  font-weight: 400;
}

.section-header h2 { letter-spacing: -1.5px; font-weight: 600; }

/* ---------- Buttons: calmer, more premium ---------- */
.btn-primary {
  background: linear-gradient(135deg, #2D7FFF 0%, #4A8BFF 100%);
  box-shadow:
    0 6px 22px rgba(45, 127, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  box-shadow:
    0 10px 30px rgba(45, 127, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* =============================================================
   NEW: DASHBOARD MOCKUP SECTION
   ============================================================= */
.dashboard-mockup-section {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-16);
}

.dashboard-mockup-section .section-header {
  margin-bottom: var(--s-8);
}

.dashboard-frame {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.65), rgba(8, 12, 26, 0.55));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(120, 170, 255, 0.04) inset;
}

.dashboard-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(120, 170, 255, 0.35), transparent 40%, rgba(154, 107, 255, 0.30));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* Window chrome */
.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(6, 9, 20, 0.6);
}

.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.dashboard-dots span:nth-child(1) { background: rgba(255, 95, 86, 0.55); }
.dashboard-dots span:nth-child(2) { background: rgba(255, 189, 46, 0.55); }
.dashboard-dots span:nth-child(3) { background: rgba(40, 200, 64, 0.55); }

.dashboard-url {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.4px;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
  color: #4ADE80;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dashboard-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  animation: dash-pulse 2.4s ease-in-out infinite;
}

@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Dashboard body grid */
.dashboard-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
}

.dashboard-sidebar {
  padding: 20px 14px;
  border-right: 1px solid var(--hairline);
  background: rgba(6, 9, 20, 0.45);
}

.sidebar-section-label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  padding: 0 12px;
  margin: 14px 0 8px;
}

.sidebar-section-label:first-child { margin-top: 4px; }

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease;
  cursor: default;
}

.sidebar-item svg { width: 14px; height: 14px; opacity: 0.7; }

.sidebar-item.active {
  background: linear-gradient(180deg, rgba(60, 110, 255, 0.18), rgba(60, 110, 255, 0.06));
  color: #E6ECFB;
  border: 1px solid rgba(120, 170, 255, 0.18);
}

.sidebar-item.active svg { opacity: 1; color: var(--brand-blue); }

.sidebar-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
  color: #E6ECFB;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.625rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(60, 110, 255, 0.15);
  color: var(--brand-blue);
  font-family: 'JetBrains Mono', monospace;
}

/* Main panel */
.dashboard-main {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-toolbar h4 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #E6ECFB;
  letter-spacing: -0.2px;
}

.dashboard-toolbar .range {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.dashboard-toolbar .range span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.6875rem;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
}

.dashboard-toolbar .range span.is-active {
  background: rgba(60, 110, 255, 0.18);
  color: var(--brand-blue);
}

/* Metric tiles */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-tile {
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.35));
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.metric-tile .m-label {
  font-size: 0.6875rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.metric-tile .m-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: #F2F5FC;
  letter-spacing: -0.5px;
}

.metric-tile .m-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  color: #4ADE80;
}
.metric-tile .m-delta.neg { color: #FF8C8C; }
.metric-tile .m-delta::before {
  content: '↑';
  font-size: 0.75rem;
}
.metric-tile .m-delta.neg::before { content: '↓'; }

/* Chart area */
.chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.chart-card,
.flow-card {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.35));
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.chart-card h5,
.flow-card h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E6ECFB;
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}

.chart-svg { display: block; width: 100%; height: 140px; }

.chart-legend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.6875rem;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
}

.chart-legend .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.chart-legend .dot.blue   { background: #4A8BFF; box-shadow: 0 0 8px rgba(74, 139, 255, 0.5); }
.chart-legend .dot.violet { background: #9A6BFF; box-shadow: 0 0 8px rgba(154, 107, 255, 0.5); }

/* Flow card (workflow visual) */
.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.flow-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(60, 110, 255, 0.15);
  border: 1px solid rgba(120, 170, 255, 0.22);
  border-radius: 7px;
  color: var(--brand-blue);
}

.flow-icon svg { width: 12px; height: 12px; }

.flow-line {
  width: 1px;
  height: 14px;
  background: linear-gradient(180deg, rgba(120, 170, 255, 0.4), transparent);
  margin-left: 11.5px;
}

.flow-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--text-faint);
}

/* WhatsApp + activity row */
.feed-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feed-card {
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.35));
  border: 1px solid var(--hairline);
  border-radius: 12px;
}

.feed-card h5 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E6ECFB;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-card h5 .wa-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.6);
}

.feed-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.feed-item:last-child { border-bottom: none; }

.feed-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2D7FFF, #9A6BFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.feed-meta { display: flex; flex-direction: column; gap: 2px; }
.feed-meta .feed-name { color: #E6ECFB; font-size: 0.75rem; font-weight: 500; }
.feed-meta .feed-msg { color: var(--text-faint); font-size: 0.6875rem; }

.feed-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: var(--text-faint);
}

.feed-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.22);
  color: #6EE7A8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
}

/* Dashboard mobile fallback */
@media (max-width: 900px) {
  .dashboard-body { grid-template-columns: 1fr; }
  .dashboard-sidebar { display: none; }
  .metric-grid  { grid-template-columns: repeat(2, 1fr); }
  .chart-row,
  .feed-row     { grid-template-columns: 1fr; }
}

/* =============================================================
   NEW: INTEGRATIONS SECTION
   ============================================================= */
.integrations-section {
  position: relative;
  z-index: 5;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-8);
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: var(--s-8);
}

.integration-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.35));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.integration-tile:hover {
  transform: translateY(-3px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 14px 36px rgba(60, 110, 255, 0.10);
}

.integration-tile svg {
  width: 32px;
  height: 32px;
}

.integration-tile span {
  font-size: 0.6875rem;
  color: var(--text-soft);
  letter-spacing: 0.3px;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .integrations-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 540px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   SERVICE CARDS — deeper v2 polish
   ============================================================= */
.service-card {
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.38));
  transition: transform 400ms cubic-bezier(0.2, 0.6, 0.3, 1),
              border-color 400ms ease,
              box-shadow 400ms ease;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(60, 110, 255, 0.10), transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.service-card:hover::after { opacity: 1; }

.service-card:hover {
  border-color: rgba(120, 170, 255, 0.22);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(120, 170, 255, 0.10) inset;
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(60, 110, 255, 0.18), rgba(154, 107, 255, 0.18));
  border: 1px solid rgba(120, 170, 255, 0.22);
  color: #BFD4FF;
  margin-bottom: 18px;
  filter: none;
}

.service-icon svg { width: 20px; height: 20px; stroke-width: 1.5; }

.service-card h3 { font-weight: 600; color: #ECF1FB; }
.service-card p  { color: var(--text-soft); }

.service-tag {
  background: rgba(60, 110, 255, 0.08);
  border-color: rgba(120, 170, 255, 0.18);
  color: var(--brand-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.4px;
}

/* =============================================================
   TRUST METRICS row — case-study feel
   ============================================================= */
.trust-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: var(--s-8);
  margin-bottom: var(--s-10);
}

.trust-metric {
  padding: 22px 20px;
  background: linear-gradient(180deg, rgba(14, 20, 40, 0.55), rgba(8, 12, 26, 0.35));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.trust-metric .tm-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B7C6E8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-metric .tm-label {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.trust-metric .tm-sub {
  margin-top: 4px;
  font-size: 0.6875rem;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .trust-metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .trust-metrics { grid-template-columns: 1fr; }
}

/* =============================================================
   General spacing & glow calmness
   ============================================================= */
.value-card:hover,
.outcome-card:hover,
.testimonial-card:hover,
.trust-item:hover,
.service-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(120, 170, 255, 0.10) inset;
}

.hero-badge {
  background: linear-gradient(180deg, rgba(60, 110, 255, 0.10), rgba(60, 110, 255, 0.03));
  border-color: rgba(120, 170, 255, 0.20);
  color: #BFD4FF;
}

.hero-badge-pulse {
  background: #6FB1FF;
  box-shadow: 0 0 8px rgba(120, 170, 255, 0.6);
}

.gradient-text {
  background: linear-gradient(110deg, #7FB6FF 0%, #3D8FFF 45%, #9A6BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reduce floating glow orbs intensity */
.glow-orb { opacity: 0.15 !important; filter: blur(150px) !important; }

/* Footer subtle hairline */
.footer { border-top: 1px solid var(--hairline); }

/* Page hero ambience — subpages also cinematic */
.page-hero-bg img { opacity: 0.18; filter: blur(3px) saturate(0.85); }
.page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(4, 6, 15, 0.6) 0%, rgba(4, 6, 15, 0.25) 35%, var(--bg-base) 100%),
    radial-gradient(ellipse 60% 50% at 18% 30%, rgba(60, 110, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 82% 70%, rgba(140, 80, 230, 0.10), transparent 60%);
}
