/* workwave.mkw.group — Work Wave landing
 * Visual identity: bright white + Work Wave cyan + navy anchor + mono numerals.
 * Distinct direction: crisp / digital / coworking-app feel.
 * Sharp 6px corners + mono numerals = software-tooling vibe (foreshadowing the upcoming 3-portal app).
 */

:root {
  --bg-white:    #FFFFFF;
  --bg-soft:     #F5F8FB;     /* whisper-blue cool tint */
  --bg-mute:     #ECF1F6;
  --cyan:        #00B8FF;     /* Work Wave brand cyan (sampled from the W logo) */
  --cyan-deep:   #0091CC;     /* hover / press */
  --cyan-soft:   rgba(0, 184, 255, 0.10);
  --navy:        #0F2547;     /* logo drop-shadow navy */
  --navy-deep:   #0A1B36;
  --ink:         #0F2547;
  --ink-soft:    #4A5876;
  --ink-muted:   #768499;
  --line:        rgba(15, 37, 71, 0.10);
  --line-strong: rgba(15, 37, 71, 0.18);
  --radius:      6px;
  --radius-lg:   8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-white);
  color: var(--ink);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}
body[lang="en"] { font-family: 'Inter', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.mono { font-family: 'JetBrains Mono', 'Inter', monospace; font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }

/* ── Floating language toggle ── */
.lang-toggle-floating {
  position: fixed;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 100;
  background: var(--navy);
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(15, 37, 71, 0.18);
  transition: transform 0.18s, background 0.18s;
}
.lang-toggle-floating:hover { transform: translateY(-2px); background: var(--navy-deep); }

/* ── Section header helpers ── */
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--cyan);
  margin-bottom: 1.2rem;
}
body[lang="ar"] .kicker { letter-spacing: 0.04em; }

.section-title {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
body[lang="ar"] .section-title { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; }

/* ── HERO ── */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-white) 100%);
  padding: clamp(6rem, 11vw, 8.5rem) 1.25rem clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; inset-inline-end: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -160px; inset-inline-start: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(15, 37, 71, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
  position: relative;
}

.hero-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-mark-frame {
  width: clamp(140px, 22vw, 200px);
  aspect-ratio: 1 / 1;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 24px 48px -24px rgba(0, 184, 255, 0.35);
  position: relative;
}
.hero-mark-frame::before,
.hero-mark-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--cyan);
}
.hero-mark-frame::before { top: -7px; inset-inline-start: -7px; border-right: 0; border-bottom: 0; }
.hero-mark-frame::after  { bottom: -7px; inset-inline-end: -7px; border-left: 0; border-top: 0; }
.hero-mark-img {
  width: 100%; height: auto; object-fit: contain;
}
.hero-mark-rule {
  width: 36px; height: 2px; background: var(--cyan);
}
.hero-mark-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.hero-content { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  margin-bottom: 1.4rem;
}
body[lang="ar"] .hero-eyebrow { letter-spacing: 0.02em; }
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 184, 255, 0.08); }
}

.hero-title {
  font-family: 'Inter', 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 5.2vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1.1rem;
}
body[lang="ar"] .hero-title { font-family: 'Cairo', sans-serif; font-weight: 800; letter-spacing: 0; }

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.82;
  color: var(--ink-soft);
  margin: 0 0 1.85rem;
  max-width: 38rem;
}

.hero-ctas { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s, border-color 0.18s;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 14px 32px -12px rgba(0, 184, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--cyan-deep); color: #FFF; box-shadow: 0 20px 40px -12px rgba(0, 184, 255, 0.65); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--navy); color: var(--bg-white); border-color: var(--navy); }

/* ── ABOUT (asymmetric layout) ── */
.about {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.25rem;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 230px) 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.about-side {
  border-inline-start: 2px solid var(--cyan);
  padding-inline-start: 1rem;
}
.meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.meta-row:last-child { border-bottom: 0; }
.meta-key {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}
body[lang="ar"] .meta-key { letter-spacing: 0.02em; }
.meta-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.about-body-text {
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
}

/* ── SERVICES ── */
.services {
  background: var(--bg-soft);
  padding: clamp(4rem, 8vw, 6rem) 1.25rem;
  position: relative;
}
.services-inner { max-width: 70rem; margin: 0 auto; }
.services-header { text-align: center; margin-bottom: 3rem; }
.services-subtitle {
  color: var(--ink-soft);
  margin-top: 0.4rem;
  font-size: 1rem;
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.2rem;
}
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline-start: 0;
  width: 36px; height: 3px;
  background: var(--cyan);
  border-radius: var(--radius) 0 var(--radius) 0;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(15, 37, 71, 0.25);
  border-color: var(--cyan);
}
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}
.service-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
}
.service-icon svg { width: 1.35rem; height: 1.35rem; stroke-width: 1.8; }
.service-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}
.service-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

/* ── COPY (Work Wave Copy sub-brand strip) ── */
.copy-strip {
  background: var(--navy);
  color: var(--bg-white);
  padding: clamp(3.5rem, 7vw, 5rem) 1.25rem;
}
.copy-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: center;
}
.copy-mark {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  box-shadow: 0 24px 48px -24px rgba(0, 184, 255, 0.4);
}
.copy-mark img { width: 100%; height: auto; }
.copy-body { min-width: 0; }
.copy-kicker {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.copy-title {
  color: var(--bg-white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.85rem;
}
.copy-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 1.5rem;
}
.btn-secondary-inline {
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-secondary-inline:hover {
  background: var(--cyan);
  color: var(--navy-deep);
  border-color: var(--cyan);
}

/* ── APP TEASER ── */
.app-teaser {
  padding: clamp(4rem, 8vw, 6rem) 1.25rem;
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-inner { max-width: 70rem; margin: 0 auto; }
.app-header { text-align: center; margin-bottom: 3rem; }
.app-kicker {
  background: var(--cyan-soft);
  border-bottom: 0;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.7rem;
}
.app-title {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin-top: 1rem;
}
.app-lead {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 42rem;
  margin: 0 auto;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.2rem;
}
.portal-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.portal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -24px rgba(15, 37, 71, 0.18);
  border-color: var(--cyan);
}
.portal-card::after {
  content: '';
  position: absolute;
  top: 1rem; inset-inline-end: 1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
.portal-num {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.portal-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.portal-icon svg { width: 1.4rem; height: 1.4rem; }
.portal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}
.portal-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.portal-soon {
  display: inline-block;
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  width: fit-content;
}

/* ── CONTACT ── */
.contact {
  background: var(--bg-soft);
  color: var(--ink);
  padding: clamp(4rem, 8vw, 6rem) 1.25rem;
  position: relative;
}
.contact-inner {
  max-width: 60rem;
  margin: 0 auto;
  text-align: center;
}
.contact-kicker {
  color: var(--cyan-deep);
  border-bottom-color: var(--cyan);
}
.contact-title { color: var(--navy); }
.contact-lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.85;
  margin: 0 auto 2rem;
  max-width: 38rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
body[lang="ar"] .contact-label { letter-spacing: 0.02em; }
.contact-num {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.45rem 0;
  transition: color 0.18s;
}
.contact-num svg { color: var(--cyan-deep); flex-shrink: 0; }
.contact-num:hover { color: var(--cyan-deep); }

.contact-meta {
  text-align: start;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.contact-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.contact-meta-row:last-child { border-bottom: 0; }
.contact-meta-key {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 90px;
}
body[lang="ar"] .contact-meta-key { letter-spacing: 0; }
.contact-meta-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-meta-val.mono { font-weight: 500; }

.channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  background: var(--cyan-soft);
  color: var(--cyan-deep);
  border: 1px solid transparent;
  margin-inline-end: 0.35rem;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.channel-btn:hover {
  background: var(--cyan);
  color: var(--navy-deep);
  transform: translateY(-2px);
}
.channel-btn svg { width: 1.1rem; height: 1.1rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.25rem 1.25rem 1.85rem;
  text-align: center;
}
.endorsement {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  max-width: 92vw;
}
.endorsement:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}
.endorsement-line {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}
.inline-mkw-logo {
  display: inline-block;
  height: 1.7em;
  width: auto;
  margin: 0 0.4em;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  object-fit: contain;
}
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.85rem;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── reveal-on-scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── responsive (mobile-first guards) ── */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-mark { order: -1; }
  .hero-mark-frame { width: 130px; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .copy-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .copy-mark { width: clamp(140px, 36vw, 200px); aspect-ratio: 1/1; margin-inline-end: auto; }
  body[lang="ar"] .copy-mark { margin-inline-start: 0; margin-inline-end: auto; }
}
@media (max-width: 480px) {
  .lang-toggle-floating { padding: 7px 14px; font-size: 12px; }
  .hero { padding-top: 5rem; }
  .hero-title { font-size: 1.85rem; }
  .section-title { font-size: 1.55rem; }
  .meta-row { padding: 0.5rem 0; }
  .contact-meta-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .contact-meta-key { min-width: 0; }
}

/* iOS auto-zoom prevention on form/input focus (no form here, but keep base 16px) */
html { font-size: 16px; }
