:root {
  --navy: #071923;
  --navy-2: #0b2635;
  --teal: #149986;
  --teal-bright: #4ae0ce;
  --gold: #b7822e;
  --gold-bright: #f7c861;
  --mist: #eaf7f4;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #10252e;
  --muted: #627178;
  --line: #dce7e4;
  --shadow: 0 18px 45px rgba(7, 25, 35, 0.12);
  font-family: "SF Arabic Rounded", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  direction: ltr;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  direction: ltr;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 12px 28px;
  background: rgba(245, 247, 246, 0.88);
  border-bottom: 1px solid rgba(220, 231, 228, 0.85);
  backdrop-filter: blur(16px);
  direction: ltr;
}

.brand {
  grid-column: 3;
}

nav {
  grid-column: 2;
}

.header-cta {
  grid-column: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: rtl;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "KufiStandardGK", "SF Arabic Rounded", Tahoma, Arial, sans-serif;
  font-size: 18px;
}

.brand small {
  margin-top: 2px;
  color: var(--gold);
  font-family: "DIN Alternate", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-weight: 800;
  direction: rtl;
}

.header-cta,
.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
  border: 1px solid transparent;
  white-space: nowrap;
  direction: rtl;
}

.header-cta,
.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #0b7668);
  box-shadow: 0 12px 26px rgba(20, 153, 134, 0.2);
}

.secondary-button {
  background: rgba(7, 25, 35, 0.34);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 70px 28px 58px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  direction: ltr;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 25, 35, 0.98) 0%, rgba(7, 25, 35, 0.88) 38%, rgba(7, 25, 35, 0.5) 100%),
    radial-gradient(circle at 82% 20%, rgba(74, 224, 206, 0.28), transparent 36%),
    radial-gradient(circle at 78% 78%, rgba(247, 200, 97, 0.14), transparent 32%);
  z-index: 1;
}

.ops-preview {
  position: absolute;
  inset: 72px 42px 42px auto;
  width: min(760px, 62vw);
  min-height: 520px;
  padding: 22px;
  background: rgba(234, 247, 244, 0.08);
  border: 1px solid rgba(234, 247, 244, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.5deg);
  min-width: 0;
  direction: rtl;
}

.preview-top,
.preview-grid,
.preview-panel,
.channel-row,
.trust-strip,
.workflow,
.plans,
.waitlist,
footer {
  display: grid;
}

.preview-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  color: #dff6f1;
  margin-bottom: 14px;
}

.preview-top strong {
  color: var(--gold-bright);
}

.preview-grid {
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  min-width: 0;
}

.preview-panel {
  min-height: 154px;
  min-width: 0;
  padding: 16px;
  align-content: start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.preview-panel p,
.preview-panel span {
  color: var(--muted);
}

.preview-panel p,
.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.preview-panel strong {
  font-size: 22px;
}

.chat-panel {
  min-height: 322px;
  grid-row: span 2;
}

.bubble {
  max-width: 92%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.bubble.customer {
  background: #f3f6f4;
}

.bubble.ai {
  margin-right: auto;
  background: var(--mist);
  border: 1px solid #cbece6;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: #e4ece9;
  border-radius: 999px;
}

.progress i {
  display: block;
  height: 100%;
  background: var(--teal);
}

.channel-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row b {
  color: var(--teal);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin-right: auto;
  text-align: right;
  min-width: 0;
  direction: rtl;
}

.eyebrow {
  color: var(--gold-bright);
  letter-spacing: 0;
}

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

h1 {
  margin-top: 12px;
  font-family: "KufiStandardGK", "SF Arabic Rounded", Tahoma, Arial, sans-serif;
  font-size: clamp(38px, 4.5vw, 62px);
  line-height: 1.22;
  max-width: 760px;
  overflow-wrap: anywhere;
}

.mobile-title {
  display: none;
}

.hero-copy {
  width: min(620px, 100%);
  margin-top: 20px;
  color: #d2dfdc;
  font-size: 21px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  max-width: 1180px;
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0 22px;
  direction: rtl;
}

.trust-strip div {
  min-height: 104px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 22px;
}

.trust-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 22px 0;
  min-width: 0;
  direction: rtl;
}

.section-head {
  margin-bottom: 24px;
}

h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
}

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

.workflow article,
.plans article,
.split,
.waitlist {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.workflow article,
.plans article {
  min-height: 220px;
  padding: 22px;
}

.workflow article span {
  color: var(--gold);
  font-family: "DIN Alternate", "Inter", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.workflow h3,
.plans h3 {
  margin-top: 18px;
  font-size: 22px;
}

.workflow p,
.plans p,
.split p,
.waitlist p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  padding: 32px;
}

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

.arm-list span {
  padding: 12px 14px;
  background: var(--mist);
  border: 1px solid #cbece6;
  color: var(--navy);
  font-weight: 900;
}

.plans article {
  display: grid;
  align-content: start;
}

.plans strong {
  margin-top: 10px;
  color: var(--navy);
  font-size: 32px;
  font-family: "DIN Alternate", "Inter", Arial, sans-serif;
}

.plans .featured {
  border-color: rgba(20, 153, 134, .5);
  background: linear-gradient(180deg, #ffffff, #f1fbf8);
}

.waitlist {
  grid-template-columns: .9fr 1.1fr;
  gap: 32px;
  margin-bottom: 72px;
  padding: 32px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

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

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(20, 153, 134, 0.12);
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 28px;
  color: var(--teal);
  font-weight: 900;
}

.saved-leads {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.saved-leads div {
  padding: 12px;
  background: var(--mist);
  border: 1px solid #cbece6;
}

footer {
  min-height: 96px;
  place-items: center;
  gap: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  direction: rtl;
}

footer img {
  width: 42px;
  height: 42px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 1;
    grid-row: 1;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .ops-preview {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
    margin-top: 36px;
    transform: none;
  overflow: visible;
}

  .hero {
    align-items: start;
  }

  .hero-content {
    order: -1;
  }

  .hero-bg {
    position: relative;
    inset: auto;
    z-index: 2;
  }

  .hero-bg::before {
    display: none;
  }

  .trust-strip,
  .workflow,
  .plans,
  .split,
  .waitlist {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px;
    gap: 10px;
  }

  .brand {
    grid-column: 2;
    justify-self: end;
  }

  .header-cta {
    grid-column: 1;
    justify-self: start;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

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

  .brand > span {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    width: auto;
    min-width: 112px;
    max-width: 42vw;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100vw;
    overflow: hidden;
  }

  h1 {
    font-family: "SF Arabic Rounded", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 32px;
    line-height: 1.35;
    overflow-wrap: normal;
  }

  .desktop-title {
    display: none;
  }

  .mobile-title {
    display: block;
  }

  .hero-copy {
    font-size: 17px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content {
    width: 100%;
    margin-right: 0;
    max-width: 100%;
    overflow: visible;
    text-align: center;
  }

  .hero-content .eyebrow,
  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .preview-grid,
  .trust-strip,
  .workflow,
  .plans,
  .split,
  .waitlist,
  form,
  .arm-list {
    grid-template-columns: 1fr;
    max-width: 100%;
    min-width: 0;
  }

  .ops-preview,
  .preview-top,
  .preview-panel,
  .bubble,
  .channel-row {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .preview-panel,
  .preview-panel * {
    overflow-wrap: anywhere;
  }

  .chat-panel {
    min-height: 260px;
    grid-row: auto;
  }
}
