:root {
  --bg: #06080c;
  --bg-2: #090b10;
  --panel: #0b1118;
  --panel-2: #11161d;
  --card: rgba(17, 22, 29, 0.94);
  --deep-gold: #6e5528;
  --line: rgba(110, 85, 40, 0.72);
  --line-soft: rgba(215, 168, 75, 0.2);
  --gold: #d7a84b;
  --gold-2: #f2c76d;
  --weak: #7f8793;
  --red: #c91919;
  --red-2: #e64747;
  --ink: #f6f3ea;
  --muted: #b7bdc7;
  --soft: #151a21;
  --success: #2dbe72;
  --warning: #f0a23b;
  --danger: #e64747;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, #05070b 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(5, 7, 11, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-emblem {
  display: block;
  flex: 0 0 auto;
  width: clamp(126px, 29vw, 156px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 34px;
  place-items: center;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.brand-copy {
  min-width: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav a,
.header-cta,
.language-switch a {
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
.header-cta,
.language-switch a.active,
.language-switch a:hover {
  color: var(--gold-2);
  border-color: var(--line);
  background: rgba(217, 164, 65, 0.08);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.language-switch a {
  min-width: 42px;
  padding: 6px 8px;
  text-align: center;
  font-size: 12px;
}

html[dir="rtl"] .brand,
html[dir="rtl"] .record-head,
html[dir="rtl"] .dialog-head,
html[dir="rtl"] .dashboard-list li {
  flex-direction: row-reverse;
}

html[dir="rtl"] .compliance-notice {
  border-right: 3px solid var(--gold);
  border-left: 0;
  border-radius: 8px 0 0 8px;
  text-align: right;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  --hero-raster: image-set(
    url("assets/dubai-hero-mobile.webp") type("image/webp"),
    url("assets/dubai-hero.png") type("image/png")
  );
  background-image:
    linear-gradient(180deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.56) 70%, var(--bg)),
    url("assets/dubai-910-hero-skyline.svg"),
    linear-gradient(90deg, rgba(5, 7, 11, 0.74), rgba(5, 7, 11, 0.22) 50%, rgba(5, 7, 11, 0.66)),
    var(--hero-raster);
  background-position: center, 52% 100%, center, center;
  background-size: cover, cover, cover, cover;
  background-repeat: no-repeat;
  filter: saturate(1.18) contrast(1.08) brightness(1.1);
}

@media (min-width: 768px) {
  .hero-bg {
    --hero-raster: image-set(
      url("assets/dubai-hero-desktop.webp") type("image/webp"),
      url("assets/dubai-hero.png") type("image/png")
    );
    background-position: center, center bottom, center, center;
  }
}

.hero-bg::before,
.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-bg::before {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(244, 201, 109, 0.32), transparent 10%),
    radial-gradient(ellipse at 51% 86%, rgba(244, 201, 109, 0.3), transparent 18%),
    linear-gradient(90deg, transparent 46%, rgba(244, 201, 109, 0.14) 49.4%, rgba(255, 243, 207, 0.24) 50%, rgba(244, 201, 109, 0.14) 50.6%, transparent 54%);
  mix-blend-mode: screen;
}

.hero-bg::after {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0), rgba(5, 7, 11, 0.55) 78%, var(--bg)),
    radial-gradient(ellipse at 50% 58%, rgba(255, 255, 255, 0.1), transparent 20%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(1320px, calc(100% - 40px));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 78px 0 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) minmax(390px, 500px);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.hero-lead {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-width: 780px;
}

.hero-number {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(11, 17, 24, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-number span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.hero-number strong {
  color: var(--gold-2);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.9;
}

.mobile-hero-contact {
  display: none;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badges span {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.eyebrow {
  margin: 0;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(46px, 5.8vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-title-line {
  display: block;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  overflow-wrap: anywhere;
}

.hero-actions,
.sos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 850;
  text-align: center;
}

.btn.primary {
  color: #12100a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn.danger {
  color: #fff;
  border-color: rgba(255, 93, 79, 0.42);
  background: linear-gradient(135deg, #a20e0c, var(--red));
  box-shadow: 0 12px 32px rgba(213, 34, 32, 0.26);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
}

.contact-strip a {
  padding: 10px 12px;
  color: var(--gold-2);
  background: rgba(9, 12, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.qr-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 8px 10px 8px 8px;
  color: var(--ink);
  background: rgba(9, 12, 18, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-card img {
  display: block;
  width: 58px;
  height: 58px;
  padding: 4px;
  background: #fff;
  border-radius: 6px;
}

.qr-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.qr-card strong {
  color: var(--gold-2);
  font-size: 13px;
  line-height: 1.2;
}

.qr-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.quick-ai,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-ai {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr) minmax(240px, 0.7fr);
  gap: 18px;
  margin-top: 0;
  padding: 20px;
  background: rgba(12, 17, 25, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero .quick-ai {
  width: 100%;
  max-width: 500px;
  justify-self: end;
  grid-template-columns: 1fr;
  margin: 0;
  padding: clamp(16px, 2.6vw, 24px);
  background:
    linear-gradient(180deg, rgba(17, 22, 29, 0.92), rgba(8, 12, 18, 0.88)),
    rgba(8, 12, 18, 0.88);
  border-color: rgba(215, 168, 75, 0.42);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero .quick-ai h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-mark {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(215, 168, 75, 0.25);
}

.scenario-chips {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.scenario-chips::-webkit-scrollbar {
  display: none;
}

.scenario-chips button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 12px;
  color: var(--gold-2);
  background: rgba(217, 164, 65, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 641px) {
  .hero .scenario-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .hero .scenario-chips button {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.hero-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-self: end;
}

.action-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(11, 17, 24, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.action-tile:hover,
.action-tile:focus-visible {
  color: var(--gold-2);
  border-color: rgba(242, 199, 109, 0.55);
  outline: none;
}

.danger-tile {
  color: #fff;
  background: linear-gradient(135deg, rgba(148, 12, 12, 0.94), rgba(201, 25, 25, 0.92));
  border-color: rgba(230, 71, 71, 0.56);
}

.ai-form,
.quote-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  color: #d5d9e0;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.checkline input {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

.form-details {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.form-details summary {
  color: var(--gold-strong);
  font-weight: 800;
}

.form-details[open] summary {
  margin-bottom: 4px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.16);
}

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

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-result {
  align-self: stretch;
  min-height: 100%;
  padding: 16px;
  background: linear-gradient(180deg, rgba(217, 164, 65, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-result strong {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111;
  background: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 850;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 36px 0 28px;
}

.status-strip div,
.service-card,
.package-card,
.task-grid article,
.solution-grid article,
.trust-card-grid article,
.scenario-list,
.sos-card,
.news-card,
.founder-note,
.gallery-item,
.faq-list details,
.admin-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.status-strip div {
  display: grid;
  gap: 3px;
  padding: 18px;
}

.status-strip strong {
  color: var(--gold-2);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
}

.status-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

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

.service-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 8px;
  min-height: 172px;
  padding: 18px;
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  place-items: center;
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border-radius: 8px;
  font-size: 22px;
}

.service-card small {
  color: var(--weak);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 0;
}

.service-card a {
  align-self: end;
  width: max-content;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.service-card p,
.package-card p,
.scenario-list li,
.news-item p,
.founder-note span,
.founder-note small,
.gallery-item p,
.faq-list p {
  color: var(--muted);
}

.compliance-notice {
  margin-top: 16px;
  padding: 12px 14px;
  color: #d5d9e0;
  background: rgba(255, 255, 255, 0.045);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.compliance-notice strong {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compliance-notice p {
  margin: 4px 0 0;
  color: #d5d9e0;
  font-size: 13px;
  line-height: 1.65;
}

.compliance-wide,
.quote-notice {
  max-width: 900px;
}

.quote-notice {
  margin-bottom: 14px;
}

.dark-band {
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - 1180px) / 2));
  padding-left: max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(180deg, rgba(17, 24, 36, 0.42), rgba(5, 7, 11, 0));
  border-top: 1px solid rgba(217, 164, 65, 0.13);
  border-bottom: 1px solid rgba(217, 164, 65, 0.13);
}

.package-tabs,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab,
.package-tabs button {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 850;
}

.tab.active,
.package-tabs button.active {
  color: #111;
  background: var(--gold-2);
  border-color: transparent;
}

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

.package-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 330px;
  padding: 18px;
}

.package-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip.featured {
  color: #161006;
  background: var(--gold-2);
}

.package-card small {
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--gold-2);
  font-size: 28px;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.feature-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--gold);
  border-radius: 99px;
}

.task-config {
  padding-top: 36px;
}

.task-grid,
.solution-grid,
.trust-card-grid {
  display: grid;
  gap: 14px;
}

.task-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.task-grid article,
.solution-grid article,
.trust-card-grid article {
  padding: 18px;
}

.task-grid span,
.solution-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-grid strong,
.trust-card-grid strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.task-grid p,
.solution-grid p,
.trust-card-grid span {
  margin: 8px 0 0;
  color: var(--muted);
}

.resource-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #f0dba8;
  background: rgba(215, 168, 75, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.solution-section {
  display: grid;
  gap: 20px;
}

.solution-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.solution-grid article {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(215, 168, 75, 0.08), rgba(255, 255, 255, 0.035)),
    var(--card);
}

.solution-grid h3 {
  margin-bottom: 8px;
}

.why-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.why-panel,
.flow-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.trust-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-steps {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 14px 14px 58px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  counter-increment: process;
}

.process-steps li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #111;
  background: var(--gold-2);
  border-radius: 8px;
  content: counter(process);
  font-size: 13px;
  font-weight: 950;
}

.process-steps strong {
  color: var(--ink);
}

.process-steps span {
  color: var(--muted);
  font-size: 14px;
}

.sos {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.sos-card {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(213, 34, 32, 0.3), rgba(17, 24, 36, 0.86)),
    var(--card);
}

.sos-card h2 {
  max-width: 680px;
}

.sos-card p {
  max-width: 740px;
  color: #d5d9e0;
}

.scenario-list {
  padding: 22px;
}

.scenario-list ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.quote-form {
  max-width: 860px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-preview {
  padding-top: 36px;
}

.admin-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.admin-tools:empty {
  display: none;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.42fr) auto auto;
  gap: 10px;
  align-items: end;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.retention-tools {
  display: grid;
  gap: 10px;
}

.retention-tools > strong {
  color: var(--gold-2);
}

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

.admin-panel {
  min-height: 240px;
  padding: 18px;
}

.record-grid {
  display: grid;
  gap: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card,
.dashboard-panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric-card strong {
  color: var(--gold-2);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.danger-card strong {
  color: var(--red-2);
}

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

.dashboard-panel {
  padding: 14px;
}

.dashboard-panel h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.dashboard-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-list strong {
  color: var(--gold-2);
}

.empty-mini {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.record {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.status-link {
  color: var(--gold-2);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.request-page {
  min-height: calc(100vh - 180px);
}

.request-lookup {
  margin: 14px 0 18px;
}

.request-result {
  width: min(860px, 100%);
}

.status-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.record-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-actions .btn {
  min-height: 36px;
  padding: 8px 11px;
  font-size: 12px;
}

.timeline {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
}

.timeline span {
  display: block;
}

.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chip {
  display: inline-flex;
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.chip.critical,
.chip.high {
  color: #fff;
  background: var(--red);
}

.chip.medium {
  color: #111;
  background: var(--warning);
}

.chip.low,
.chip.open {
  color: #07110b;
  background: var(--success);
}

.chip.new {
  color: #111;
  background: var(--gold-2);
}

.chip.contacted {
  color: #111;
  background: #8fc7ff;
}

.chip.quoted {
  color: #111;
  background: var(--warning);
}

.chip.payment-recorded {
  color: #07110b;
  background: var(--success);
}

.chip.acknowledged,
.chip.resolved {
  color: #07110b;
  background: var(--success);
}

.cms-editor {
  display: grid;
  gap: 16px;
}

.cms-editor label {
  min-width: 0;
}

.cms-editor textarea {
  min-height: 180px;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.payment-dialog {
  width: min(680px, calc(100% - 24px));
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}

.payment-dialog form {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 20px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 5vw, 36px);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 28px;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.split > div:first-child {
  padding: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.split p {
  color: var(--muted);
}

.legal-page {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 160px);
  align-content: start;
}

.legal-page h1 {
  margin-bottom: 4px;
  font-size: clamp(38px, 9vw, 68px);
}

.legal-page h2 {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: clamp(22px, 5vw, 34px);
}

.legal-page p {
  max-width: 860px;
  color: var(--muted);
}

.founder-note {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding: 16px;
}

.founder-note strong {
  color: var(--gold-2);
}

.founder-note small {
  display: block;
  font-size: 12px;
  line-height: 1.55;
}

.news-card {
  padding: 22px;
}

.news-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.news-tabs button {
  min-height: 40px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-weight: 900;
}

.news-tabs button.active {
  color: #111;
  background: var(--gold-2);
  border-color: transparent;
}

.news-list,
#newsList {
  display: grid;
  gap: 12px;
}

.news-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.news-item time {
  display: block;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.trust-section h3 {
  margin-bottom: 12px;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 16px;
}

.gallery-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.gallery-item,
.faq-list details {
  padding: 16px;
}

.gallery-item strong,
.faq-list summary {
  color: var(--gold-2);
  font-weight: 900;
}

.faq-list summary {
  cursor: pointer;
}

.faq-list p {
  margin-top: 10px;
}

.footer {
  padding: 34px 18px 94px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer strong {
  color: var(--gold-2);
}

.footer p {
  width: min(860px, 100%);
  margin: 8px auto 0;
  font-size: 13px;
}

.footer .footer-notice {
  width: min(860px, 100%);
  margin: 14px auto 0;
  text-align: left;
}

.mobile-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  background: rgba(5, 7, 11, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-nav a {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.mobile-nav .sos-link {
  color: #fff;
  background: var(--red);
}

.empty-state {
  color: var(--muted);
  padding: 30px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  min-width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  h1 {
    font-size: 50px;
  }

  .hero-layout,
  .why-flow {
    grid-template-columns: 1fr;
  }

  .hero .quick-ai {
    grid-template-columns: 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .quick-ai,
  .sos,
  .split {
    grid-template-columns: 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid,
  .status-strip,
  .task-grid,
  .solution-grid,
  .trust-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid,
  .dashboard-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding-bottom: 92px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  .topbar {
    padding: 11px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-emblem {
    width: clamp(118px, 42vw, 146px);
  }

  .header-cta {
    display: none;
  }

  .language-switch a {
    min-width: 36px;
    padding: 6px 7px;
    font-size: 11px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    align-content: start;
    width: calc(100% - 24px);
    gap: 14px;
    padding: 20px 0 28px;
  }

  .hero-layout,
  .hero-lead {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-lead {
    gap: 11px;
  }

  .hero-lead .eyebrow {
    font-size: 11px;
    line-height: 1.35;
  }

  h1 {
    font-size: 29px;
    line-height: 1.04;
  }

  .hero-title-line {
    display: block;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-number {
    grid-template-columns: 1fr auto;
    width: 100%;
    padding: 9px 11px;
  }

  .hero-number strong {
    font-size: 36px;
  }

  .mobile-hero-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .mobile-hero-contact a {
    display: grid;
    min-width: 0;
    min-height: 44px;
    place-items: center;
    overflow: hidden;
    color: #fff;
    background: rgba(11, 17, 24, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-hero-contact a:first-child {
    background: var(--red);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .trust-badges {
    display: none;
  }

  .hero .quick-ai {
    width: 100%;
    max-width: calc(100vw - 24px);
    overflow: hidden;
    padding: 12px;
  }

  .hero .ai-form {
    gap: 10px;
  }

  #quickHelpText {
    min-height: 96px;
    max-height: 112px;
  }

  .hero .quick-ai .form-row {
    grid-template-columns: 1fr;
  }

  .hero .quick-ai h2 {
    font-size: 19px;
  }

  .hero-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-tile {
    min-height: 52px;
    padding: 11px 10px;
    font-size: 14px;
  }

  .contact-strip a,
  .qr-card,
  .hero-actions .btn,
  .sos-actions .btn {
    width: 100%;
  }

  .qr-card img {
    width: 64px;
    height: 64px;
  }

  .quick-ai {
    width: calc(100% - 24px);
    margin-top: 0;
    padding: 16px;
  }

  .section {
    width: calc(100% - 24px);
    padding: 54px 0;
  }

  .dark-band {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .admin-tabs,
  .package-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .admin-tabs::-webkit-scrollbar,
  .package-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab,
  .package-tabs button {
    flex: 0 0 auto;
  }

  .service-grid,
  .package-grid,
  .status-strip,
  .task-grid,
  .solution-grid,
  .trust-card-grid,
  .dashboard-grid,
  .dashboard-columns,
  .trust-grid,
  .retention-grid,
  .filter-row,
  .form-row,
  .form-row.three {
    grid-template-columns: 1fr;
  }

  .admin-panel,
  .quote-form,
  .sos-card,
  .scenario-list,
  .split > div:first-child,
  .news-card,
  .gallery-item,
  .faq-list details {
    padding: 16px;
  }

  .record-actions .btn,
  .filter-row .btn {
    width: 100%;
  }

  .package-card {
    min-height: auto;
  }

  .record-head {
    display: grid;
  }

  .mobile-nav {
    display: grid;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
