/* EcoBio DCC — precision green-tech */
:root {
  --night: #06140f;
  --night-2: #0a1f18;
  --night-3: #11302a;
  --paper: #ffffff;
  --mint: #f2f8ee;
  --mint-2: #e4efdd;
  --lime: #83cf01;
  --lime-2: #a8e63d;
  --leaf: #5c9f00;
  --forest: #0b4a1a;
  --solar: #ffb020;
  --hydro: #2fd3e0;
  --text: #0c1a14;
  --text-2: #3d4f46;
  --text-3: #66776e;
  --on-dark: #eaf5ec;
  --on-dark-2: rgba(234, 245, 236, .72);
  --on-dark-3: rgba(234, 245, 236, .5);
  --line: rgba(12, 26, 20, .1);
  --line-strong: rgba(12, 26, 20, .2);
  --line-dark: rgba(234, 245, 236, .12);
  --danger: #c0392b;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 80px;
  --shadow: 0 1px 2px rgba(6, 20, 15, .06), 0 18px 40px -18px rgba(6, 20, 15, .25);
  --glow: 0 0 0 1px rgba(131, 207, 1, .25), 0 18px 50px -18px rgba(131, 207, 1, .55);
  --grid-dark: linear-gradient(rgba(234, 245, 236, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(234, 245, 236, .05) 1px, transparent 1px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[lang="ar"] {
  --font-display: 'Readex Pro', 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Readex Pro', system-ui, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { line-height: 1.85; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[dir="rtl"] .link-arrow .icon, [dir="rtl"] .btn .icon-flip { transform: scaleX(-1); }
.skip-link { position: absolute; inset-inline-start: 16px; top: -80px; z-index: 200; background: var(--lime); color: var(--night); padding: 10px 18px; border-radius: var(--pill); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); isolation: isolate; }

/* ---------- backgrounds ---------- */
.section-light { background: radial-gradient(rgba(12, 26, 20, .07) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--paper); }
.section-mint { background: radial-gradient(900px 420px at 90% 0%, rgba(131, 207, 1, .14), transparent 60%), var(--mint); }
.section-dark, .hero, .page-hero, .project-hero, .stats-band, .metrics-band, .site-footer {
  color: var(--on-dark);
  background: radial-gradient(900px 600px at 8% 0%, rgba(131, 207, 1, .16), transparent 60%), radial-gradient(900px 700px at 100% 100%, rgba(47, 211, 224, .12), transparent 60%), linear-gradient(180deg, var(--night), var(--night-2));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grid-dark); background-size: 56px 56px; -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 75%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; }
.section-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-dark); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 16px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; text-transform: none; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow-light { color: var(--lime); }
.kicker { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--pc, var(--lime)); }
html[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-2); max-width: 60ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 50px); }
.section-lead { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 62ch; }
.section-dark .section-lead { color: var(--on-dark-2); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.section-head.split .section-lead { max-width: 44ch; margin-top: 0; }
.fine-print { font-size: 13px; color: var(--on-dark-3); margin-top: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--forest); text-decoration: none; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(4px); }
.link-light { color: var(--lime); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: var(--pill); border: 1px solid transparent; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--lime-2), var(--lime)); color: var(--night); box-shadow: 0 10px 26px -12px rgba(131, 207, 1, .8); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost { background: rgba(234, 245, 236, .05); color: var(--on-dark); border-color: rgba(234, 245, 236, .28); }
.btn-ghost:hover { background: rgba(234, 245, 236, .12); border-color: var(--on-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(6, 20, 15, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }
.main-nav { display: none; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--text-2); border-radius: var(--pill); transition: color .2s, background-color .2s; }
.main-nav a:hover { color: var(--text); background: var(--mint); }
.main-nav a[aria-current="page"] { color: var(--forest); background: var(--mint-2); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .2s, background-color .2s; }
.lang-toggle:hover { border-color: var(--forest); background: var(--mint); }
.lang-toggle[lang="ar"] { font-family: 'Readex Pro', 'Segoe UI', sans-serif; }
.lang-toggle[lang="en"] { font-family: 'Space Grotesk', 'Inter', sans-serif; }
.lang-code { display: none; }
.header-cta { display: none; }
.menu-btn { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .brand img { height: 48px; }
  .lang-full { display: none; }
  .lang-code { display: inline; }
  .lang-toggle { padding: 0 11px; }
}
@media (min-width: 1080px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; }
}
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 55; background: var(--paper); padding: 20px var(--gutter) 28px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; animation: drop .3s var(--ease); }
.admin-bar .mobile-menu { top: calc(var(--header-h) + 46px); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 16px 4px; font-family: var(--font-display); font-size: 24px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu nav a[aria-current="page"] { color: var(--leaf); }
.mobile-menu-foot { display: grid; gap: 10px; margin-top: 24px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.hero-copy h1 { font-size: clamp(36px, 4.7vw, 62px); font-weight: 700; }
html[lang="ar"] .hero-copy h1 { font-size: clamp(32px, 4.3vw, 54px); }
.hero-copy h1 em { font-style: normal; background: linear-gradient(100deg, var(--lime-2), var(--lime) 45%, var(--hydro)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { margin-top: 22px; }
.hero-copy .btn-row { margin-top: 34px; }
.hero-visual { position: relative; min-height: 320px; order: -1; margin-inline: calc(var(--gutter) * -1); }
.hero-chip { position: absolute; display: none; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--pill); font-size: 13.5px; font-weight: 500; color: var(--on-dark); background: rgba(10, 31, 24, .55); border: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: float 7s ease-in-out infinite; z-index: 2; }
.hero-chip-0 { top: 8%; inset-inline-end: 4%; }
.hero-chip-1 { top: 46%; inset-inline-start: 0; animation-delay: -2.4s; }
.hero-chip-2 { bottom: 6%; inset-inline-end: 10%; animation-delay: -4.6s; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 2.2s var(--ease) infinite; }
.hero-chip-0 .pulse, .hero-chip-0 .pulse::after { background-color: var(--hydro); border-color: var(--hydro); }
.hero-chip-0 .pulse::after { background: none; }
.hero-chip-1 .pulse { background: var(--solar); }
.hero-chip-1 .pulse::after { border-color: var(--solar); }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
@media (min-width: 640px) { .hero-chip { display: inline-flex; } }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 40px; min-height: min(700px, calc(100vh - var(--header-h) - 60px)); }
  .hero-visual { order: 0; min-height: 540px; margin-inline: 0; }
}

/* ---------- 3D scenes ---------- */
.scene { position: absolute; inset: 0; }
.scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .9s var(--ease); touch-action: pan-y; }
.scene.is-3d canvas { opacity: 1; }
.scene-fallback { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; object-fit: contain; transition: opacity .6s var(--ease); }
.scene.is-3d .scene-fallback { opacity: 0; }

/* ---------- stats ---------- */
.stats-band, .metrics-band { position: relative; padding-block: 40px 44px; border-top: 1px solid var(--line-dark); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--r-lg); overflow: hidden; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 24px; background: rgba(6, 20, 15, .92); }
.stats dt { color: var(--on-dark-2); font-size: 14.5px; }
.stats dd { margin: 0; font-family: 'Space Grotesk', var(--font-display); font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; line-height: 1; letter-spacing: -.03em; background: linear-gradient(180deg, #fff, var(--pc, var(--lime-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .stats dd { text-align: end; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- services ---------- */
.service-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service-card::after { content: ""; position: absolute; inset-inline-end: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--sc, rgba(131, 207, 1, .25)), transparent 70%); transition: transform .5s var(--ease); }
.service-card:hover { transform: translateY(-6px); border-color: rgba(131, 207, 1, .45); }
.service-card:hover::after { transform: scale(1.4); }
.service-ai { --sc: rgba(47, 211, 224, .28); }
.service-studio { --sc: rgba(255, 176, 32, .28); }
.service-num { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-3); }
.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--forest), #13702a); color: var(--lime-2); box-shadow: 0 10px 24px -12px rgba(11, 74, 26, .8); }
.service-ai .service-icon { background: linear-gradient(135deg, #0c3a44, #0f5e6a); color: var(--hydro); }
.service-studio .service-icon { background: linear-gradient(135deg, #4a3208, #7a5210); color: var(--solar); }
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { font-size: 23px; }
.service-card p { color: var(--text-2); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tag-list li { padding: 6px 12px; border-radius: var(--pill); background: var(--mint); font-size: 13.5px; font-weight: 500; color: var(--forest); }

.service-rows { display: grid; gap: 22px; }
.service-row { display: grid; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-row h2 { font-size: clamp(26px, 3.4vw, 38px); }
.service-row-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 220px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, var(--mint-2)); border: 1px solid var(--line); }
.service-row-visual .service-num { position: absolute; top: 10%; inset-inline-end: 8%; font-size: 18px; }
.service-icon-lg { width: 96px; height: 96px; border-radius: 28px; }
.service-icon-lg .icon { width: 46px; height: 46px; }
@media (min-width: 820px) { .service-row { grid-template-columns: 220px 1fr; gap: 48px; } }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--mint-2); color: var(--forest); stroke-width: 2.6; margin-top: 3px; }

/* ---------- projects ---------- */
.project-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .project-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } .project-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.project-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, rgba(234, 245, 236, .06), rgba(234, 245, 236, .02)); border: 1px solid var(--line-dark); color: var(--on-dark); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.project-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pc) 55%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--pc) 60%, transparent); }
.project-media { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--pc) 28%, transparent), transparent 70%), #081a14; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.project-body h3 { font-size: 26px; }
.project-body h3 a { text-decoration: none; }
.project-body > p:not(.kicker) { color: var(--on-dark-2); font-size: 15px; }
.project-body .link-arrow { margin-top: auto; padding-top: 10px; color: var(--pc); }
.section-mint .project-card, .section-light .project-card { background: var(--night-2); }

.project-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 28px clamp(48px, 7vw, 88px); }
.project-hero-grid { display: grid; gap: 24px; align-items: center; }
.project-hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 700; margin-block: 10px 18px; background: linear-gradient(100deg, #fff 30%, var(--pc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .project-hero h1 { text-align: right; }
.project-visual { position: relative; min-height: 340px; order: -1; margin-inline: calc(var(--gutter) * -1); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip-list li { padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line-dark); background: rgba(234, 245, 236, .05); font-size: 13.5px; }
@media (min-width: 980px) {
  .project-hero-grid { grid-template-columns: 1fr 1.1fr; min-height: 560px; }
  .project-visual { order: 0; min-height: 520px; margin-inline: 0; }
}
.demo-controls { position: absolute; inset-inline: 16px; bottom: 16px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: var(--r); background: rgba(6, 20, 15, .7); border: 1px solid var(--line-dark); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.demo-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--on-dark); font-weight: 600; font-family: var(--font-display); padding: 4px; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 24px; background: rgba(234, 245, 236, .2); transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.demo-toggle[aria-pressed="true"] .switch { background: var(--solar); }
.demo-toggle[aria-pressed="true"] .switch::after { transform: translateX(20px); }
[dir="rtl"] .demo-toggle[aria-pressed="true"] .switch::after { transform: translateX(-20px); }
.demo-status { font-size: 14px; color: var(--on-dark-2); }

.problem-grid { display: grid; gap: 40px; }
.problem-grid h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 22px; }
.problem-list { list-style: none; display: grid; gap: 12px; }
.problem-list li { position: relative; padding: 14px 16px; padding-inline-start: 44px; border-radius: var(--r-sm); background: var(--mint); color: var(--text-2); }
.problem-list li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 22px; width: 12px; height: 12px; border-radius: 3px; background: var(--pc, var(--lime)); transform: rotate(45deg); }
.phase-list { list-style: none; display: grid; gap: 14px; }
.phase-list li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phase-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--night); background: linear-gradient(135deg, #fff, var(--pc, var(--lime))); box-shadow: inset 0 0 0 1px rgba(12, 26, 20, .08); }
.phase-list h3 { font-size: 20px; margin-bottom: 6px; }
.phase-list p { color: var(--text-2); font-size: 15px; }
@media (min-width: 980px) { .problem-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; } .problem-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); } }

.why-grid, .who-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .why-grid, .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why-grid { grid-template-columns: repeat(3, 1fr); } .who-grid { grid-template-columns: repeat(3, 1fr); } }
.glass-card { padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(234, 245, 236, .07), rgba(234, 245, 236, .02)); border: 1px solid var(--line-dark); }
.glass-card h3 { font-size: 21px; margin-bottom: 8px; }
.glass-card p { color: var(--on-dark-2); font-size: 15px; }
.why-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; background: color-mix(in srgb, var(--pc, var(--lime)) 18%, transparent); color: var(--pc, var(--lime)); }
.why-icon .icon { stroke-width: 2.4; }

/* ---------- studio steps ---------- */
.studio-steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.studio-steps li { position: relative; padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-dot { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--night); color: var(--lime); font-family: 'Space Grotesk', sans-serif; font-weight: 700; box-shadow: 0 0 0 6px var(--mint); }
.studio-steps h3 { font-size: 19px; margin-bottom: 6px; }
.studio-steps p { color: var(--text-2); font-size: 14.5px; }
.studio-steps-dark li { background: rgba(234, 245, 236, .04); border-color: var(--line-dark); box-shadow: none; }
.studio-steps-dark p { color: var(--on-dark-2); }
.studio-steps-dark .step-dot { background: var(--lime); color: var(--night); box-shadow: 0 0 0 6px rgba(131, 207, 1, .15); }
@media (min-width: 700px) { .studio-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .studio-steps { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .studio-steps li::after { content: ""; position: absolute; top: 46px; inset-inline-end: -13px; width: 14px; height: 2px; background: linear-gradient(90deg, var(--lime), var(--hydro)); }
  .studio-steps li:last-child::after { display: none; }
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: 40px; }
.about-grid h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 28px; }
.mv { display: grid; gap: 14px; margin-bottom: 26px; }
.mv-card { padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.mv-card h3, .mv-card h2 { font-size: 20px; margin-bottom: 8px; color: var(--forest); }
.mv-card p { color: var(--text-2); }
.mv-large { grid-template-columns: 1fr; gap: 18px; margin: 0; }
.mv-large .mv-card { padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.mv-large h2 { font-size: clamp(26px, 3vw, 34px); }
.mv-large p { font-size: 18px; }
.mv-card-dark { background: var(--night-2); border-color: transparent; }
.mv-card-dark h2 { color: var(--lime); }
.mv-card-dark p { color: var(--on-dark-2); }
.mv-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--mint-2); color: var(--forest); }
.mv-card-dark .mv-icon { background: rgba(131, 207, 1, .15); color: var(--lime); }
.mv-icon .icon { width: 26px; height: 26px; }
@media (min-width: 800px) { .mv-large { grid-template-columns: 1fr 1fr; } }
.values { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); }
.values-title { font-size: 22px; margin-bottom: 18px; color: var(--lime); }
.values ul { list-style: none; display: grid; }
.values li { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line-dark); }
.values li:first-child { border-top: 0; padding-top: 0; }
.values strong { font-family: var(--font-display); font-size: 18px; }
.values span { color: var(--on-dark-2); font-size: 15px; }
@media (min-width: 980px) { .about-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; } }
.value-grid { list-style: none; display: grid; gap: 14px; }
.value-grid li { padding: 26px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.value-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--leaf); }
.value-grid h3 { font-size: 21px; margin-block: 10px 6px; }
.value-grid p { color: var(--text-2); font-size: 15px; }
@media (min-width: 700px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .value-grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(44px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 66px); font-weight: 700; max-width: 18ch; margin-bottom: 18px; }
html[lang="ar"] .page-hero h1 { max-width: 22ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark-3); margin-bottom: 26px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 96px); background: var(--mint); }
.cta-inner { position: relative; display: grid; gap: 28px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-lg); overflow: hidden; color: var(--on-dark); background: radial-gradient(600px 300px at 100% 0%, rgba(47, 211, 224, .25), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(131, 207, 1, .35), transparent 60%), var(--night); }
.cta-inner::before { content: ""; position: absolute; inset: 0; background-image: var(--grid-dark); background-size: 40px 40px; opacity: .8; pointer-events: none; }
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 12px; }
.cta-inner p { color: var(--on-dark-2); max-width: 52ch; }
@media (min-width: 980px) { .cta-inner { grid-template-columns: 1.3fr auto; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.4fr .8fr; gap: 40px; } }
.form-card { padding: clamp(22px, 4vw, 40px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 14.5px; }
.optional { color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233d4f46' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-inline-end: 44px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(131, 207, 1, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 13.5px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-alert { padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 500; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 28px 8px; text-align: center; }
.form-success h2 { font-size: 26px; }
.form-success p { color: var(--text-2); }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--mint-2); color: var(--forest); }
.success-icon .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.contact-aside { display: grid; gap: 16px; }
.aside-card { padding: 26px; border-radius: var(--r-lg); background: var(--mint); border: 1px solid var(--line); }
.aside-card h2 { font-size: 20px; }
.aside-card-dark { background: var(--night); color: var(--on-dark); border-color: transparent; }
.aside-card-dark h2 { color: var(--lime); }
.company-name { margin-top: 8px; font-weight: 600; }
.detail-list { list-style: none; display: grid; gap: 12px; margin-top: 16px; }
.detail-list li { display: flex; align-items: center; gap: 10px; color: var(--on-dark-2); }
.detail-list a { text-decoration: none; }
.detail-list a:hover { color: var(--lime); }
.detail-list .icon { color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { position: relative; padding-block: 64px 28px; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dark); }
.footer-logo { display: inline-block; padding: 10px 14px; border-radius: var(--r); background: #fff; }
.footer-logo img { height: 72px; width: auto; }
.footer-tagline { margin-top: 18px; font-family: var(--font-display); font-weight: 600; color: var(--lime); }
.footer-brand p:not(.footer-tagline) { margin-top: 8px; color: var(--on-dark-2); max-width: 40ch; font-size: 15px; }
.footer-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.footer-col h2 { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 4px; }
html[lang="ar"] .footer-col h2 { letter-spacing: 0; font-size: 14px; }
.footer-col a:not(.btn) { color: var(--on-dark-2); text-decoration: none; font-size: 15px; }
.footer-col a:not(.btn):hover { color: var(--lime); }
.footer-col .btn { margin-top: 6px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; font-size: 13px; color: var(--on-dark-3); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ---------- 404 & generic content ---------- */
.notfound { min-height: 62vh; display: grid; align-items: center; }
.notfound-inner { display: grid; justify-items: center; gap: 16px; text-align: center; }
.notfound-inner .lead { margin-inline: auto; }
.notfound-num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(96px, 18vw, 180px); font-weight: 700; line-height: 1; background: linear-gradient(180deg, var(--lime-2), var(--hydro)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prose { max-width: 760px; font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--forest); }
.post-list { display: grid; gap: 22px; max-width: 860px; }
.post-card { padding: 26px; border-radius: var(--r); border: 1px solid var(--line); }
.post-card h2 { font-size: 26px; margin-bottom: 8px; }
.post-card h2 a { text-decoration: none; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 479px) { .btn { white-space: normal; max-width: 100%; } }
.phases-title { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
