:root {
  --bg: #090a0d;
  --bg-soft: #0d0f13;
  --panel: #101218;
  --panel-2: #14171e;
  --line: rgba(255,255,255,.105);
  --line-strong: rgba(255,255,255,.18);
  --text: #f3f0e9;
  --muted: #9b9da5;
  --muted-2: #70737c;
  --gold: #d6ba78;
  --gold-soft: #f0d99d;
  --green: #8ab9a8;
  --max: 1240px;
  --radius: 26px;
  --shadow: 0 35px 90px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--gold); color: #101010; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 10px;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-shell {
  width: min(var(--max), calc(100% - 48px)); margin: 0 auto;
  height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; letter-spacing: .02em; }
.brand-symbol {
  width: 52px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0;
}
.brand-symbol.small { width: 46px; height: 26px; }
.brand-logo { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.brand-mark { width: 50px; height: 28px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0; }
.brand-logo-document { width: 100%; height: auto; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { font-size: 13px; letter-spacing: .02em; }
.brand-copy small { color: #777981; font-size: 10px; letter-spacing: .04em; }
.brand-name { font-size: 13px; font-weight: 500; letter-spacing: .15em; }
.brand-name strong { color: var(--gold-soft); font-weight: 650; }
.nav-right { display: flex; align-items: center; gap: 38px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-size: 13px; color: #c4c4c7; transition: color .2s ease; }
.main-nav a:hover { color: #fff; }
.language-switch {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,.025); backdrop-filter: blur(12px);
}
.language-switch span { width: 1px; height: 12px; background: var(--line-strong); }
.language-switch button { border: 0; background: transparent; color: var(--muted-2); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 3px; }
.language-switch button.active { color: var(--gold-soft); }

.hero {
  position: relative; min-height: 820px; overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(214,186,120,.08), transparent 36%),
    linear-gradient(180deg, #0b0c10 0%, #090a0d 100%);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 190px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .75; pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; right: -180px; top: 110px; background: radial-gradient(circle, rgba(214,186,120,.105), transparent 68%); }
.hero-glow-two { width: 440px; height: 440px; left: -250px; bottom: 40px; background: radial-gradient(circle, rgba(105,135,161,.09), transparent 69%); }
.hero-shell {
  width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 820px;
  display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(480px, .97fr); gap: 84px; align-items: center;
  padding: 150px 0 88px; position: relative; z-index: 2;
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: #a7a8ad; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 27px; }
.eyebrow-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 5px rgba(214,186,120,.09); }
.hero h1 { margin: 0; font-size: clamp(58px, 6vw, 92px); line-height: .97; letter-spacing: -.055em; font-weight: 560; max-width: 760px; }
.hero h1 span { display: block; }
.hero-accent { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; color: var(--gold-soft); letter-spacing: -.047em; }
.hero-lead { margin: 34px 0 0; max-width: 660px; color: #a9abb1; font-size: 18px; line-height: 1.75; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 37px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 0 21px; border-radius: 999px; font-size: 13px; font-weight: 650; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: #111216; }
.button-primary:hover { background: #fff; }
.button-ghost { border: 1px solid var(--line-strong); color: #d0d1d4; }
.button-ghost:hover { border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.03); }

.hero-stage { position: relative; height: 570px; isolation: isolate; }
.stage-grid {
  position: absolute; inset: 0; opacity: .16; border-radius: 50%;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle, #000 0 45%, transparent 73%);
}
.stage-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(255,255,255,.085); border-radius: 50%; transform: translate(-50%,-50%) rotate(-10deg); }
.orbit-one { width: 490px; height: 270px; }
.orbit-two { width: 350px; height: 510px; transform: translate(-50%,-50%) rotate(36deg); }
.stage-brand-logo {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%,-50%);
  width: 112px; height: auto; display: block; z-index: 1;
  filter: drop-shadow(0 0 28px rgba(214,186,120,.16));
}
.product-card {
  position: absolute; width: 250px; min-height: 86px; padding: 16px 17px; display: grid; grid-template-columns: 48px 1fr 22px; gap: 13px; align-items: center;
  border: 1px solid rgba(255,255,255,.13); border-radius: 20px; background: rgba(18,20,26,.80); backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px rgba(0,0,0,.36); animation: float 7s ease-in-out infinite;
}
.product-card strong { display: block; font-size: 18px; font-weight: 560; margin-top: 4px; }
.product-type { font-size: 9px; color: #777982; letter-spacing: .13em; }
.product-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.product-icon svg { width: 28px; height: 28px; }
.lune-icon { color: #dfe7ec; background: #171d28; }
.qibla-icon { color: #b9d5cc; background: #13201e; }
.facture-icon { color: #ddd1b2; background: #211e17; }
.product-arrow { justify-self: end; color: #666872; font-size: 15px; }
.product-lune { top: 65px; right: 14px; transform: rotate(3deg); }
.product-qibla { top: 250px; left: -16px; transform: rotate(-3deg); animation-delay: -2.2s; }
.product-facture { bottom: 55px; right: 22px; transform: rotate(2deg); animation-delay: -4.3s; }
.stage-label { position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%); text-align: center; width: 100%; }
.stage-label span { display: block; color: #50525a; font-size: 9px; letter-spacing: .18em; margin-bottom: 6px; }
.stage-label strong { color: #85878f; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
@keyframes float { 0%,100% { margin-top: 0; } 50% { margin-top: -9px; } }

.section-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.studio { padding: 115px 0 125px; }
.section-heading { margin-bottom: 55px; }
.split-heading { display: grid; grid-template-columns: 1fr 430px; gap: 90px; align-items: end; }
.section-label { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 720; letter-spacing: .19em; }
.section-heading h2 { margin: 0; font-size: clamp(42px, 4.6vw, 66px); line-height: 1.03; font-weight: 520; letter-spacing: -.045em; }
.section-heading h2 .muted { color: #6e7077; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.section-copy { color: #8e9097; font-size: 16px; line-height: 1.75; margin: 0; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-card { position: relative; min-height: 330px; padding: 36px 38px 38px; border-right: 1px solid var(--line); transition: background .25s ease; }
.service-card:first-child { border-left: 1px solid var(--line); }
.service-card:hover { background: rgba(255,255,255,.018); }
.service-index { color: #4e5058; font-size: 10px; letter-spacing: .14em; }
.service-icon { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 16px; display: grid; place-items: center; color: var(--gold-soft); margin: 68px 0 25px; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin: 0 0 13px; font-size: 20px; font-weight: 560; }
.service-card p { color: #83858d; font-size: 14px; line-height: 1.7; margin: 0; max-width: 300px; }

.apps { padding: 120px 0 128px; background: #0d0f13; border-top: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); }
.apps-heading { display: grid; grid-template-columns: 1fr 430px; gap: 90px; align-items: end; }
.app-list { border-top: 1px solid var(--line-strong); }
.app-row {
  display: grid; grid-template-columns: 70px minmax(380px, 1fr) minmax(260px, .62fr); gap: 28px; align-items: center;
  min-height: 166px; border-bottom: 1px solid var(--line); transition: background .25s ease; padding: 18px 4px;
}
.app-row:hover { background: rgba(255,255,255,.018); }
.app-number { color: #565861; font-size: 11px; letter-spacing: .15em; padding-left: 9px; }
.app-main { display: flex; align-items: center; gap: 23px; }
.large-app-icon { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; flex: 0 0 auto; }
.large-app-icon svg { width: 38px; height: 38px; }
.app-main h3 { font-size: 29px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 8px; font-weight: 540; }
.app-main p { color: #80828a; font-size: 13px; line-height: 1.65; margin: 0; max-width: 540px; }
.app-actions { display: flex; flex-direction: column; align-items: stretch; }
.app-actions a { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 38px; color: #a9abb1; font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s ease; }
.app-actions a:last-child { border-bottom: 0; }
.app-actions a:hover { color: var(--gold-soft); }

.contact { padding: 120px 0; }
.contact-panel {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); min-height: 390px;
  padding: 62px; display: grid; grid-template-columns: 1fr 1fr; gap: 85px; align-items: center;
  background: radial-gradient(circle at 15% 10%, rgba(214,186,120,.08), transparent 35%), linear-gradient(135deg, #111318, #0d0f13);
  box-shadow: var(--shadow);
}
.contact-panel::after {
  content: ""; position: absolute; right: -68px; bottom: -52px; width: 430px; height: 210px; pointer-events: none;
  background: url("/assets/wd-brand.svg") center / contain no-repeat; opacity: .018;
}
.contact-copy { position: relative; z-index: 1; }
.contact-copy h2 { margin: 0 0 20px; font-size: clamp(42px, 4vw, 61px); font-weight: 520; letter-spacing: -.045em; line-height: 1.03; }
.contact-copy > p:last-child { color: #8a8c93; font-size: 15px; line-height: 1.75; max-width: 520px; }
.contact-links { position: relative; z-index: 1; border-top: 1px solid var(--line); }
.contact-links a { position: relative; display: block; padding: 23px 40px 23px 0; border-bottom: 1px solid var(--line); }
.contact-links small { display: block; color: #666871; font-size: 9px; letter-spacing: .17em; margin-bottom: 8px; }
.contact-links strong { font-size: clamp(16px, 2vw, 21px); font-weight: 500; letter-spacing: -.02em; }
.contact-links a > span { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.contact-links a:hover strong { color: var(--gold-soft); }

.site-footer { border-top: 1px solid var(--line); }
.footer-shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 48px 0 42px; display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 50px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand strong { display: block; font-size: 12px; letter-spacing: .13em; }
.footer-brand span:not(.brand-symbol) { display: block; color: #676971; font-size: 11px; margin-top: 5px; }
.footer-business { display: flex; flex-direction: column; gap: 6px; color: #777981; font-size: 11px; line-height: 1.4; }
.footer-links { display: flex; gap: 22px; font-size: 11px; color: #8d8f96; }
.footer-links a:hover { color: var(--gold-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.055); width: min(var(--max), calc(100% - 48px)); margin: 0 auto; min-height: 64px; display: flex; justify-content: space-between; align-items: center; color: #51535b; font-size: 10px; letter-spacing: .04em; }

.legal-page { min-height: 100vh; background: #0b0c10; }
.legal-header { position: relative; }
.legal-main { min-height: calc(100vh - 190px); }
.legal-shell { width: min(850px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 110px; }
.legal-back { display: inline-flex; gap: 10px; color: #797b83; font-size: 12px; margin-bottom: 75px; }
.legal-back:hover { color: var(--gold-soft); }
.legal-shell h1 { margin: 0 0 70px; font-size: clamp(54px, 7vw, 80px); font-weight: 520; letter-spacing: -.055em; line-height: 1; }
.legal-sections { border-top: 1px solid var(--line-strong); }
.legal-sections section { display: grid; grid-template-columns: 190px 1fr; gap: 40px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.legal-sections h2 { margin: 0; font-size: 13px; color: #d5d2ca; font-weight: 620; }
.legal-copy { min-width: 0; }
.legal-sections p { color: #91939a; line-height: 1.75; font-size: 14px; margin: 0 0 17px; }
.legal-sections p:last-child { margin-bottom: 0; }
.legal-sections p strong { color: #e5e2db; font-weight: 550; }
.legal-sections p.legal-note { color: #666971; font-size: 12px; line-height: 1.65; max-width: 620px; }
.legal-sections a { color: #d4c28f; }
.compact-footer .footer-bottom a { color: #7f8188; }
.compact-footer .footer-bottom a:hover { color: var(--gold-soft); }

@media (max-width: 1050px) {
  .hero-shell { grid-template-columns: 1fr; padding-top: 170px; gap: 15px; }
  .hero { min-height: auto; }
  .hero-stage { height: 560px; max-width: 650px; width: 100%; margin: 0 auto; }
  .split-heading, .apps-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-copy { max-width: 660px; }
  .app-row { grid-template-columns: 50px 1fr; }
  .app-actions { grid-column: 2; display: grid; grid-template-columns: repeat(3, max-content); gap: 24px; justify-content: start; padding-bottom: 20px; }
  .app-actions a { border: 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 45px; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-shell, .hero-shell, .section-shell, .footer-shell, .footer-bottom { width: min(100% - 32px, var(--max)); }
  .nav-shell { height: 76px; }
  .main-nav { display: none; }
  .nav-right { gap: 0; }
  .brand-name { font-size: 11px; letter-spacing: .12em; }
  .brand-symbol { width: 46px; height: 26px; }
  .hero-shell { padding: 135px 0 55px; }
  .hero h1 { font-size: clamp(49px, 14.5vw, 68px); }
  .hero-lead { font-size: 16px; line-height: 1.7; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 340px; }
  .button { width: 100%; }
  .hero-stage { height: 500px; margin-top: 20px; transform: scale(.91); transform-origin: top center; }
  .product-card { width: 220px; grid-template-columns: 44px 1fr 18px; }
  .product-icon { width: 44px; height: 44px; }
  .product-lune { right: -6px; }
  .product-qibla { left: -15px; }
  .product-facture { right: -2px; }
  .studio, .apps, .contact { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .section-heading h2 { font-size: 44px; }
  .service-grid { grid-template-columns: 1fr; border: 0; }
  .service-card, .service-card:first-child { border: 1px solid var(--line); border-bottom: 0; min-height: 235px; padding: 28px; }
  .service-card:last-child { border-bottom: 1px solid var(--line); }
  .service-icon { margin: 36px 0 22px; }
  .app-row { grid-template-columns: 34px 1fr; gap: 12px; padding: 26px 0; }
  .app-main { gap: 17px; align-items: flex-start; }
  .large-app-icon { width: 55px; height: 55px; border-radius: 17px; }
  .large-app-icon svg { width: 30px; height: 30px; }
  .app-main h3 { font-size: 24px; }
  .app-actions { grid-template-columns: 1fr; gap: 0; }
  .app-actions a { min-height: 36px; border-bottom: 1px solid rgba(255,255,255,.055); }
  .contact-panel { padding: 36px 27px; min-height: 0; border-radius: 22px; }
  .contact-copy h2 { font-size: 43px; }
  .footer-shell { grid-template-columns: 1fr; gap: 27px; padding: 38px 0 32px; }
  .footer-links { grid-column: auto; flex-wrap: wrap; }
  .footer-bottom { min-height: 70px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 7px; }
  .legal-shell { width: calc(100% - 36px); padding: 60px 0 90px; }
  .legal-back { margin-bottom: 50px; }
  .legal-shell h1 { margin-bottom: 52px; }
  .legal-sections section { grid-template-columns: 1fr; gap: 15px; padding: 30px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
