/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  min-height: 44px;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(14,26,38,0.08), 0 6px 16px -6px rgba(109,198,29,0.45);
}
.btn-primary:hover { background: var(--c-primary-dark); box-shadow: 0 2px 4px rgba(14,26,38,0.1), 0 12px 24px -8px rgba(109,198,29,0.55); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.32); }

.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-border-strong);
}
.btn-outline:hover { background: var(--c-surface-3); border-color: var(--c-ink-3); }

.btn-light {
  background: #fff;
  color: var(--c-secondary);
  border-color: rgba(255,255,255,0.9);
}
.btn-light:hover { background: rgba(255,255,255,0.92); }

.btn-secondary {
  background: var(--c-secondary);
  color: #fff;
  border-color: var(--c-secondary);
}
.btn-secondary:hover { background: var(--c-secondary-2); border-color: var(--c-secondary-2); }

.btn-sm { padding: 9px 16px; font-size: var(--fs-sm); min-height: 36px; }
.btn-lg { padding: 16px 28px; font-size: var(--fs-md); min-height: 52px; }

/* ============ Navbar ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 12px 0;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), padding var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14,26,38,0.85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-color: rgba(255,255,255,0.06);
  padding: 8px 0;
}

/* While the burger menu is open, kill nav effects that create a containing
   block (backdrop-filter, transform on parent). Otherwise position: fixed on
   .nav-links gets re-anchored to the tiny .nav header and the panel clips. */
body.menu-open .nav,
body.menu-open .nav.is-scrolled {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
}
.nav.on-light.is-scrolled {
  background: rgba(255,255,255,0.92);
  border-color: rgba(14,26,38,0.06);
  box-shadow: 0 1px 0 rgba(14,26,38,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav.on-light .brand { color: var(--c-ink); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--c-primary);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px -4px rgba(109,198,29,0.55);
}
.brand-uz {
  display: inline-block;
  color: var(--c-primary);
  font-weight: 800;
}

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.78);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link.is-active { color: var(--c-primary); }
.nav.on-light .nav-link { color: var(--c-ink-3); }
.nav.on-light .nav-link:hover { color: var(--c-ink); background: var(--c-surface-3); }
.nav.on-light .nav-link.is-active { color: var(--c-primary-dark); }

.has-dropdown { position: relative; }
/* Invisible bridge: covers the visual gap between the trigger and the dropdown
   so the hover state isn't lost when the cursor crosses the gap. */
.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%; left: -16px; right: -16px;
  height: 18px;
  pointer-events: auto;
}
@media (max-width: 1080px) {
  .has-dropdown::after { display: none; }
}
.has-dropdown > .nav-link::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast) var(--ease);
  margin-left: 4px; opacity: 0.6;
}
.has-dropdown:hover > .nav-link::after,
.has-dropdown:focus-within > .nav-link::after { transform: rotate(225deg) translateY(2px); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  padding: 8px;
  background: rgba(20,40,58,0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  list-style: none;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.nav.on-light .dropdown { background: #fff; border-color: var(--c-border); }
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: rgba(255,255,255,0.85);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.dropdown a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav.on-light .dropdown a { color: var(--c-ink-2); }
.nav.on-light .dropdown a:hover { background: var(--c-surface-alt); color: var(--c-ink); }
.dropdown-icon {
  flex: none; width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  color: var(--c-primary);
}
.dropdown-icon svg { width: 18px; height: 18px; }
.dropdown-text strong { display: block; font-weight: 600; font-size: 0.95rem; line-height: 1.2; margin-bottom: 2px; color: inherit; }
.dropdown-text span { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.nav.on-light .dropdown-text span { color: var(--c-ink-mute); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 0;
}
.nav.on-light .lang-switch {
  background: var(--c-surface-3);
  border-color: var(--c-border);
}
.lang-btn {
  padding: 6px 11px;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  min-width: 36px;
}
.lang-btn.is-active {
  background: var(--c-primary);
  color: #fff;
}
.nav.on-light .lang-btn { color: var(--c-ink-mute); }

/* Mobile menu */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  align-items: center; justify-content: center;
  color: #fff;
}
.nav.on-light .nav-toggle {
  background: var(--c-surface-3);
  border-color: var(--c-border);
  color: var(--c-ink);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* Close button inside open burger menu (mobile only) */
.nav-close-item {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-close {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav-close:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
}
.nav-close svg { width: 22px; height: 22px; }

/* Mobile-only menu items hidden on desktop */
.nav-mobile-only { display: none; }

/* Mobile lang-switch styling */
.lang-switch-mobile {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  padding: 4px;
}
.lang-switch-mobile .lang-btn {
  padding: 9px 18px;
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-close-item { display: block; }
  .lang-switch-desktop { display: none; }
  .nav-cta-desktop { display: none; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100vw;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 32px;
    background: #0E1A26;
    background-image:
      radial-gradient(ellipse 80% 50% at 100% 0%, rgba(109,198,29,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 0% 100%, rgba(31,56,80,0.5) 0%, transparent 60%);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease);
    gap: 4px;
    margin: 0;
    list-style: none;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-link {
    padding: 16px 18px;
    font-size: 1.05rem;
    border-radius: var(--r-md);
    color: #fff;
  }
  .nav-link:hover { background: rgba(255,255,255,0.06); }
  .has-dropdown > .nav-link::after { margin-left: auto; }
  .dropdown {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: transparent; border: 0; box-shadow: none; backdrop-filter: none;
    padding: 4px 0 4px 16px; min-width: auto;
    display: none;
  }
  .has-dropdown.is-open > .dropdown { display: block; }
  .nav-actions { gap: 8px; }

  /* Show mobile-only items */
  .nav-mobile-only { display: block; padding: 16px 18px 0; }
  .nav-mobile-langs {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-mobile-cta { padding-top: 8px; }
}

@media (max-width: 520px) {
  .lang-btn { padding: 6px 9px; min-width: 32px; }
}

/* ============ Footer ============ */
.footer {
  background: var(--c-secondary);
  color: rgba(255,255,255,0.7);
  padding-block: 80px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; } }
.footer h6 { color: #fff; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  transition: color var(--dur-fast) var(--ease);
}
.footer ul a:hover { color: var(--c-primary); }
.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  max-width: 36ch;
  margin-top: 16px;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem; color: rgba(255,255,255,0.45);
}
.social { display: inline-flex; gap: 8px; }
.social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast) var(--ease);
}
.social a:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }

/* ============ Cards ============ */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
}
.card-glow::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(109,198,29,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
  pointer-events: none;
  border-radius: inherit;
}
.card-glow:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  color: var(--c-primary-dark);
  margin-bottom: 18px;
  transition: all var(--dur-base) var(--ease);
}
.card:hover .card-icon { background: var(--c-primary); color: #fff; }
.card-icon svg { width: 24px; height: 24px; }

.card h3 { margin-bottom: 8px; font-size: 1.18rem; color: var(--c-ink); }
.card p { font-size: 0.96rem; line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px;
  font-weight: 600; font-size: 0.9rem;
  color: var(--c-primary-dark);
  transition: gap var(--dur-fast) var(--ease);
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease); }
.card-link:hover svg { transform: translateX(2px); }

.card-dark {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}
.card-dark:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--c-primary);
  box-shadow: 0 24px 48px -20px rgba(109,198,29,0.18);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.65); }

/* ============ Stat ============ */
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-primary);
  display: inline-block;
}
.stat-label {
  margin-top: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.section:not(.section-dark) .stat-label { color: var(--c-ink-3); }
.section:not(.section-dark) .stat-value { color: var(--c-primary-dark); }

/* ============ Forms ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-required { color: var(--c-danger); font-weight: 700; margin-left: 2px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--c-ink-2); }
.input, .textarea, .select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  min-height: 48px;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(109,198,29,0.14);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.section-dark .input, .section-dark .textarea, .section-dark .select {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}
.section-dark .input::placeholder, .section-dark .textarea::placeholder { color: rgba(255,255,255,0.4); }
.section-dark .field label { color: rgba(255,255,255,0.85); }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-status {
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: var(--r-md);
  display: none;
}
.form-status.is-success { display: block; background: rgba(109,198,29,0.1); color: var(--c-primary-darker); border: 1px solid rgba(109,198,29,0.25); }
.form-status.is-error { display: block; background: rgba(220,38,38,0.08); color: var(--c-danger); border: 1px solid rgba(220,38,38,0.25); }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 14px 18px;
  background: var(--c-secondary);
  color: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.92rem;
  z-index: var(--z-toast);
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

/* ============ Pills / Badges ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(109,198,29,0.18);
}
.section-dark .pill { background: rgba(109,198,29,0.18); color: #BFE988; border-color: rgba(109,198,29,0.3); }

/* ============ Module list ============ */
.module {
  display: flex; gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  transition: all var(--dur-base) var(--ease);
}
.module:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.module-icon {
  flex: none; width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--c-primary-soft);
  display: grid; place-items: center;
  color: var(--c-primary-dark);
}
.module-icon svg { width: 20px; height: 20px; }
.module h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--c-ink); }
.module p { font-size: 0.86rem; line-height: 1.55; color: var(--c-ink-mute); }

/* ============ Feature list ============ */
.feature-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.98rem;
  color: var(--c-ink-2);
}
.section-dark .feature-list li { color: rgba(255,255,255,0.8); }
.feature-list .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-primary);
  display: grid; place-items: center;
  color: #fff; margin-top: 2px;
}
.feature-list .check svg { width: 12px; height: 12px; }

/* ============ Hero (clean, left text + product preview) ============ */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding-block: clamp(140px, 18vw, 220px) clamp(96px, 14vw, 160px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 30%, #000, transparent 80%);
  z-index: -1;
  opacity: 0.6;
}

.hero-content { max-width: 720px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 17ch;
  margin: 24px 0 0;
}
.hero p.lead {
  color: rgba(255,255,255,0.74);
  margin: 28px 0 0;
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.55vw, 1.18rem);
  line-height: 1.6;
}
.hero .eyebrow {
  background: rgba(109,198,29,0.14);
  border-color: rgba(109,198,29,0.3);
  color: #BFE988;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 44px;
}

/* Mobile hero polish: hide preview, stack CTAs, smaller eyebrow */
@media (max-width: 720px) {
  .hero-preview { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-block: clamp(120px, 22vw, 160px) clamp(64px, 14vw, 96px); }

  .hero .eyebrow {
    font-size: 0.62rem;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 32px;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero h1 { max-width: 100%; }
  .hero p.lead { max-width: 100%; }
}

/* Hero 2-col grid (text left, visual right) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ============ Hero product preview (right side, single device frame) ============ */
.hero-preview {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  background: #0E1A26;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 32px 60px -20px rgba(0,0,0,0.55),
    0 8px 24px -8px rgba(109,198,29,0.18),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-preview-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
.hero-preview-dots {
  display: inline-flex; gap: 6px;
}
.hero-preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.hero-preview-dots span:nth-child(1) { background: #FF6058; }
.hero-preview-dots span:nth-child(2) { background: #FFBC2E; }
.hero-preview-dots span:nth-child(3) { background: #28C740; }
.hero-preview-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.hero-preview-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-primary);
}
.hero-preview-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109,198,29,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(109,198,29,0); }
}

.hero-preview-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(109,198,29,0.06), transparent 60%),
    linear-gradient(135deg, #14283A 0%, #0E1A26 100%);
  overflow: hidden;
}

/* Click-to-play button that fills the screen area */
.hero-preview-button,
.hero-preview-screen iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.hero-preview-button img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur-base) var(--ease);
}
.hero-preview-button:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}
.hero-preview-button::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,38,0.15) 0%, rgba(14,26,38,0.55) 100%);
  pointer-events: none;
}

.hero-preview-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: grid; place-items: center;
  box-shadow:
    0 16px 40px -8px rgba(14,26,38,0.6),
    0 0 0 8px rgba(255,255,255,0.08),
    0 0 0 16px rgba(255,255,255,0.04);
  transition: transform var(--dur-base) var(--ease), background var(--dur-base) var(--ease);
}
.hero-preview-button:hover .hero-preview-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--c-primary-dark);
}
.hero-preview-play svg {
  width: 32px; height: 32px;
  margin-left: 5px;
}

@media (max-width: 980px) {
  .hero-preview { max-width: 500px; }
}
@media (max-width: 520px) {
  .hero-preview-title { display: none; }
  .hero-preview-play { width: 72px; height: 72px; }
  .hero-preview-play svg { width: 26px; height: 26px; }
}

/* Hero photo on right */
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-image);
  isolation: isolate;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.hero-photo:hover img { transform: scale(1.04); }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,38,0) 50%, rgba(14,26,38,0.65) 100%);
  pointer-events: none;
}
.hero-photo-card {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  background: rgba(14,26,38,0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  color: #fff;
}
.hero-photo-card-icon {
  flex: none; width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--c-primary);
  display: grid; place-items: center;
  color: #fff;
}
.hero-photo-card-icon svg { width: 20px; height: 20px; }
.hero-photo-card strong { display: block; font-size: 0.96rem; font-weight: 700; line-height: 1.2; }
.hero-photo-card span { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 2px; }

.hero-photo-badge {
  position: absolute; top: 20px; right: 20px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-full);
  background: rgba(109,198,29,0.92);
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px -4px rgba(109,198,29,0.6);
}
.hero-photo-badge::before {
  content: ""; width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.35);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Inline page hero */
.page-hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding-block: clamp(120px, 14vw, 160px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 0%, #000, transparent 80%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 64ch; margin-top: 20px; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 24px; }
.breadcrumbs a { color: rgba(255,255,255,0.7); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: 0.5; }

/* CTA banner */
.cta-banner {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: clamp(36px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
.cta-banner::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 75%);
  z-index: -1;
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-banner p { color: rgba(255,255,255,0.78); margin-top: 14px; max-width: 60ch; }
.cta-banner .hero-cta { margin-top: 28px; }

/* ============ Industry/solution card with image ============ */
.solution-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--dur-base) var(--ease);
  text-decoration: none;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-primary);
}
.solution-card-img {
  aspect-ratio: 16 / 10;
  background: var(--c-secondary);
  display: grid; place-items: center;
  color: var(--c-primary);
  border-bottom: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.solution-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.solution-card:hover .solution-card-img img { transform: scale(1.06); }
.solution-card-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,38,0) 30%, rgba(14,26,38,0.55) 100%);
  pointer-events: none;
}
.solution-card-img > svg {
  position: relative; z-index: 1;
  width: 56px; height: 56px;
}
.solution-card-img-label {
  position: absolute; bottom: 14px; left: 16px; z-index: 2;
  color: #fff; font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.solution-card-body { padding: 24px; }
.solution-card-body h3 { margin-bottom: 8px; font-size: 1.18rem; }
.solution-card-body p { font-size: 0.94rem; line-height: 1.6; color: var(--c-ink-mute); }

/* ============ Tabs ============ */
.tabs {
  display: flex; gap: 4px;
  background: var(--c-surface-3);
  border-radius: var(--r-full);
  padding: 4px;
  margin-bottom: 32px;
  width: fit-content;
}
.tab {
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-ink-mute);
}
.tab.is-active { background: var(--c-primary); color: #fff; }

/* ============ Logo strip ============ */
.logo-strip {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 32px 56px;
}
.logo-strip span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--c-ink-mute);
  letter-spacing: 0.02em;
  opacity: 0.65;
  transition: opacity var(--dur-fast) var(--ease);
}
.logo-strip span:hover { opacity: 1; color: var(--c-secondary); }

/* ============ Term/code block ============ */
.term {
  background: var(--c-secondary);
  color: #BFE988;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: ui-monospace, SFMono-Regular, "Menlo", monospace;
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-x: auto;
}
.term .prompt { color: #94A3B8; user-select: none; }
.term .out { color: rgba(255,255,255,0.72); }

/* ============ Two-column ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.split-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-secondary);
  position: relative;
  display: grid; place-items: center;
  color: var(--c-primary);
  box-shadow: var(--shadow-image);
}
.split-image > svg { width: 96px; height: 96px; position: relative; z-index: 1; }
.split-image img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.split-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,26,38,0) 50%, rgba(14,26,38,0.45) 100%);
  pointer-events: none;
}

/* ============ Map ============ */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--c-surface-3);
}

/* ============ Image utilities ============ */
.img-cover {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* When an Unsplash photo loads, the parent gets .img-ok and we hide the
   placeholder icon. If the photo fails, the icon stays visible. */
.split-image.img-ok > svg,
.split-image.img-ok > i,
.solution-card-img.img-ok > svg,
.solution-card-img.img-ok > i,
.feature-photo.img-ok > svg,
.feature-photo.img-ok > i { display: none; }
