/* IDA landing — same tokens as chat + dashboard */
:root {
  --bg: #eef2f4; --surface: #ffffff; --surface-2: #f6f8f9;
  --ink: #0c2233; --ink-2: #44596a; --ink-3: #6f8291;
  --line: #d6dfe5; --line-2: #b9c7d0; --grid: #e7edf0; --road: #e3e9ed;
  --petrol: #0b5b6e; --petrol-d: #084657; --petrol-soft: #e1edf0;
  --amber: #f2a900; --amber-soft: #fff4d6; --amber-ink: #6b4a00;
  --shadow: 0 1px 2px rgba(12,34,51,.06), 0 18px 40px -22px rgba(12,34,51,.35);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a161d; --surface: #0f212b; --surface-2: #132a36;
    --ink: #e5eef2; --ink-2: #a9bcc7; --ink-3: #7f95a2;
    --line: #20394a; --line-2: #2d4c60; --grid: #16303e; --road: #173342;
    --petrol: #2f97ad; --petrol-d: #4fb0c4; --petrol-soft: #123543;
    --amber: #f2b31d; --amber-soft: #2e2510; --amber-ink: #f5cf72;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -22px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a161d; --surface: #0f212b; --surface-2: #132a36;
  --ink: #e5eef2; --ink-2: #a9bcc7; --ink-3: #7f95a2;
  --line: #20394a; --line-2: #2d4c60; --grid: #16303e; --road: #173342;
  --petrol: #2f97ad; --petrol-d: #4fb0c4; --petrol-soft: #123543;
  --amber: #f2b31d; --amber-soft: #2e2510; --amber-ink: #f5cf72;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
       font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 48px); }
.company { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.company svg { stroke: none; }
.company strong { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }

.lang-picker { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px; border-radius: 10px;
            border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14.5px var(--font); cursor: pointer; }
.lang-btn:hover { border-color: var(--line-2); }
.flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; display: inline-flex; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.flag svg { width: 100%; height: 100%; stroke: none; }
.chev { width: 15px; height: 15px; color: var(--ink-3); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; z-index: 10;
             background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
             min-width: 190px; max-height: 360px; overflow: auto; display: none; }
.lang-menu.open { display: block; }
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14.5px; }
.lang-menu li:hover, .lang-menu li:focus { background: var(--surface-2); outline: none; }
.lang-menu li[aria-selected="true"] { font-weight: 600; }

.hero { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(12px, 4vh, 48px) clamp(16px, 4vw, 48px);
        display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.org { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.org .mark { width: 34px; height: 34px; stroke: none; }
h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.18; margin: 18px 0 14px; font-weight: 700; letter-spacing: -.025em; max-width: 16ch; }
.tagline { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); margin: 0 0 30px; max-width: 54ch; }

.entries { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.entry { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 18px;
         background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none;
         transition: border-color .15s, transform .15s; }
.entry:hover { border-color: var(--petrol); }
.entry:active { transform: translateY(1px); }
.e-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--petrol-soft); color: var(--petrol); }
.e-ico svg { width: 23px; height: 23px; }
.entry.primary .e-ico { background: var(--petrol); color: #fff; }
.e-body { display: flex; flex-direction: column; line-height: 1.5; min-width: 0; }
.e-body strong { font-size: 17px; font-weight: 600; }
.e-body span { font-size: 14px; color: var(--ink-2); }
.e-go { font-size: 14px; font-weight: 600; color: var(--petrol); white-space: nowrap; }
.entry.primary .e-go { background: var(--petrol); color: #fff; padding: 8px 14px; border-radius: 9px; }
.entry.primary:hover .e-go { background: var(--petrol-d); }
.langs { font-size: 13.5px; color: var(--ink-3); margin: 16px 0 0; }

/* master plan */
.plan { margin: 0; position: relative; }
.plan-svg { width: 100%; height: auto; display: block; border-radius: 22px; box-shadow: var(--shadow); stroke: none; }
.plan-svg .p { fill: var(--surface); }
.plan-svg .allotted { transform-origin: 320px 279px; animation: allot .7s cubic-bezier(.2,.8,.2,1) .9s both; }
.plan-svg .plots .p { animation: plot .45s ease-out both; }
.plan-svg .plots .p:nth-child(1) { animation-delay: .05s } .plan-svg .plots .p:nth-child(2) { animation-delay: .1s }
.plan-svg .plots .p:nth-child(3) { animation-delay: .15s } .plan-svg .plots .p:nth-child(4) { animation-delay: .2s }
.plan-svg .plots .p:nth-child(5) { animation-delay: .25s } .plan-svg .plots .p:nth-child(6) { animation-delay: .3s }
.plan-svg .plots .p:nth-child(7) { animation-delay: .35s } .plan-svg .plots .p:nth-child(8) { animation-delay: .4s }
.plan-svg .plots .p:nth-child(9) { animation-delay: .45s } .plan-svg .plots .p:nth-child(10) { animation-delay: .5s }
.plan-svg .plots .p:nth-child(11) { animation-delay: .55s } .plan-svg .plots .p:nth-child(12) { animation-delay: .6s }
@keyframes plot { from { opacity: 0; } }
@keyframes allot { from { opacity: 0; transform: scale(.92); } }
.plan-legend { display: flex; gap: 18px; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.plan-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.lg-plot { background: var(--surface); border: 1.4px solid var(--line-2); }
.lg-yours { background: var(--amber-soft); border: 2px solid var(--amber); }

.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
        padding: 16px clamp(16px, 4vw, 48px) 22px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }
.staff { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.staff svg { width: 16px; height: 16px; }
.staff:hover { color: var(--petrol); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .plan { order: -1; max-width: 360px; width: 70%; margin: 0 auto; }
  .plan-legend { display: none; }
  h1 { max-width: none; }
}
@media (max-width: 520px) {
  .plan { display: none; }
  .entry { grid-template-columns: auto 1fr; }
  .e-go { grid-column: 1 / -1; text-align: center; }
  .company strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
