/* a7medmajid.com — "Operator Console" theme. No framework, logical properties for RTL/LTR. */
:root {
  --bg: #0B0C0E;
  --bg-2: #0F1113;
  --surface: #111316;
  --surface-2: #16191D;
  --line: #23262B;
  --line-2: #3A3D42;
  --text: #EDEDE8;
  --muted: #B9BAB3;
  --dim: #8E8F88;
  --faint: #6E7069;
  --accent: #D4FF3A;
  --on-accent: #0B0C0E;
  --blue: #7CC4FF;
  --amber: #FFB547;
  --font: 'Readex Pro', 'Segoe UI', Tahoma, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); line-height: 1.8; font-size: 15.5px; }
.c-dim { color: var(--faint); }
.mono-key { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
  font-family: var(--font); font-size: 17px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 400; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-grow { flex: 1 1 200px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nav ---------- */
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(11,12,14,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #1E2024; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 16px; }
.brand-text { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.brand-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.brand-tag { font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .6px; color: var(--dim); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 15px; }
.nav-link { text-decoration: none; color: var(--muted); }
.nav-link:hover { color: var(--text); }
.lang-btn { min-height: 44px; min-width: 56px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; }
.lang-btn:hover { border-color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding-block: 88px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; border: 1px solid #2A2D32; border-radius: 999px; padding: 8px 16px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-title { font-size: clamp(44px, 6.2vw, 92px); line-height: 1.08; font-weight: 700; letter-spacing: -.5px; }
.hero-title span, .h2 span { display: block; }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.8; color: var(--muted); max-width: 560px; }

/* ---------- Console ---------- */
.console { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(212,255,58,.18); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.console-dots { display: flex; align-items: center; gap: 8px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2E3136; }
.console-dots span { margin-left: 10px; }
.console-live { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.console-feed { padding: 20px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 2; min-height: 300px; overflow: hidden; }
.feed-line { display: grid; grid-template-columns: 56px 92px minmax(0, 1fr) auto; gap: 12px; white-space: nowrap; animation: rise .5s ease-out both; }
.feed-line .msg { color: #D6D7D0; overflow: hidden; text-overflow: ellipsis; }
.feed-line .t, .feed-line .r { color: var(--faint); }
.feed-caret { color: var(--accent); }
.feed-caret b { animation: blink 1s steps(1) infinite; font-weight: 400; }
.console-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat-label { font-size: 12px; color: var(--dim); }
.stat-val { font-family: var(--mono); font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; text-align: start; white-space: nowrap; }
.stat-val.bump { animation: bump .6s ease-out; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid #1E2024; padding: 18px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding-block: 120px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); align-self: flex-start; }
.h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.15; font-weight: 700; }
.h2-xl { font-size: clamp(40px, 5vw, 76px); line-height: 1.1; }
.body { font-size: 18px; line-height: 1.85; color: var(--muted); max-width: 640px; }
.band { background: var(--bg-2); border-block: 1px solid #1E2024; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 72px; align-items: center; }
.portrait { position: relative; width: 100%; max-width: 520px; justify-self: center; margin-block-end: 28px; }
.portrait-frame { position: absolute; top: 28px; bottom: -28px; inset-inline-start: 28px; inset-inline-end: -28px; border: 1px solid var(--accent); border-radius: 32px; }
.portrait img { position: relative; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 22%; border-radius: 32px; border: 1px solid var(--line); background: var(--surface-2); }
.portrait-cap { position: absolute; bottom: 20px; inset-inline: 20px; background: rgba(11,12,14,.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid #2A2D32; border-radius: 18px; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cap-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.cap-text strong { font-size: 18px; font-weight: 600; }
.cap-text span { font-size: 13px; color: var(--muted); }
.cap-loc { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.facts { border-top: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.6; }
.facts .mono-key { width: 64px; flex-shrink: 0; }

/* ---------- Build ---------- */
.sector-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.chip { min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: inherit; font-size: 16px; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line-2); transition: background-color .15s ease, color .15s ease; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel-title { font-size: 22px; font-weight: 600; }
.tag-outline { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.tag-outline.muted-tag { font-size: 12px; padding: 5px 10px; border-color: var(--line-2); color: var(--muted); }
.tag-solid { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.modules li { background: var(--surface-2); border: 1px solid #262A2F; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.modules .mono-key { font-size: 11px; }
.tree { background: #0E1012; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; font-family: var(--mono); font-size: 13px; line-height: 2; color: #9A9B94; overflow-x: auto; }
.tree-line { padding-left: 20px; }
.tree-line span { color: #D6D7D0; }
.tree-note { margin-top: 16px; }
.tree .btn { margin-top: 24px; font-size: 16px; min-height: 48px; padding: 0 22px; }

/* ---------- Work ---------- */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 56px); margin-bottom: 20px; }
.feature-title { font-size: clamp(36px, 4vw, 60px); font-weight: 700; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpis div { border-top: 1px solid #2A2D32; padding-top: 12px; display: flex; flex-direction: column-reverse; }
.kpis dd { font-family: var(--mono); font-size: 28px; font-weight: 700; text-align: start; }
.kpis dt { font-size: 13px; color: var(--dim); }
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 280px; border-radius: 40px; border: 1px solid #2E3136; background: var(--bg); padding: 14px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.phone-screen { border-radius: 28px; background: #15181B; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.checkin { aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 8px 24px; text-align: center; }
.checkin svg { margin-inline: auto; }
.checkin strong { display: block; font-size: 18px; font-weight: 600; margin-top: 6px; }
.checkin small { display: block; font-size: 12px; color: var(--dim); }
.phone-points { display: flex; justify-content: space-between; background: #1C1F23; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.phone-points .accent { font-family: var(--mono); font-size: 14px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { font-size: 26px; font-weight: 600; }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-family: var(--mono); font-size: 11.5px; padding: 5px 10px; border-radius: 8px; background: #1A1D21; color: #9A9B94; }

/* ---------- Why ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.pillar { padding-block: 32px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line); }
.pillar-key { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--accent); align-self: flex-start; }
.pillar h3 { font-size: 20px; font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 48px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.steps strong { font-size: 18px; font-weight: 600; }
.steps .muted { font-size: 14.5px; }

/* ---------- Contact ---------- */
.contact-wrap { border-top: 1px solid #1E2024; }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px; align-items: center; }
.contact-box label { font-size: 14px; color: var(--muted); }
.contact-box textarea { width: 100%; background: var(--bg); border: 1px solid #2E3136; border-radius: 14px; padding: 16px; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; resize: vertical; }
.contact-box textarea::placeholder { color: var(--faint); }
.contact-box textarea:focus { border-color: var(--accent); outline: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #1E2024; }
.footer-row { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---------- Motion ---------- */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,255,58,.55); } 70% { box-shadow: 0 0 0 10px rgba(212,255,58,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,58,0); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bump { from { opacity: .35; } to { opacity: 1; } }
.live { animation: pulse 2s infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-link { display: none; }
  .brand-tag { display: none; }
  .hero { padding-block: 56px 48px; }
  .section { padding-block: 80px; }
  .feed-line { grid-template-columns: 48px 80px minmax(0, 1fr); font-size: 12px; }
  .feed-line .r { display: none; }
  .console-dots span { display: none; }
  .stat { padding: 14px 12px; }
  .about { gap: 56px; }
  .portrait-frame { inset-inline-end: -14px; bottom: -14px; top: 14px; inset-inline-start: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
