:root {
  --bg: #f4f8fc;
  --surface-low: #edf2f7;
  --surface: #ffffff;
  --surface-high: #e6edf5;
  --surface-top: #d6e0ee;
  --text: #22303f;
  --text-muted: #617082;
  --outline: #b3becc;
  --primary: #3a679a;
  --primary-deep: #294d78;
  --neutral: #667487;
  --shadow: 0 18px 50px rgba(31, 54, 86, 0.08);
  --max-width: 1440px;
}

/* Logo refresh guard: keep transparent marks unboxed even if older CSS was cached before. */
.logo-showcase {
  overflow: visible;
  width: min(100%, 300px);
  max-width: 300px;
  margin: 0 auto 4px;
  padding: 18px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.logo-showcase img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 102, 140, 0.12));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(58, 103, 154, 0.09), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(102, 137, 186, 0.12), transparent 18%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 42%, #eef3f9 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 252, 0.96);
  border-bottom: 1px solid rgba(179, 190, 204, 0.2);
  backdrop-filter: blur(10px);
}

.header-inner,
.hero-inner,
.studio-inner,
.section-head,
.philosophy-section,
.site-footer .footer-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.22rem;
  font-weight: 700;
}

.wordmark {
  color: #07182c;
  line-height: 1;
}

.wordmark img {
  display: block;
  width: 180px;
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(34, 48, 63, 0.78);
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.footer-column a:hover {
  color: var(--primary);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.header-cta {
  min-height: 46px;
  padding: 0 22px;
  background: var(--primary);
  color: #eef6ff;
  box-shadow: 0 12px 24px rgba(58, 103, 154, 0.18);
}

.header-cta:hover,
.button:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 870px;
  padding: 112px 0 72px;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(214, 224, 238, 0.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 224, 238, 0.8) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.42;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-head h2,
.philosophy-intro h2 {
  margin: 0;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.hero-copy h1 {
  font-size: clamp(3.8rem, 9vw, 8rem);
  margin-bottom: 32px;
}

.hero-text,
.studio-copy p,
.studio-status p,
.section-text,
.philosophy-intro p,
.principles p,
.product-card p,
.structure-grid p,
.footer-note,
.footer-end p {
  color: var(--text-muted);
}

.hero-text {
  max-width: 640px;
  margin: 0 0 36px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 58px;
  padding: 0 28px;
}

.button-primary {
  background: var(--primary);
  color: #eef6ff;
  box-shadow: 0 16px 28px rgba(58, 103, 154, 0.18);
}

.button-secondary {
  background: var(--surface-high);
  color: var(--text);
  border: 1px solid rgba(179, 190, 204, 0.26);
}

.hero-frame {
  display: flex;
  justify-content: flex-end;
}

.frame-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 520px;
  padding: 48px;
  border: 1px solid rgba(179, 190, 204, 0.34);
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(10px);
  box-shadow: 0 26px 60px rgba(31, 54, 86, 0.08);
}

.frame-content {
  height: 100%;
  border: 0.5px solid rgba(58, 103, 154, 0.24);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(235, 242, 249, 0.88));
}

.logo-showcase {
  width: min(100%, 260px);
  max-width: 260px;
  margin: 0 auto 4px;
  padding: 18px 10px;
}

.logo-showcase img {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 102, 140, 0.12));
}

.frame-corners {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--primary);
}

.frame-corner-top-left {
  top: 0;
  left: 0;
  border-top: 1px solid var(--primary);
  border-left: 1px solid var(--primary);
}

.frame-corner-top-right {
  top: 0;
  right: 0;
  border-top: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}

.frame-corner-bottom-left {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--primary);
  border-left: 1px solid var(--primary);
}

.frame-corner-bottom-right {
  bottom: 0;
  right: 0;
  border-bottom: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}

.frame-stat span,
.footer-column span {
  display: block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.frame-stat strong {
  display: block;
  max-width: 10ch;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.frame-list {
  display: grid;
  gap: 10px;
}

.frame-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.products-section,
.structure-section {
  background: var(--surface-low);
  padding: 120px 0;
}

.studio-section {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(179, 190, 204, 0.18);
  border-bottom: 1px solid rgba(179, 190, 204, 0.18);
}

.studio-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(320px, 5fr);
  gap: 72px;
  align-items: center;
}

.studio-copy h2 {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.subbrand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.subbrand-lockup img {
  flex: 0 0 84px;
  width: 84px;
  max-width: 84px;
  height: auto;
  object-fit: contain;
}

.subbrand-lockup .eyebrow,
.subbrand-lockup h2 {
  margin-bottom: 0;
}

.studio-copy > p {
  max-width: 680px;
  margin: 0 0 32px;
  font-size: 1.02rem;
}

.studio-status {
  max-width: 680px;
  margin-bottom: 34px;
  padding: 26px 28px;
  background: var(--surface-low);
  border-left: 3px solid var(--primary);
}

.studio-status span {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.studio-status strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.04em;
}

.studio-status p {
  margin: 0;
  font-size: 0.92rem;
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.studio-device {
  display: flex;
  justify-content: center;
}

.phone-shell {
  position: relative;
  width: min(100%, 380px);
  padding: 14px;
  border: 1px solid rgba(34, 48, 63, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(145deg, #243448 0%, #0d1825 100%);
  box-shadow: 0 34px 80px rgba(31, 54, 86, 0.24);
}

.phone-speaker {
  width: 74px;
  height: 5px;
  margin: 4px auto 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
}

.phone-screen {
  min-height: 640px;
  padding: 28px 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #faf4e7 0%, #fffaf0 58%, #edf2e8 100%);
  color: #123326;
  overflow: hidden;
}

.app-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topline span {
  color: #4f8065;
  font-weight: 700;
}

.app-topline strong {
  color: #776f62;
  font-weight: 700;
}

.app-stage {
  margin-bottom: 18px;
  font-size: 2.45rem;
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.video-preview {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 300px;
  margin-bottom: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(6, 21, 15, 0.2), rgba(6, 21, 15, 0.84)),
    linear-gradient(135deg, #365f49 0%, #0d2a1f 100%);
  color: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.12);
}

.arabic-line {
  font-size: 2.6rem;
  font-weight: 700;
  text-align: right;
}

.translation-line {
  max-width: 14ch;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.control-stack {
  display: grid;
  gap: 10px;
}

.control-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  background: #fffbf2;
  border: 1px solid #e2d8c9;
}

.control-stack span {
  color: #776f62;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.control-stack strong {
  font-size: 0.86rem;
  text-align: right;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 72px;
}

.section-head h2,
.philosophy-intro h2 {
  font-size: clamp(2.3rem, 4.6vw, 4.2rem);
}

.section-text {
  max-width: 520px;
  margin: 0;
  text-align: right;
}

.products-grid,
.structure-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(179, 190, 204, 0.22);
  border: 1px solid rgba(179, 190, 204, 0.24);
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: var(--surface);
  min-height: 400px;
  transition: background-color 180ms ease;
}

.product-card:hover {
  background: #f8fbff;
}

.card-icon {
  margin-bottom: 48px;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.08em;
}

.product-logo {
  display: flex;
  align-items: flex-start;
  margin-bottom: 36px;
}

.product-logo img {
  width: 72px;
  max-width: 72px;
  height: auto;
  object-fit: contain;
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  letter-spacing: -0.05em;
}

.product-card p {
  margin: 0 0 28px;
  font-size: 0.92rem;
}

.product-card a {
  margin-top: auto;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.philosophy-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 96px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.divider {
  width: 96px;
  height: 1px;
  background: var(--primary);
  margin: 28px 0;
}

.principles {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.principles article {
  display: flex;
  gap: 28px;
}

.principles span {
  color: rgba(173, 179, 180, 0.9);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.08em;
  transition: color 180ms ease;
}

.principles article:hover span {
  color: var(--primary);
}

.principles h3,
.structure-grid h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.principles p,
.structure-grid p {
  max-width: 540px;
  margin: 0;
}

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

.structure-grid article {
  min-height: 220px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(179, 190, 204, 0.18);
  box-shadow: var(--shadow);
}

.structure-logo {
  display: block;
  width: 56px;
  max-width: 56px;
  height: auto;
  margin-bottom: 22px;
  object-fit: contain;
}

.site-footer {
  background: var(--surface-low);
  border-top: 1px solid rgba(34, 48, 63, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0;
}

.footer-brand {
  margin: 0 0 22px;
}

.footer-brand img {
  width: 220px;
  max-width: 220px;
  height: auto;
}

.footer-note,
.footer-end p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-column a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(34, 48, 63, 0.84);
}

.footer-end {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .hero-inner,
  .studio-inner,
  .philosophy-section,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner,
  .studio-inner,
  .philosophy-section {
    gap: 56px;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .section-text {
    text-align: left;
  }

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

  .footer-end {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .hero-inner,
  .studio-inner,
  .section-head,
  .philosophy-section,
  .site-footer .footer-grid,
  .products-grid,
  .structure-grid {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-nav {
    display: none;
  }

  .hero-section,
  .studio-section,
  .products-section,
  .structure-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .hero-copy h1 {
    font-size: 3.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .frame-shell {
    padding: 22px;
    min-height: auto;
  }

  .frame-content {
    padding: 20px;
  }

  .wordmark img {
    width: 132px;
    max-width: 132px;
  }

  .frame-stat strong {
    max-width: none;
    font-size: 1.6rem;
  }

  .phone-shell {
    border-radius: 28px;
  }

  .phone-screen {
    min-height: 560px;
    padding: 24px 18px;
  }

  .studio-actions {
    flex-direction: column;
  }

  .subbrand-lockup {
    gap: 16px;
  }

  .subbrand-lockup img {
    flex-basis: 58px;
    width: 58px;
    max-width: 58px;
  }

  .products-grid,
  .structure-grid {
    grid-template-columns: 1fr;
  }

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

  .principles article {
    gap: 18px;
  }

  .principles span {
    font-size: 2rem;
  }
}
