:root {
  --color-forest-depths: #122314;
  --color-moss-shadow: #273f2b;
  --color-lichen-sage: #7e8371;
  --color-pale-fern: #b7bda5;
  --color-electric-sprout: #68ef3f;
  --color-deep-verdant: #26a200;
  --color-sprout-wash: #e7f9dd;
  --color-mist-green: #d9deca;
  --color-onyx-olive: #30322a;
  --color-pure-white: #ffffff;
  --color-bone-white: #f2f5eb;
  --color-soft-mist: #dcdfe3;
  --color-carbon: #222222;
  --color-gold: #c9a962;

  --font-display: 'Inter', 'Cairo', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;

  --radius-nav: 28px;
  --radius-card: 24px;
  --radius-pill: 28px;
  --radius-input: 24px;

  --page-max: 1200px;
  --nav-h: 64px;
}

html[dir="rtl"] {
  --font-display: 'Cairo', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-forest-depths);
  color: var(--color-pure-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--page-max); margin-inline: auto; padding-inline: 24px; }

.dark { background: var(--color-forest-depths); color: var(--color-pure-white); }
.light { background: var(--color-pure-white); color: var(--color-onyx-olive); }

/* ---------- cursor glow ---------- */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(104, 239, 63, 0.07), transparent 65%);
  transition: opacity .4s;
  opacity: 0;
}
body.glows .cursor-glow { opacity: 1; }

/* ---------- nav ---------- */
.nav-wrap { position: fixed; inset-inline: 0; top: 24px; z-index: 50; display: flex; justify-content: center; padding-inline: 16px; }
.nav {
  width: 100%; max-width: var(--page-max);
  display: flex; align-items: center; gap: 16px;
  background: rgba(48, 50, 42, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(126, 131, 113, 0.25);
  border-radius: var(--radius-nav);
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: background .3s, transform .3s;
}
.nav.scrolled { background: rgba(18, 35, 20, 0.95); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-gold); }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--color-pure-white); }
.brand-tag {
  font-size: 11px; font-weight: 500; color: var(--color-onyx-olive);
  background: var(--color-electric-sprout); border-radius: 40px; padding: 3px 10px;
}
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--color-lichen-sage);
  padding: 7px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--color-pure-white); background: rgba(104, 239, 63, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-links + .nav-actions { margin-inline-start: 0; }

.lang-switch { display: flex; background: var(--color-moss-shadow); border-radius: 10px; padding: 3px; gap: 2px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--color-pale-fern);
  font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; transition: all .25s;
}
.lang-switch button.on { background: var(--color-electric-sprout); color: var(--color-onyx-olive); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-pill);
  padding: 9px 20px; border: 1px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  will-change: transform;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--color-electric-sprout); color: var(--color-onyx-olive); }
.btn-primary:hover { box-shadow: 0 0 0 4px rgba(104, 239, 63, 0.18); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--color-pure-white); background: transparent; }
.btn-ghost:hover { border-color: var(--color-electric-sprout); color: var(--color-electric-sprout); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.light .btn-ghost { border-color: rgba(48, 50, 42, 0.4); color: var(--color-onyx-olive); }

.burger { display: none; border: 0; background: transparent; width: 40px; height: 40px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 20px; height: 2px; background: var(--color-pure-white); transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: calc(var(--nav-h) + 56px); padding-bottom: 64px; }
#scene3d { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#scene3d:active { cursor: grabbing; }
.orb {
  position: absolute; width: 640px; height: 640px; border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, rgba(38, 162, 0, 0.5), rgba(0, 0, 0, 0.9) 70%);
  filter: blur(10px); opacity: 0.4; inset-inline-end: -160px; top: -120px; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 680px; }
html[dir="rtl"] .hero-copy { margin-inline-start: 0; }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--color-lichen-sage); border-radius: 9999px;
  padding: 5px 16px; font-size: 14px; color: var(--color-pure-white);
  transition: border-color .25s, background .25s;
}
.announce:hover { border-color: var(--color-electric-sprout); background: rgba(104, 239, 63, 0.06); }
.announce .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-electric-sprout); animation: pulse 2s infinite; }
.announce svg { width: 13px; height: 13px; color: var(--color-lichen-sage); }
html[dir="rtl"] .announce svg { transform: scaleX(-1); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(104, 239, 63, 0.5); } 60% { box-shadow: 0 0 0 8px rgba(104, 239, 63, 0); } }

.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 7.4vw, 80px); line-height: 0.92; letter-spacing: -0.014em;
  margin: 24px 0;
}
html[dir="rtl"] .display { line-height: 1.16; letter-spacing: 0; font-weight: 900; }
.display-sm { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.0; }
html[dir="rtl"] .display-sm { line-height: 1.3; }
.accent { color: var(--color-electric-sprout); }
.accent-dark { color: var(--color-deep-verdant); }

.lead { font-size: 18px; color: var(--color-pale-fern); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-hint {
  position: absolute; bottom: 24px; inset-inline-start: 50%; transform: translateX(0);
  display: flex; align-items: center; gap: 8px; color: var(--color-lichen-sage); font-size: 13px;
  animation: bob 2.6s ease-in-out infinite;
}
html[dir="rtl"] .hero-hint { transform: translateX(50%); }
html[dir="ltr"] .hero-hint { transform: translateX(-50%); }
.hero-hint svg { width: 16px; height: 16px; }
@keyframes bob { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: 8px; } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid rgba(126, 131, 113, 0.2); padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--color-pure-white); display: inline-flex; align-items: baseline; gap: 4px; }
.stat-num i { font-style: normal; font-size: 0.4em; color: var(--color-electric-sprout); font-weight: 700; }
.stat-label { display: block; margin-top: 8px; color: var(--color-lichen-sage); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; position: relative; }
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-deep-verdant); margin-bottom: 16px;
}
.dark .kicker { color: var(--color-electric-sprout); }
.section-sub { font-size: 18px; max-width: 620px; margin-top: 16px; color: var(--color-lichen-sage); }
.light .section-sub { color: #5c6152; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.card {
  position: relative; background: var(--color-bone-white);
  border: 1px solid rgba(48, 50, 42, 0.12); border-radius: var(--radius-card);
  padding: 32px; transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  will-change: transform;
}
.card:hover { box-shadow: 0 24px 48px rgba(48, 50, 42, 0.12); border-color: rgba(38, 162, 0, 0.35); }
.card-idx {
  position: absolute; top: 24px; inset-inline-end: 24px;
  font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--color-lichen-sage);
}
.card-icon { width: 34px; height: 34px; color: var(--color-deep-verdant); margin-bottom: 20px; }
.card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--color-onyx-olive); }
.card p { font-size: 15px; color: #5c6152; }

/* ---------- depth explorer ---------- */
.depth-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; margin-top: 56px; align-items: stretch; }
.bore {
  position: relative; height: 520px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--color-moss-shadow); background: #0b170d;
}
.layer { position: absolute; inset-inline: 0; display: flex; align-items: center; justify-content: center; border-bottom: 1px dashed rgba(183, 189, 165, 0.18); }
.layer span { font-size: 12px; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.04em; writing-mode: horizontal-tb; text-align: center; padding: 4px; }
.layer:nth-child(1) { background: linear-gradient(#3a3a2c, #33342a); }
.layer:nth-child(2) { background: linear-gradient(#33342a, #2c3026); }
.layer:nth-child(3) { background: linear-gradient(#2c3026, #24301f); }
.layer:nth-child(4) { background: linear-gradient(#24301f, #1b2a1a); }
.layer.water-layer { background: linear-gradient(#123c2a, #0e4d3c); }
.layer.active span { color: var(--color-electric-sprout); font-weight: 600; }

.drill { position: absolute; top: 0; inset-inline-start: 50%; width: 2px; transform: translateX(0); }
html[dir="rtl"] .drill { transform: translateX(50%); }
html[dir="ltr"] .drill { transform: translateX(-50%); }
.drill-line { width: 2px; background: linear-gradient(var(--color-gold), rgba(201, 169, 98, 0.4)); height: var(--dh, 0px); }
.drill-bit {
  width: 14px; height: 14px; margin-inline-start: -6px; border-radius: 3px;
  background: var(--color-gold); box-shadow: 0 0 18px rgba(201, 169, 98, 0.8);
  transition: box-shadow .3s;
}
.bore.water .drill-bit { background: var(--color-electric-sprout); box-shadow: 0 0 26px rgba(104, 239, 63, 0.9); }
.water-glow {
  position: absolute; inset-inline: 0; bottom: 0; height: 0; opacity: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(104, 239, 63, 0.45), transparent 70%);
  transition: opacity .6s, height .6s;
}
.bore.water .water-glow { opacity: 1; height: 34%; }
.depth-scale { position: absolute; inset-block: 0; inset-inline-end: 10px; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; }
.depth-scale i { font-style: normal; font-size: 10px; color: rgba(255, 255, 255, 0.35); }

.depth-panel { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.depth-read { display: flex; align-items: baseline; gap: 10px; }
.depth-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 8vw, 96px); line-height: 0.9; letter-spacing: -0.02em; color: var(--color-electric-sprout); font-variant-numeric: tabular-nums; }
.depth-unit { font-size: 20px; color: var(--color-pale-fern); }
.depth-bar { height: 6px; border-radius: 999px; background: var(--color-moss-shadow); overflow: hidden; max-width: 420px; }
.depth-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-deep-verdant), var(--color-electric-sprout)); transition: width .15s linear; }
html[dir="rtl"] .depth-bar span { margin-inline-start: 0; }
.depth-panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.depth-panel p { color: var(--color-pale-fern); max-width: 520px; }

.water-badge {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--color-electric-sprout); border-radius: 16px;
  background: rgba(104, 239, 63, 0.08); padding: 16px; max-width: 520px;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.water-badge.show { opacity: 1; transform: none; }
.water-badge svg { width: 26px; height: 26px; color: var(--color-electric-sprout); flex-shrink: 0; }
.water-badge strong { display: block; color: var(--color-electric-sprout); font-size: 15px; }
.water-badge span { font-size: 14px; color: var(--color-pale-fern); }

.depth-slider-label { font-size: 13px; color: var(--color-lichen-sage); }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; max-width: 420px; height: 28px; background: transparent;
}
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--color-moss-shadow); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-electric-sprout); border: 3px solid var(--color-forest-depths);
  margin-top: -9px; box-shadow: 0 0 0 2px var(--color-electric-sprout), 0 0 20px rgba(104, 239, 63, 0.6);
  cursor: grab;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--color-moss-shadow); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--color-electric-sprout); border: 3px solid var(--color-forest-depths); cursor: grab; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 380px 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.process-tabs { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.process-tabs button {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: start;
  background: transparent; border: 1px solid rgba(48, 50, 42, 0.14); border-radius: 16px;
  padding: 16px 20px; font-size: 16px; font-weight: 600; color: var(--color-onyx-olive);
  transition: all .3s;
}
.process-tabs button i { font-style: normal; font-family: var(--font-serif); color: var(--color-lichen-sage); font-size: 15px; }
.process-tabs button.on { background: var(--color-onyx-olive); color: var(--color-pure-white); border-color: var(--color-onyx-olive); }
.process-tabs button.on i { color: var(--color-electric-sprout); }
.process-tabs button:hover:not(.on) { border-color: var(--color-deep-verdant); }

.process-panel {
  position: relative; background: var(--color-bone-white); border: 1px solid rgba(48, 50, 42, 0.12);
  border-radius: var(--radius-card); padding: 48px; min-height: 320px; overflow: hidden;
}
.process-num {
  position: absolute; top: 16px; inset-inline-end: 32px;
  font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 1;
  color: rgba(48, 50, 42, 0.07); letter-spacing: -0.03em;
}
.process-panel h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 16px; }
.process-panel p { font-size: 17px; color: #5c6152; max-width: 560px; }
.process-dots { position: absolute; bottom: 28px; inset-inline-start: 48px; display: flex; gap: 8px; }
.process-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(48, 50, 42, 0.18); transition: all .3s; }
.process-dots i.on { background: var(--color-deep-verdant); width: 24px; border-radius: 999px; }
.process-panel.swap > * { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; margin-top: 56px; }
.why-item { border-top: 1px solid var(--color-moss-shadow); padding-top: 24px; }
.why-item h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.why-item h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--color-electric-sprout); margin-inline-end: 12px; vertical-align: middle; }
.why-item p { color: var(--color-pale-fern); max-width: 460px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid rgba(48, 50, 42, 0.14); border-radius: 16px; padding: 16px 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.contact-line:hover { border-color: var(--color-deep-verdant); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(48, 50, 42, 0.1); }
.contact-line svg { width: 26px; height: 26px; color: var(--color-deep-verdant); flex-shrink: 0; }
.contact-line small { display: block; font-size: 12px; color: var(--color-lichen-sage); }
.contact-line b { font-size: 18px; letter-spacing: 0.01em; color: var(--color-onyx-olive); }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(48, 50, 42, 0.2); color: var(--color-onyx-olive);
  transition: all .25s;
}
.socials a:hover { background: var(--color-onyx-olive); color: var(--color-electric-sprout); transform: translateY(-3px); }
.socials svg { width: 21px; height: 21px; }

.quote {
  background: var(--color-bone-white); border: 1px solid rgba(48, 50, 42, 0.12);
  border-radius: var(--radius-card); padding: 40px;
}
.quote h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.quote > p { color: #5c6152; font-size: 15px; margin: 8px 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--color-onyx-olive); }
.field input, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--color-onyx-olive);
  background: var(--color-pure-white); border: 1px solid rgba(48, 50, 42, 0.2);
  border-radius: var(--radius-input); padding: 12px 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { border-color: var(--color-deep-verdant); box-shadow: 0 0 0 3px rgba(104, 239, 63, 0.25); }
.quote .btn { width: 100%; margin-top: 8px; }
.form-note { font-size: 12px; color: var(--color-lichen-sage); margin-top: 12px; text-align: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--color-moss-shadow); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--color-pale-fern); }
.footer-rights { font-size: 13px; color: var(--color-lichen-sage); }

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-electric-sprout); color: var(--color-onyx-olive);
  box-shadow: 0 12px 32px rgba(104, 239, 63, 0.35);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 26px; height: 26px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .depth-grid { grid-template-columns: 1fr; gap: 32px; }
  .bore { height: 420px; }
  .process { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: calc(100% + 12px); inset-inline: 0;
    flex-direction: column; background: rgba(18, 35, 20, 0.98); border: 1px solid var(--color-moss-shadow);
    border-radius: 20px; padding: 12px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .burger { display: flex; }
  .nav .btn-ghost { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .nav .btn-primary { display: none; }
  .section { padding: 72px 0; }
  .process-panel { padding: 32px 24px; }
  .process-dots { inset-inline-start: 24px; }
  .quote { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
