* {
  -webkit-tap-highlight-color: transparent;
}

.brand-logo {
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.brand-logo--xs {
  width: 20px;
  height: 20px;
}

.brand-logo--sm {
  width: 36px;
  height: 36px;
}

.brand-logo--md {
  width: 48px;
  height: 48px;
}

.brand-logo--lg {
  width: 72px;
  height: 72px;
}

.brand-logo--xl {
  width: 96px;
  height: 96px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Dana', system-ui, sans-serif;
  background-color: #ffffff;
  color: #1a1a2e;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--color-brand-rgb), 0.2);
  color: #0f172a;
}

.section-alt {
  background: #f8fafb;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.45;
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.8;
}

.glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #eef2f6;
}

.glass-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.glass-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
  box-shadow: 0 8px 30px -8px rgba(var(--color-brand-rgb), 0.15);
  transform: translateY(-2px);
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(var(--color-brand-rgb), 0.35);
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  box-shadow: 0 4px 20px rgba(var(--color-brand-rgb), 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid #e2e8f0;
  color: #334155;
  background: #ffffff;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.04);
}

.btn-ghost {
  color: #475569;
  font-weight: 500;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--color-brand);
}

.icon-box {
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.15);
}

.feature-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.25s;
}

.feature-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.25);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.08);
}

.terminal {
  background: #1a1a2e;
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  direction: ltr;
  text-align: left;
  box-shadow: 0 20px 60px -15px rgba(26, 26, 46, 0.4);
}

.terminal-header {
  background: #252540;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-body {
  padding: 20px 24px;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #a8b2d1;
}

.terminal-body .prompt {
  color: var(--color-brand);
}

.terminal-body .cmd {
  color: #e8edf5;
}

.terminal-body .hint {
  color: #64748b;
}

.hero-sandbox-wrap {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-sandbox-wrap {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.ai-studio-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 80px -24px rgba(15, 23, 42, 0.55),
    0 0 60px -20px rgba(var(--color-brand-rgb), 0.25);
  background: #0b1220;
  isolation: isolate;
}

.ai-studio-banner__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ai-studio-banner__backdrop picture,
.ai-studio-banner__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.22;
  filter: saturate(1.1) blur(1px);
}

.ai-studio-banner__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(8, 12, 24, 0.97) 0%, rgba(10, 18, 36, 0.92) 38%, rgba(15, 23, 42, 0.78) 62%, rgba(8, 47, 73, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(var(--color-brand-rgb), 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(139, 92, 246, 0.16), transparent 50%);
}

.ai-studio-banner__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 85%);
}

.ai-studio-banner__code {
  position: absolute;
  left: 4%;
  bottom: 8%;
  margin: 0;
  padding: 14px 16px;
  max-width: min(340px, 42vw);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1.65;
  color: #94a3b8;
  white-space: pre-wrap;
  opacity: 0.75;
  display: none;
}

.ai-studio-banner__code .kw { color: #c792ea; }
.ai-studio-banner__code .fn { color: #82aaff; }
.ai-studio-banner__code .str { color: #c3e88d; }

.ai-studio-banner__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.ai-studio-banner__glow--1 {
  width: 220px;
  height: 220px;
  top: -40px;
  right: 12%;
  background: rgba(var(--color-brand-rgb), 0.28);
  animation: ai-studio-glow 7s ease-in-out infinite;
}

.ai-studio-banner__glow--2 {
  width: 180px;
  height: 180px;
  bottom: -30px;
  left: 8%;
  background: rgba(139, 92, 246, 0.2);
  animation: ai-studio-glow 8s ease-in-out infinite reverse;
}

@keyframes ai-studio-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  50% { transform: translate(12px, -8px) scale(1.08); opacity: 1; }
}

.ai-studio-banner__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 28px 24px;
  align-items: center;
}

@media (min-width: 1024px) {
  .ai-studio-banner__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 36px;
    padding: 40px 44px;
  }

  .ai-studio-banner__code {
    display: block;
  }
}

.ai-studio-banner__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .ai-studio-banner__content {
    text-align: right;
  }
}

.ai-studio-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--color-brand-rgb), 0.35);
  background: rgba(var(--color-brand-rgb), 0.12);
  color: #a5f3fc;
  font-size: 0.8rem;
  font-weight: 700;
}

.ai-studio-banner__badge svg {
  color: #67e8f9;
}

.ai-studio-banner__title {
  margin: 0 0 14px;
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.4;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.ai-studio-banner__title-accent {
  display: block;
  background: linear-gradient(90deg, #67e8f9 0%, #a78bfa 48%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-studio-banner__desc {
  margin: 0 0 22px;
  max-width: 34rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.85;
  color: #cbd5e1;
}

@media (min-width: 1024px) {
  .ai-studio-banner__desc {
    margin-inline: 0;
  }
}

.ai-studio-banner__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.ai-studio-banner__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-size: 0.9rem;
  color: #e2e8f0;
}

@media (min-width: 1024px) {
  .ai-studio-banner__features li {
    justify-content: flex-start;
  }
}

.ai-studio-banner__feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #67e8f9;
}

.ai-studio-banner__feature-icon svg {
  width: 1rem;
  height: 1rem;
}

.ai-studio-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

@media (min-width: 1024px) {
  .ai-studio-banner__actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
  }
}

.ai-studio-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-brand) 0%, #0e7490 100%);
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow:
    0 10px 28px -8px rgba(var(--color-brand-rgb), 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ai-studio-banner__cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 14px 36px -8px rgba(var(--color-brand-rgb), 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.ai-studio-banner__stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.ai-studio-banner__stack span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: ui-monospace, 'Courier New', monospace;
  direction: ltr;
}

.ai-studio-banner__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .ai-studio-banner__visual {
    margin-inline: 0 0;
    max-width: none;
  }
}

.ai-studio-banner__mock {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0f172a;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-studio-banner__mock:hover {
  transform: translateY(-3px);
  box-shadow:
    0 30px 70px -18px rgba(0, 0, 0, 0.6),
    0 0 40px -12px rgba(var(--color-brand-rgb), 0.35);
}

.ai-studio-banner__mock-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  color: #94a3b8;
}

.ai-studio-banner__mock-dots {
  display: inline-flex;
  gap: 5px;
}

.ai-studio-banner__mock-dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: block;
  font-style: normal;
}

.ai-studio-banner__mock-dots i:nth-child(1) { background: #f87171; }
.ai-studio-banner__mock-dots i:nth-child(2) { background: #fbbf24; }
.ai-studio-banner__mock-dots i:nth-child(3) { background: #4ade80; }

.ai-studio-banner__mock-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
  font-family: ui-monospace, 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-studio-banner__mock-mode {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(var(--color-brand-rgb), 0.14);
  border: 1px solid rgba(var(--color-brand-rgb), 0.28);
  color: #a5f3fc;
  font-weight: 700;
}

.ai-studio-banner__mock-img {
  display: block;
  width: 100%;
  height: auto;
}

.ai-studio-banner__float {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #67e8f9;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ai-studio-banner__float svg {
  width: 1.15rem;
  height: 1.15rem;
}

.ai-studio-banner__float--1 {
  top: -10px;
  left: -8px;
  animation: float-slow 5s ease-in-out infinite;
}

.ai-studio-banner__float--2 {
  bottom: 16px;
  right: -10px;
  color: #c4b5fd;
  animation: float-slow-delay 6s ease-in-out infinite;
}

@media (max-width: 639px) {
  .ai-studio-banner__mock-bar {
    grid-template-columns: auto 1fr;
  }

  .ai-studio-banner__mock-mode {
    display: none;
  }

  .ai-studio-banner__float {
    display: none;
  }
}

.dashboard-mock {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(var(--color-brand-rgb), 0.15);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 24px 80px -20px rgba(15, 23, 42, 0.14),
    0 0 40px -12px rgba(var(--color-brand-rgb), 0.12);
  overflow: hidden;
  position: relative;
  contain: layout style;
}

.dashboard-mock::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.35), rgba(var(--color-accent-rgb), 0.15), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.dashboard-bar {
  background: linear-gradient(180deg, #f8fafb 0%, #f1f5f9 100%);
  border-bottom: 1px solid #eef2f6;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

@media (min-width: 640px) {
  .dashboard-bar {
    padding: 12px 16px;
    gap: 10px;
  }
}

.dashboard-bar-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.dashboard-bar-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 500;
  overflow: hidden;
}

.dashboard-bar-url span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .dashboard-bar-url {
    font-size: 0.7rem;
    padding: 6px 14px;
  }
}

.dashboard-bar-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a1a2e;
}

.dashboard-body {
  display: flex;
  min-height: 0;
  position: relative;
  z-index: 2;
}

.dashboard-sidebar {
  display: none;
  width: 52px;
  flex-shrink: 0;
  background: #f8fafb;
  border-left: 1px solid #eef2f6;
  padding: 14px 0;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 400px) {
  .dashboard-sidebar {
    display: flex;
  }
}

.dashboard-sidebar-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--color-brand-rgb), 0.2);
}

.dashboard-sidebar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.dashboard-nav-item {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.2s;
}

.dashboard-nav-item svg {
  width: 16px;
  height: 16px;
}

.dashboard-nav-item.is-active {
  background: rgba(var(--color-brand-rgb), 0.12);
  color: var(--color-brand-dark);
  border: 1px solid rgba(var(--color-brand-rgb), 0.2);
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .dashboard-main {
    padding: 18px;
    gap: 12px;
  }
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}

.dashboard-welcome-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: right;
}

.dashboard-welcome-greeting {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a2e;
}

@media (min-width: 640px) {
  .dashboard-welcome-greeting {
    font-size: 0.875rem;
  }
}

.dashboard-welcome-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .dashboard-welcome-sub {
    font-size: 0.7rem;
  }
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: 0.65rem;
}

.live-dot--sm {
  width: 6px;
  height: 6px;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 4px;
}

@media (min-width: 640px) {
  .dashboard-stats {
    gap: 10px;
  }
}

.dashboard-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
  border: 1px solid #eef2f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color 0.2s;
}

.dashboard-stat:hover {
  border-color: rgba(var(--color-brand-rgb), 0.25);
}

.dashboard-stat-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1.2;
  min-width: 3.2rem;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
  .dashboard-stat-value {
    font-size: 1.05rem;
  }
}

.dashboard-stat-label {
  font-size: 0.58rem;
  color: #94a3b8;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .dashboard-stat-label {
    font-size: 0.62rem;
  }
}

.deploy-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s;
}

.deploy-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
}

.badge-success {
  background: rgba(var(--color-brand-rgb), 0.1);
  color: var(--color-brand-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-sale,
.badge-sale-hero {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-sale-hero {
  font-size: 0.8125rem;
  padding: 6px 14px;
}

.sale-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sale-price-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.sale-price-new {
  color: #ef4444;
  font-weight: 800;
  font-size: 0.875rem;
}

.sale-promo-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sale-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.12);
}

.sale-promo-banner__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sale-promo-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sale-promo-banner__text strong {
  color: #1a1a2e;
  font-size: 0.9375rem;
}

.sale-promo-banner__text span {
  color: #64748b;
  font-size: 0.8125rem;
}

.sale-promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ef4444;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

.badge-failed {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.badge-current {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.monitor-bar {
  height: 8px;
  border-radius: 99px;
  background: #eef2f6;
  overflow: hidden;
}

.monitor-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--gradient-brand);
  transition: width 1s ease;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s;
  white-space: nowrap;
}

.tech-pill:hover {
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.04);
}

.logo-marquee {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 50s linear infinite;
  will-change: transform;
}

.logo-track-set {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-shrink: 0;
  padding-inline-end: 2.5rem;
}

.logo-item {
  flex-shrink: 0;
  padding: 10px 24px;
  background: #f8fafb;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.9rem;
  white-space: nowrap;
}

.logo-item--image {
  padding: 12px 16px 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 96px;
  text-align: center;
}

.logo-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 52px;
  overflow: hidden;
}

.logo-item--image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}

.logo-item--image:hover img {
  opacity: 1;
  filter: grayscale(0);
}

.logo-item--image a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
}

.logo-item-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-item--image:hover .logo-item-name {
  color: #334155;
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.stat-number {
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-brand);
  letter-spacing: -0.04em;
}

.news-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s;
}

.news-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.08);
}

/* ── Site footer ── */

.site-footer-brand {
  padding: 4px 0;
}

.site-footer-social {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #eef2f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.site-footer-social:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
  background: rgba(var(--color-brand-rgb), 0.1);
}

.site-footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.site-footer-slot__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
}

.site-footer-slot__box {
  min-height: 120px;
  border-radius: 16px;
  border: 1.5px dashed #e2e8f0;
  background: linear-gradient(180deg, #f8fafb 0%, #ffffff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
}

.site-footer-slot__hint {
  font-size: 0.75rem;
  color: #cbd5e1;
  font-weight: 500;
}

.site-footer-slot__box--active {
  border-style: solid;
  border-color: #eef2f6;
  background: #fff;
}

.site-footer-slot__box--active img {
  display: block;
  max-width: 100%;
  height: auto;
}

#footer-gateway-slot #zibal-trust-badge {
  display: block;
  line-height: 0;
}

/* ── News pages ── */

.news-article-hero {
  height: 200px;
}

@media (min-width: 640px) {
  .news-article-hero {
    height: 260px;
  }
}

.news-article-body p + p {
  margin-top: 1.25rem;
}

.site-page-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.site-page-contact-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.25);
  box-shadow: 0 8px 24px -12px rgba(var(--color-brand-rgb), 0.18);
}

.news-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1.5px solid rgba(var(--color-brand-rgb), 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.news-share-btn:hover {
  background: rgba(var(--color-brand-rgb), 0.14);
  border-color: rgba(var(--color-brand-rgb), 0.4);
}

.news-share-btn.is-copied {
  background: rgba(var(--color-brand-rgb), 0.16);
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
}

.news-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.news-list-item:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
  box-shadow: 0 8px 24px -8px rgba(var(--color-brand-rgb), 0.12);
}

.news-list-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.news-list-item__body {
  flex: 1;
  min-width: 0;
}

.news-list-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.news-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-cover__img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.news-card__cover {
  height: 11rem;
  overflow: hidden;
}

.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card__cover img {
  transform: scale(1.04);
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: #1a1a2e;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 40px -8px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .copy-toast {
    bottom: calc(24px + env(safe-area-inset-bottom, 0));
    max-width: calc(100vw - 32px);
    white-space: normal;
    text-align: center;
  }
}

/* ── Mega Header ── */

.header-mega {
  transition: box-shadow 0.3s;
}

.header-mega.is-scrolled .header-main {
  box-shadow: 0 4px 24px -6px rgba(15, 23, 42, 0.08);
}

.header-mega.mega-open .nav-chevron {
  transform: rotate(180deg);
}

.header-mega.mega-open .nav-mega-btn {
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
}

.header-spacer {
  height: 104px;
}

@media (max-width: 639px) {
  .header-spacer {
    height: 64px;
  }
}

.header-promo {
  position: relative;
  padding: 9px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 168, 132, 0.2);
}

.header-promo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e6faf5 0%, #d4f5ee 35%, #e0f7f2 65%, #e6faf5 100%);
}

.header-promo-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--color-brand-rgb), 0.12), transparent);
  animation: promo-shine 4s ease-in-out infinite;
}

.header-promo-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--color-brand-rgb), 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
}

@keyframes promo-shine {
  0%, 100% { transform: translateX(-100%); opacity: 0; }
  50% { transform: translateX(100%); opacity: 1; }
}

.header-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--color-brand-rgb), 0.25);
  box-shadow: 0 1px 4px rgba(0, 168, 132, 0.1);
}

.header-promo-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
}

.header-promo-text strong {
  color: var(--color-brand-dark);
  font-weight: 800;
}

.header-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-hover));
  box-shadow: 0 2px 8px rgba(var(--color-brand-rgb), 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-promo-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.45);
}

.header-main {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-glow-line {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--color-brand-rgb), 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.header-mega.is-scrolled .header-glow-line,
.header-mega.mega-open .header-glow-line {
  opacity: 1;
}

.header-logo-ring {
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.15), rgba(var(--color-accent-rgb), 0.08));
  border: 1px solid rgba(var(--color-brand-rgb), 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.header-logo:hover .header-logo-ring {
  transform: scale(1.05);
  box-shadow: 0 4px 16px -4px rgba(var(--color-brand-rgb), 0.35);
}

.nav-link,
.nav-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-mega-btn:hover {
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.06);
}

.nav-link.text-brand {
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
}

.nav-chevron {
  transition: transform 0.3s ease;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.15);
  transition: all 0.2s;
}

.header-phone:hover {
  background: rgba(var(--color-brand-rgb), 0.14);
  border-color: rgba(var(--color-brand-rgb), 0.3);
}

.header-cta {
  box-shadow: 0 4px 16px -4px rgba(var(--color-brand-rgb), 0.45);
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.2);
  color: var(--color-brand-dark);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  max-width: 200px;
}

.header-user-btn:hover {
  background: rgba(var(--color-brand-rgb), 0.14);
  border-color: rgba(var(--color-brand-rgb), 0.35);
  color: var(--color-gradient-end);
}

.header-user-btn--block {
  width: 100%;
  max-width: none;
  border-radius: 12px;
  padding: 12px 14px;
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  pointer-events: none;
  visibility: hidden;
  z-index: 40;
}

.mega-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mega-menu-backdrop {
  position: fixed;
  inset: 0;
  top: var(--header-height, 104px);
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s;
}

.mega-menu.is-open .mega-menu-backdrop {
  opacity: 1;
}

.mega-menu-panel {
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.mega-menu.is-open .mega-menu-panel {
  transform: translateY(0);
  opacity: 1;
}

.mega-col-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f6;
  transition: opacity 0.2s;
}

.mega-col-head:hover {
  opacity: 0.8;
}

.mega-col-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
}

.mega-col-icon svg {
  width: 20px;
  height: 20px;
}

.mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #64748b;
  transition: all 0.2s;
}

.mega-link svg {
  width: 15px;
  height: 15px;
  color: var(--color-brand);
  flex-shrink: 0;
}

.mega-link:hover {
  background: rgba(var(--color-brand-rgb), 0.06);
  color: var(--color-brand-dark);
  transform: translateX(-3px);
}

.mega-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef2f6;
  display: flex;
  justify-content: center;
}

.mega-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.2);
  transition: all 0.25s;
}

.mega-footer-cta:hover {
  background: rgba(var(--color-brand-rgb), 0.14);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(var(--color-brand-rgb), 0.3);
}

.mobile-accordion-btn.is-open .mobile-acc-chevron {
  transform: rotate(180deg);
}

/* ── Service Tabs & Panels ── */

.services-layout {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .services-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
}

.services-layout__nav {
  position: relative;
}

@media (min-width: 1024px) {
  .services-layout__nav {
    position: sticky;
    top: calc(var(--header-height, 72px) + 16px);
  }
}

.services-layout__content {
  min-width: 0;
}

.service-mobile-back {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 14px;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid #eef2f6;
  background: #ffffff;
  color: #475569;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.service-mobile-back:hover {
  border-color: rgba(var(--color-brand-rgb), 0.35);
  color: var(--color-brand-dark);
  background: rgba(var(--color-brand-rgb), 0.04);
}

@media (max-width: 1023px) {
  .services-layout__content {
    display: none;
  }

  .services-layout.services-layout--detail .services-layout__nav {
    display: none;
  }

  .services-layout.services-layout--detail .services-layout__content {
    display: block;
  }

  .services-layout.services-layout--detail .service-mobile-back {
    display: inline-flex;
  }
}

.service-tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .service-tabs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-layout .service-tabs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.service-tab-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #eef2f6;
  background: #ffffff;
  text-align: right;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.service-tab-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.06), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-tab-v2:hover {
  border-color: rgba(var(--color-brand-rgb), 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(var(--color-brand-rgb), 0.15);
}

.service-tab-v2.active {
  border-color: var(--color-brand);
  background: rgba(var(--color-brand-rgb), 0.05);
  box-shadow: 0 8px 28px -8px rgba(var(--color-brand-rgb), 0.2);
}

.service-tab-v2.active::before {
  opacity: 1;
}

.service-tab-v2.active .service-tab-v2__icon {
  background: var(--color-brand);
  color: #ffffff;
  border-color: var(--color-brand);
}

.service-tab-v2.active .service-tab-v2__chevron {
  color: var(--color-brand);
  transform: translateX(-3px);
}

.service-tab-v2__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  flex-shrink: 0;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.service-tab-v2__icon svg {
  width: 20px;
  height: 20px;
}

.service-tab-v2__text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.service-tab-v2__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1a2e;
}

.service-tab-v2__desc {
  display: block;
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 2px;
}

.service-tab-v2__chevron {
  width: 16px;
  height: 16px;
  color: #cbd5e1;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s;
  position: relative;
  z-index: 1;
}

.service-panels-wrap {
  position: relative;
  min-height: 280px;
}

@media (min-width: 1024px) {
  .services-layout .service-panels-wrap {
    min-height: 360px;
  }
}

.service-panel {
  display: none;
  border: 1.5px solid #eef2f6;
  border-radius: 20px;
  background: #f8fafb;
  padding: 20px;
  overflow: hidden;
}

.service-panel.active {
  display: block;
  animation: panel-drop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panel-drop {
  from {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
  }
}

.service-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eef2f6;
}

.service-panel-grid .service-card-item {
  animation: card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.service-panel-grid .service-card-item:nth-child(1) { animation-delay: 0.05s; }
.service-panel-grid .service-card-item:nth-child(2) { animation-delay: 0.1s; }
.service-panel-grid .service-card-item:nth-child(3) { animation-delay: 0.15s; }
.service-panel-grid .service-card-item:nth-child(4) { animation-delay: 0.2s; }
.service-panel-grid .service-card-item:nth-child(5) { animation-delay: 0.25s; }
.service-panel-grid .service-card-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
  transform: translateX(0);
}

#mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

#mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* ── Live / Motion ── */

.mesh-bg {
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(var(--color-brand-rgb), 0.07), transparent 60%),
    radial-gradient(ellipse 50% 30% at 80% 10%, rgba(var(--color-accent-rgb), 0.06), transparent 60%),
    #ffffff;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: blob-drift 12s ease-in-out infinite;
}

.blob-1 {
  width: 280px;
  height: 280px;
  background: rgba(var(--color-brand-rgb), 0.12);
  top: 10%;
  right: 5%;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: rgba(var(--color-accent-rgb), 0.1);
  bottom: 15%;
  left: 10%;
  animation-delay: -4s;
}

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--color-brand-rgb), 0.08);
  border: 1px solid rgba(var(--color-brand-rgb), 0.2);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brand-dark);
  margin-bottom: 1.25rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-brand);
  box-shadow: 0 0 0 0 rgba(var(--color-brand-rgb), 0.5);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-brand-rgb), 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(var(--color-brand-rgb), 0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

.stagger-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.float-slow {
  animation: float-y 5s ease-in-out infinite;
}

.float-slow-delay {
  animation: float-y 5s ease-in-out infinite;
  animation-delay: -2.5s;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.icon-wiggle {
  animation: icon-wiggle 3s ease-in-out infinite;
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-4deg) scale(1.04); }
  75% { transform: rotate(4deg) scale(1.04); }
}

.floating-icon {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  animation: float-y 4s ease-in-out infinite;
  z-index: 2;
}

.floating-icon--1 { top: 8%; left: -4%; animation-delay: 0s; }
.floating-icon--2 { top: 45%; right: -3%; animation-delay: -1.2s; }
.floating-icon--3 { bottom: 12%; left: 2%; animation-delay: -2.4s; }

@media (min-width: 1024px) {
  .floating-icon--1 { left: -8%; }
  .floating-icon--2 { right: -6%; }
  .floating-icon--3 { left: 5%; }
}

.dashboard-mock {
  animation: float-y 6s ease-in-out infinite;
}

.services-rotator {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px;
  mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

@media (min-width: 640px) {
  .services-rotator {
    height: 228px;
  }
}

.services-rotator-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  will-change: transform;
}

.service-ticker-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.75rem;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 640px) {
  .service-ticker-card {
    padding: 0 14px;
    grid-template-columns: minmax(0, 1fr) 5rem;
  }
}

.service-ticker-badge {
  justify-self: end;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 0.625rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

@media (min-width: 640px) {
  .service-ticker-badge {
    font-size: 0.7rem;
  }
}

.services-rotator-track.is-animating .service-ticker-card:first-child {
  opacity: 0.55;
  filter: blur(1px);
  transform: scale(0.97);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.service-ticker-card.is-highlight {
  animation: service-pop 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes service-pop {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--color-brand-rgb), 0.4);
    border-color: rgba(var(--color-brand-rgb), 0.5);
    transform: scale(1.02);
  }
  60% {
    box-shadow: 0 0 0 10px rgba(var(--color-brand-rgb), 0);
  }
  100% {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    border-color: #eef2f6;
    transform: scale(1);
  }
}

/* Live icon strips */
.live-icons-wrap {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.live-icons-wrap:hover .live-icons-track {
  animation-play-state: paused;
}

.live-icons-strip {
  overflow: hidden;
  padding: 8px 0;
}

.live-icons-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

.live-icons-track-set {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding-inline-end: 1rem;
}

.live-icons-track--fast {
  animation-duration: 28s;
}

.live-icons-track--slow {
  animation-duration: 52s;
}

.live-icons-track--reverse {
  animation-direction: reverse;
}

.live-icon-cell {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.live-icon-cell:hover {
  transform: scale(1.12) translateY(-3px);
  border-color: rgba(var(--color-brand-rgb), 0.35);
  box-shadow: 0 8px 20px -6px rgba(var(--color-brand-rgb), 0.2);
}

.live-icon-cell svg {
  width: 22px;
  height: 22px;
}

.live-icon-cell--lg {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.live-icon-cell--lg svg {
  width: 28px;
  height: 28px;
}

.tech-marquee .tech-pill {
  flex-shrink: 0;
}

.tech-marquee .live-icons-track-set {
  gap: 0.75rem;
  padding-inline-end: 0.75rem;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--color-brand);
  margin-right: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.monitor-fill {
  position: relative;
  overflow: hidden;
}

.monitor-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.monitor-fill.is-live {
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-number.is-counting {
  transition: transform 0.3s;
}

.ping-value {
  font-variant-numeric: tabular-nums;
}

.deploy-card {
  animation: slide-in-right 0.5s ease backwards;
}

.deploy-card:nth-child(1) { animation-delay: 0.1s; }
.deploy-card:nth-child(2) { animation-delay: 0.25s; }
.deploy-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-card .icon-box {
  transition: transform 0.35s ease;
}

.feature-card:hover .icon-box {
  transform: scale(1.1) rotate(-3deg);
}

.glass-card .icon-box {
  transition: transform 0.35s ease;
}

.glass-card:hover .icon-box {
  transform: scale(1.08);
}

.news-card .news-icon-wrap {
  transition: transform 0.4s ease;
}

.news-card:hover .news-icon-wrap {
  transform: scale(1.15) rotate(5deg);
}

.nav-link .nav-iran-flag,
.mobile-accordion-btn .nav-iran-flag,
a .nav-iran-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

/* ─── Drive (درایو ملی) ─────────────────────────────────────── */
.drive-hero-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--color-brand-rgb), 0.08);
  color: rgb(var(--color-brand-rgb));
  font-size: 12px;
  font-weight: 600;
}

.drive-toolbar {
  margin-bottom: 28px;
}

.drive-search-wrap {
  position: relative;
  margin-bottom: 16px;
}

.drive-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.drive-search-input {
  width: 100%;
  padding: 14px 48px 14px 100px;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.drive-search-input:focus {
  outline: none;
  border-color: rgba(var(--color-brand-rgb), 0.4);
  box-shadow: 0 0 0 3px rgba(var(--color-brand-rgb), 0.08);
}

.drive-search-count {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #94a3b8;
}

.drive-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drive-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  background: #fff;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.drive-cat-btn:hover,
.drive-cat-btn.is-active {
  border-color: rgba(var(--color-brand-rgb), 0.35);
  background: rgba(var(--color-brand-rgb), 0.06);
  color: rgb(var(--color-brand-rgb));
}

.drive-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  .drive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .drive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.drive-card {
  border: 1px solid #eef2f6;
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.drive-card:hover {
  border-color: rgba(var(--color-brand-rgb), 0.3);
  box-shadow: 0 8px 24px -8px rgba(var(--color-brand-rgb), 0.12);
  transform: translateY(-2px);
}

.drive-card-link {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.drive-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.1), rgba(var(--color-brand-rgb), 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgb(var(--color-brand-rgb));
}

.drive-item-icon--lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.drive-item-icon--lg svg {
  width: 28px;
  height: 28px;
}

.drive-card-body {
  flex: 1;
  min-width: 0;
}

.drive-card-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: rgb(var(--color-brand-rgb));
  margin-bottom: 4px;
}

.drive-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.drive-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.drive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
}

.drive-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drive-card-arrow {
  width: 18px;
  height: 18px;
  color: #cbd5e1;
  flex-shrink: 0;
  margin-top: 14px;
  transition: color 0.2s;
}

.drive-card:hover .drive-card-arrow {
  color: rgb(var(--color-brand-rgb));
}

.drive-empty {
  text-align: center;
  padding: 48px 16px;
  color: #94a3b8;
}

.drive-empty p {
  margin-top: 12px;
}

.drive-detail-card {
  border: 1px solid #eef2f6;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.drive-detail-header {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #eef2f6;
}

.drive-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.drive-tag {
  padding: 3px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 11px;
  color: #64748b;
}

.drive-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  padding: 20px 24px 12px;
}

.drive-version-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
  .drive-version-row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.drive-version-row--latest {
  background: rgba(var(--color-brand-rgb), 0.02);
}

.drive-version-info {
  flex: 1;
  min-width: 0;
}

.drive-version-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a2e;
}

.drive-version-actions {
  flex: 1;
  min-width: 0;
}

.drive-cdn-box label,
.drive-snippet-box label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 6px;
}

.drive-copy-row {
  display: flex;
  gap: 8px;
}

.drive-copy-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  font-size: 12px;
  background: #f8fafc;
  color: #475569;
}

.drive-copy-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #eef2f6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
  flex-shrink: 0;
}

.drive-copy-btn:hover {
  border-color: rgba(var(--color-brand-rgb), 0.35);
  color: rgb(var(--color-brand-rgb));
}

.drive-empty-versions {
  text-align: center;
  padding: 40px 24px;
  color: #94a3b8;
}

.drive-empty-versions p {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
}
