/* ==========================================================================
   Egyptalum Company — Global Stylesheet
   Industrial / modern: charcoal, steel, aluminum accents
   ========================================================================== */

:root {
  --ink:        #0d1117;
  --ink-2:      #151b23;
  --ink-3:      #1c242e;
  --line:       rgba(255, 255, 255, 0.09);
  --line-2:     rgba(255, 255, 255, 0.16);

  --text:       #e8ecf1;
  --text-2:     #9aa7b5;
  --text-3:     #6b7887;

  --alu:        #b9c4cf;
  --alu-hi:     #e6ecf2;
  --accent:     #f26a1b;
  --accent-2:   #ff8a3d;
  --accent-dim: rgba(242, 106, 27, 0.12);

  --paper:      #f4f6f8;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --r: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
button { font-family: inherit; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--alt { background: var(--ink-2); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  flex: none;
}
.section--light .eyebrow { color: #c1500d; }
.section--light .eyebrow::before { background: #c1500d; }

h1, .h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2, .h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3, .h3 { font-size: 1.2rem; }

.lede { font-size: 1.075rem; color: var(--text-2); max-width: 62ch; }
.section--light .lede { color: #4b5763; }
.muted { color: var(--text-2); }
.section--light .muted { color: #4b5763; }
.section-head { margin-bottom: 52px; max-width: 720px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(242,106,27,0.28); }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--alu); background: rgba(255,255,255,0.04); }
.section--light .btn--ghost { border-color: rgba(0,0,0,0.18); color: var(--ink); }
.section--light .btn--ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.04); }
.btn--lg { padding: 17px 34px; font-size: 1rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; color: #fff; }
.logo__sub { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav a.is-active { color: #fff; }

.header .btn { margin-left: 14px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: 0.25s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px 0 auto 0;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 30px;
  transform: translateY(-125%);
  transition: transform 0.34s var(--ease);
  z-index: 99;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: 15px 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-nav .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% 18%, rgba(242,106,27,0.13), transparent 62%),
    radial-gradient(900px 700px at 8% 88%, rgba(120,150,190,0.10), transparent 60%),
    linear-gradient(175deg, #0d1117 0%, #121922 55%, #0d1117 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: 1.18rem; margin-bottom: 36px; max-width: 60ch; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: 0.79rem;
  color: var(--text-2);
  margin-bottom: 26px;
  background: rgba(255,255,255,0.03);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* page hero (inner pages) */
.pagehero {
  padding: 170px 0 70px;
  background:
    radial-gradient(900px 460px at 80% 10%, rgba(242,106,27,0.11), transparent 60%),
    linear-gradient(180deg, #10161e 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}
.pagehero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.crumb { font-size: 0.82rem; color: var(--text-3); margin-bottom: 20px; }
.crumb a:hover { color: var(--accent); }

/* ---------- cards ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  transition: transform 0.28s var(--ease), border-color 0.28s, background 0.28s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--ink-3); }
.card__num {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.card h3 { margin-bottom: 11px; }
.card p { color: var(--text-2); font-size: 0.945rem; }

.icon {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--accent-dim);
  border: 1px solid rgba(242,106,27,0.24);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.section--light .card {
  background: #fff;
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.section--light .card:hover { border-color: rgba(0,0,0,0.2); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.section--light .card p { color: #566270; }

/* product card */
.pcard {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pcard__top {
  height: 130px;
  background: linear-gradient(135deg, #232d3a 0%, #2f3c4c 48%, #1b232d 100%);
  position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
}
.pcard__top::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.055) 0 1px, transparent 1px 7px);
}
.pcard__top svg { position: relative; color: var(--alu); opacity: 0.92; }
.pcard__body { padding: 24px 24px 26px; }
.pcard__body h3 { margin-bottom: 9px; }
.pcard__body p { color: var(--text-2); font-size: 0.925rem; margin-bottom: 16px; }
.spec {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
}
.spec dt { color: var(--text-3); }
.spec dd { margin: 0; color: var(--alu); font-family: var(--mono); font-size: 0.78rem; text-align: right; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--ink-2);
}
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__k { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }
.stat__l { font-size: 0.83rem; color: var(--text-2); }

/* ---------- process ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  padding-top: 4px;
  letter-spacing: 0.08em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 0.95rem; max-width: 70ch; }
.section--light .step { border-color: rgba(0,0,0,0.1); }
.section--light .step p { color: #566270; }
.section--light .step__n { color: #c1500d; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checklist li {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text-2);
}
.checklist li:last-child { border-bottom: none; }
.checklist svg { flex: none; margin-top: 3px; color: var(--accent); }
.checklist strong { color: var(--text); font-weight: 600; display: block; }
.section--light .checklist li { border-color: rgba(0,0,0,0.1); color: #566270; }
.section--light .checklist strong { color: var(--ink); }

/* visual panel */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(145deg, #182029 0%, #212c38 100%);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.panel h3 { margin-bottom: 8px; }
.panel__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.panel__row:last-child { border-bottom: none; }
.panel__row span:first-child { color: var(--text-2); }
.panel__row span:last-child { font-family: var(--mono); font-size: 0.8rem; color: var(--alu-hi); text-align: right; }

/* ---------- CTA band ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(242,106,27,0.16), transparent 65%),
    var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 90px 0;
}
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin: 0 auto 32px; text-align: center; }
.cta .btn-row { justify-content: center; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.83rem; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 13px 15px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa7b5' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
.field select option { background: var(--ink-2); color: var(--text); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e05252; }
.err { font-size: 0.78rem; color: #ff8080; display: none; }
.field.has-error .err { display: block; }
.form-note { font-size: 0.8rem; color: var(--text-3); }
.form-ok {
  display: none;
  padding: 16px 18px;
  border: 1px solid rgba(64,190,120,0.4);
  background: rgba(64,190,120,0.09);
  border-radius: var(--r);
  color: #8fe0b0;
  font-size: 0.92rem;
}
.form-ok.is-visible { display: block; }

/* ---------- contact list ---------- */
.contact-item { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .icon { margin: 0; width: 40px; height: 40px; flex: none; }
.contact-item h4 { margin: 0 0 3px; font-size: 0.86rem; color: var(--text-2); font-weight: 600; }
.contact-item p, .contact-item a { font-size: 0.97rem; color: var(--text); }
.contact-item a:hover { color: var(--accent); }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
th { background: var(--ink-2); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: none; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; text-align: left;
  color: var(--text); font-size: 1.02rem; font-weight: 600;
}
.faq__q .plus { flex: none; color: var(--accent); transition: transform 0.28s var(--ease); }
.faq__item.is-open .plus { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease); }
.faq__a p { color: var(--text-2); font-size: 0.95rem; padding-bottom: 22px; max-width: 78ch; }

/* ---------- footer ---------- */
.footer { background: #0a0e13; border-top: 1px solid var(--line); padding: 66px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer h4 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; font-weight: 600; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: 0.92rem; color: var(--text-2); }
.footer li a:hover { color: var(--accent); }
.footer__about { font-size: 0.92rem; color: var(--text-2); max-width: 42ch; margin-top: 18px; }
.footer__bar {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--text-3);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav, .header > .wrap .btn { display: none; }
  .burger { display: flex; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .mobile-nav .btn { display: inline-flex; }
}
@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .hero { min-height: auto; padding: 128px 0 76px; }
  .wrap { padding: 0 20px; }
  .btn-row .btn { width: 100%; justify-content: center; }
  .btn-row { flex-direction: column; }
  .panel { padding: 26px 22px; }
}
