:root {
  --green: #006C35;
  --green-dark: #004d24;
  --green-soft: #e6f4ec;
  --gold: #c9a04b;
  --ink: #0a1f17;
  --muted: #5b6a64;
  --line: #e3e8e5;
  --bg: #ffffff;
  --bg-soft: #fafbf9;
  --shadow: 0 10px 40px rgba(0, 60, 30, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─────────── NAV ─────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 0.85rem;
}
.nav-links {
  display: flex; gap: 24px;
  margin-inline-start: auto; margin-inline-end: 16px;
}
.nav-links a {
  color: var(--muted); font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--green); color: #fff !important;
  border-radius: 10px; font-weight: 700;
  transition: transform 0.15s, background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
@media (max-width: 768px) { .nav-links { display: none; } }

/* ─────────── HERO ─────────── */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5fbf7 0%, #ffffff 50%, #f8f6ef 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0, 108, 53, 0.08) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(201, 160, 75, 0.08) 0, transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--green-soft); color: var(--green);
  border-radius: 999px;
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 108, 53, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0, 108, 53, 0); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.15rem; color: var(--muted);
  max-width: 540px; margin-bottom: 32px;
}
.hero-sub strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b {
  font-size: 1.4rem; font-weight: 900; color: var(--green);
}
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

/* device mockup */
.hero-visual { display: grid; place-items: center; }
.device {
  width: 280px; height: 560px;
  background: #1a2520; border-radius: 36px;
  padding: 12px; box-shadow: 0 30px 80px rgba(0, 60, 30, 0.18);
  transform: rotate(-3deg);
}
.device-bar {
  display: flex; gap: 6px; padding: 0 0 10px;
  border-bottom: 1px solid #2d3a34;
}
.device-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a4943;
}
.device-screen {
  background: #fff; border-radius: 24px;
  height: calc(100% - 30px); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.ds-line { height: 12px; background: var(--green-soft); border-radius: 6px; }
.ds-line.w-40 { width: 40%; }
.ds-line.w-60 { width: 60%; }
.ds-line.w-70 { width: 70%; }
.ds-line.w-85 { width: 85%; }
.ds-line.w-90 { width: 90%; }
.ds-card {
  height: 110px; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 14px; margin: 8px 0;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .device { width: 220px; height: 440px; }
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px;
  font-weight: 700; font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary {
  background: var(--green); color: #fff;
  box-shadow: 0 8px 24px rgba(0, 108, 53, 0.25);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
  margin-top: 24px;
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-block { width: 100%; }

/* ─────────── SECTIONS ─────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-soft); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900; margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 1.1rem; color: var(--muted);
  margin-bottom: 48px; max-width: 600px;
}

/* ─────────── GRID ─────────── */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─────────── CARDS (services) ─────────── */
.card {
  background: #fff; padding: 32px 24px;
  border: 1px solid var(--line); border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.card-icon {
  width: 56px; height: 56px;
  background: var(--green-soft);
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.95rem; }

/* ─────────── PROJECT CARDS ─────────── */
.project {
  background: #fff;
  border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-img {
  height: 200px;
  display: grid; place-items: center;
  font-size: 4rem;
  position: relative; overflow: hidden;
}
.project-img-asal {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #d97706 100%);
}
.project-img-loktah {
  background: linear-gradient(135deg, #fee2e2 0%, #ef4444 50%, #b91c1c 100%);
}
.project-img-secrets {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fcd34d;
}
.project-emoji {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}
.project-body { padding: 24px; }
.project-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.project-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.project-tags span {
  padding: 4px 10px; background: var(--green-soft);
  color: var(--green); border-radius: 6px;
  font-size: 0.78rem; font-weight: 600;
}
.project-link {
  color: var(--green); font-weight: 700;
  display: inline-block;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.project-link:hover { border-bottom-color: var(--green); }

/* ─────────── PROCESS ─────────── */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }
.step {
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  position: relative;
}
.step-n {
  width: 40px; height: 40px;
  background: var(--green); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ─────────── LICENSE ─────────── */
.section-trust {
  background: linear-gradient(135deg, #f0f9f3 0%, #ffffff 100%);
}
.license {
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 24px;
  padding: 40px;
  max-width: 760px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.license-header {
  display: flex; gap: 18px; align-items: center;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.license-icon {
  width: 72px; height: 72px;
  background: var(--green-soft); color: var(--green);
  border-radius: 16px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.license-header h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 4px; }
.license-sub { color: var(--muted); font-size: 0.95rem; }
.license-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-bottom: 8px;
}
@media (max-width: 600px) { .license-grid { grid-template-columns: 1fr; } }
.license-grid > div {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  background: var(--bg-soft); border-radius: 12px;
}
.license-grid span {
  font-size: 0.82rem; color: var(--muted);
  font-weight: 600;
}
.license-grid b {
  font-size: 1rem; font-weight: 800; color: var(--ink);
}
.license-grid b.active { color: var(--green); }

/* ─────────── CONTACT ─────────── */
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.contact-list li:last-child { border-bottom: none; }
.ci {
  width: 44px; height: 44px;
  background: var(--green-soft);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 1.2rem;
}
.contact-list a { color: var(--green); font-weight: 700; }
.contact-form {
  background: #fff; padding: 32px;
  border-radius: 18px; border: 1px solid var(--line);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-weight: 700;
  margin-bottom: 8px; font-size: 0.92rem;
}
.field input, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green);
}

/* ─────────── FOOTER ─────────── */
.footer {
  background: var(--ink); color: #fff;
  padding: 32px 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.footer span { color: #8da59b; font-size: 0.92rem; }
.footer-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 0.92rem; color: #8da59b;
}
.footer-meta b { color: #fff; font-weight: 700; }
