:root {
  --aee-red: #ef2f38;
  --aee-red-deep: #c91f2a;
  --aee-ink: #07111f;
  --aee-ink-soft: #101c2c;
  --aee-slate: #647083;
  --aee-line: #dce2e9;
  --aee-paper: #f5f7fa;
  --aee-white: #fff;
  --aee-green: #24c36a;
  --aee-shadow: 0 24px 70px rgba(7, 17, 31, .12);
}

.aee-header .aee-brand { min-width: 190px; }
.aee-header .aee-logo { width: 230px; height: auto; max-height: 54px; object-fit: contain; }
.aee-header-actions { gap: 16px; }
.aee-v2-page-hero { position: relative; overflow: hidden; }
.aee-v2-page-hero::after { content: "AE"; position: absolute; inset-inline-end: 5%; bottom: -45px; font: 900 190px/1 Manrope, sans-serif; color: rgba(255,255,255,.035); pointer-events: none; }

.aee-v2-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 760px;
  padding: 105px 0 82px;
  color: var(--aee-white);
  background: var(--aee-ink);
}
.aee-v2-hero-media { position: absolute; inset: 0; z-index: -3; background: url('../img/v2/systems/security-surveillance.webp') center/cover no-repeat; opacity: .24; filter: saturate(.65) contrast(1.1); }
.aee-v2-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,17,31,.99) 0%, rgba(7,17,31,.92) 48%, rgba(7,17,31,.7) 100%); }
[dir="rtl"] .aee-v2-hero::before { background: linear-gradient(270deg, rgba(7,17,31,.99) 0%, rgba(7,17,31,.92) 48%, rgba(7,17,31,.7) 100%); }
.aee-v2-hero::after { content: ""; position: absolute; width: 720px; height: 720px; inset-inline-end: -230px; top: -190px; z-index: -1; border: 1px solid rgba(239,47,56,.22); border-radius: 50%; box-shadow: 0 0 0 70px rgba(239,47,56,.035), 0 0 0 140px rgba(239,47,56,.025); }
.aee-v2-hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.aee-v2-hero-layout { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(360px,.83fr); gap: 72px; align-items: center; }
.aee-v2-hero-copy { max-width: 760px; }
.aee-v2-hero-copy .aee-kicker { margin-bottom: 25px; color: #ff7c83; letter-spacing: .13em; font-weight: 800; }
.aee-v2-hero-copy h1 { margin: 0; font: 900 clamp(48px,6vw,86px)/.98 Manrope,Cairo,sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
[dir="rtl"] .aee-v2-hero-copy h1 { font-family: Cairo,sans-serif; letter-spacing: -.035em; line-height: 1.12; }
.aee-v2-hero-copy h1 strong { display: block; margin-top: 10px; color: var(--aee-red); }
.aee-v2-hero-copy > p { max-width: 700px; margin: 28px 0 32px; color: #c8d0dc; font-size: 18px; line-height: 1.9; }
.aee-v2-profile-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding: 10px 0; }
.aee-v2-profile-link:hover { color: #ff7c83; border-color: #ff7c83; }
.aee-v2-hero-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; max-width: 650px; margin-top: 42px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.13); }
.aee-v2-hero-metrics > div { padding: 22px 24px; background: rgba(7,17,31,.76); backdrop-filter: blur(10px); }
.aee-v2-hero-metrics b { display: block; color: #fff; font: 800 28px/1 Manrope,Cairo,sans-serif; }
.aee-v2-hero-metrics span { display: block; margin-top: 8px; color: #9eabbc; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }

.aee-v2-command-card { position: relative; overflow: hidden; padding: 1px; border: 1px solid rgba(255,255,255,.2); background: rgba(8,18,32,.88); box-shadow: 0 35px 90px rgba(0,0,0,.34); backdrop-filter: blur(16px); }
.aee-v2-command-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--aee-red); }
[dir="rtl"] .aee-v2-command-card::before { inset: 0 0 0 auto; }
.aee-v2-command-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.13); color: #aab5c5; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.aee-v2-command-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--aee-green); box-shadow: 0 0 0 7px rgba(36,195,106,.12); }
.aee-v2-command-core { margin: 24px; padding: 26px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.aee-v2-command-core small { color: #8e9caf; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.aee-v2-command-core b { display: block; margin: 8px 0 14px; font: 800 21px/1.35 Manrope,Cairo,sans-serif; }
.aee-v2-command-core p { display: flex; align-items: center; gap: 9px; margin: 0; color: #9eabbc; font-size: 12px; }
.aee-v2-command-list { list-style: none; margin: 0; padding: 0 24px 24px; }
.aee-v2-command-list li { display: flex; gap: 14px; align-items: center; min-height: 52px; border-top: 1px solid rgba(255,255,255,.09); color: #d7dde7; font-size: 13px; font-weight: 700; }
.aee-v2-command-list li span { color: var(--aee-red); font: 800 11px/1 Manrope,sans-serif; }

.aee-v2-solutions { background: var(--aee-paper); }
.aee-v2-discipline-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.aee-v2-discipline { overflow: hidden; border: 1px solid var(--aee-line); background: #fff; box-shadow: 0 18px 45px rgba(7,17,31,.06); transition: transform .25s ease, box-shadow .25s ease; }
.aee-v2-discipline:hover { transform: translateY(-6px); box-shadow: var(--aee-shadow); }
.aee-v2-discipline-media { position: relative; aspect-ratio: 1.65; overflow: hidden; background: var(--aee-ink); }
.aee-v2-discipline-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 25%,rgba(7,17,31,.8)); }
.aee-v2-discipline-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.aee-v2-discipline:hover .aee-v2-discipline-media img { transform: scale(1.055); }
.aee-v2-discipline-media span { position: absolute; z-index: 1; inset-inline-end: 20px; bottom: 16px; color: #fff; font: 800 27px/1 Manrope,sans-serif; }
.aee-v2-discipline-body { padding: 28px; }
.aee-v2-discipline-body > small { color: var(--aee-red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.aee-v2-discipline-body h3 { margin: 8px 0 12px; color: var(--aee-ink); font-size: 24px; line-height: 1.3; }
.aee-v2-discipline-body > p { min-height: 76px; margin: 0 0 20px; color: var(--aee-slate); line-height: 1.75; }
.aee-v2-discipline-body ul { list-style: none; padding: 0; margin: 0 0 21px; }
.aee-v2-discipline-body li { border-top: 1px solid #edf0f4; }
.aee-v2-discipline-body li a { display: flex; align-items: center; gap: 8px; padding: 11px 0; color: #253248; font-size: 12px; font-weight: 700; text-decoration: none; }
.aee-v2-discipline-body li a:hover { color: var(--aee-red); }

.aee-v2-about { background: #fff; }
.aee-v2-about-layout { display: grid; grid-template-columns: minmax(340px,.85fr) minmax(0,1.15fr); gap: 78px; align-items: center; }
.aee-v2-about-media { position: relative; min-height: 520px; background: var(--aee-paper); }
.aee-v2-about-media::before { content: ""; position: absolute; inset: 28px 28px -22px -22px; border: 1px solid rgba(239,47,56,.38); z-index: 0; }
[dir="rtl"] .aee-v2-about-media::before { inset: 28px -22px -22px 28px; }
.aee-v2-about-media img { position: relative; z-index: 1; width: 100%; height: 520px; object-fit: cover; }
.aee-v2-about-media > div { position: absolute; z-index: 2; inset-inline-end: -28px; bottom: 35px; width: 150px; padding: 24px; color: #fff; background: var(--aee-red); box-shadow: 0 18px 44px rgba(239,47,56,.3); }
.aee-v2-about-media b { display: block; font: 800 35px/1 Manrope,sans-serif; }
.aee-v2-about-media span { display: block; margin-top: 6px; font-size: 11px; font-weight: 800; }
.aee-v2-about-copy h2 { margin: 10px 0 20px; color: var(--aee-ink); font-size: clamp(33px,4vw,54px); line-height: 1.16; letter-spacing: -.035em; }
[dir="rtl"] .aee-v2-about-copy h2 { letter-spacing: -.02em; }
.aee-v2-about-copy > p { color: var(--aee-slate); font-size: 17px; line-height: 1.95; }
.aee-v2-value-list { margin: 30px 0; border-top: 1px solid var(--aee-line); }
.aee-v2-value-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--aee-line); }
.aee-v2-value-list svg { color: var(--aee-red); }
.aee-v2-value-list b,.aee-v2-value-list small { display: block; }
.aee-v2-value-list b { color: var(--aee-ink); font-size: 15px; }
.aee-v2-value-list small { margin-top: 4px; color: var(--aee-slate); line-height: 1.6; }

.aee-v2-process { position: relative; overflow: hidden; color: #fff; background: var(--aee-ink); }
.aee-v2-process::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.4) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.4) 1px,transparent 1px); background-size: 46px 46px; }
.aee-v2-process .aee-container { position: relative; }
.aee-v2-process-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid rgba(255,255,255,.15); }
.aee-v2-process-card { min-height: 260px; padding: 34px 30px; border-inline-end: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.025); }
.aee-v2-process-card:last-child { border-inline-end: 0; }
.aee-v2-process-card > b { color: var(--aee-red); font: 800 32px/1 Manrope,sans-serif; }
.aee-v2-process-card h3 { margin: 42px 0 12px; color: #fff; font-size: 19px; line-height: 1.45; }
.aee-v2-process-card p { margin: 0; color: #9eaabc; font-size: 13px; line-height: 1.8; }

.aee-v2-partners { background: #fff; }
.aee-v2-logo-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.aee-v2-logo-card { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 20px; border: 1px solid #e2e6ec; background: #fff; filter: grayscale(1); opacity: .78; transition: opacity .2s ease, filter .2s ease, border-color .2s ease, transform .2s ease; }
.aee-v2-logo-card:hover { opacity: 1; filter: none; border-color: rgba(239,47,56,.5); transform: translateY(-3px); }
.aee-v2-logo-card img { display: block; max-width: 145px; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.aee-v2-partners .aee-center { margin-top: 34px; }

.aee-v2-projects { background: var(--aee-paper); }
.aee-v2-project-grid .aee-project-card { background: #fff; }
.aee-v2-project-grid .aee-project-media { aspect-ratio: 1.45; }
.aee-v2-project-grid .aee-project-media img { width: 100%; height: 100%; object-fit: cover; }

.aee-v2-sectors { background: #fff; }
.aee-v2-sector-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.aee-v2-sector { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 165px; padding: 25px; overflow: hidden; color: #fff; background: var(--aee-ink-soft); }
.aee-v2-sector::after { content: ""; position: absolute; width: 100px; height: 100px; inset-inline-end: -35px; top: -35px; border: 1px solid rgba(239,47,56,.32); border-radius: 50%; }
.aee-v2-sector svg { color: var(--aee-red); }
.aee-v2-sector span { position: relative; z-index: 1; font-weight: 800; line-height: 1.45; }

.aee-v2-service-group:nth-of-type(even) { background: var(--aee-paper); }
.aee-v2-service-group-head { display: grid; grid-template-columns: 1.25fr .75fr; gap: 55px; align-items: center; margin-bottom: 42px; }
.aee-v2-service-group-head h2 { margin: 7px 0 12px; color: var(--aee-ink); font-size: 42px; }
.aee-v2-service-group-head p { max-width: 700px; color: var(--aee-slate); font-size: 16px; line-height: 1.8; }
.aee-v2-service-group-head img { width: 100%; height: 210px; object-fit: cover; box-shadow: var(--aee-shadow); }
.aee-v2-service-group .aee-solution-card h3 { font-size: 19px; }
.aee-v2-service-visual { overflow: hidden; margin: 0 0 34px; border: 1px solid var(--aee-line); background: var(--aee-paper); box-shadow: 0 18px 45px rgba(7,17,31,.08); }
.aee-v2-service-visual img { display: block; width: 100%; height: clamp(270px,36vw,440px); object-fit: cover; }

.aee-v2-brand-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.aee-v2-brand-card { padding: 30px; border: 1px solid var(--aee-line); background: #fff; }
.aee-v2-brand-logo { display: flex; align-items: center; justify-content: center; height: 105px; margin-bottom: 23px; padding: 14px; background: var(--aee-paper); }
.aee-v2-brand-logo img { max-width: 180px; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.aee-v2-brand-card > small { color: var(--aee-red); font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.aee-v2-brand-card h2 { margin: 7px 0 10px; color: var(--aee-ink); font-size: 23px; }
.aee-v2-brand-card p { min-height: 68px; color: var(--aee-slate); font-size: 14px; line-height: 1.7; }
.aee-v2-brand-single { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start; }
.aee-v2-brand-single .aee-v2-brand-logo { height: 260px; }
.aee-v2-brand-single .aee-v2-brand-logo img { max-width: 80%; max-height: 150px; }

.aee-v2-download-grid { display: grid; gap: 18px; max-width: 950px; }
.aee-v2-download-card { display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center; padding: 28px; border: 1px solid var(--aee-line); background: #fff; }
.aee-v2-download-card > span { display: grid; place-items: center; width: 58px; height: 58px; color: #fff; background: var(--aee-red); }
.aee-v2-download-card small { color: var(--aee-red); font-weight: 900; }
.aee-v2-download-card h2 { margin: 4px 0 8px; color: var(--aee-ink); font-size: 22px; }
.aee-v2-download-card p { margin: 0; color: var(--aee-slate); }

.aee-v2-contact-grid { align-items: stretch; margin-top: 40px; }
.aee-v2-contact-item { display: grid !important; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; margin: 0 !important; padding: 17px 0; border-bottom: 1px solid var(--aee-line); color: var(--aee-ink) !important; text-decoration: none; }
.aee-v2-contact-item svg { color: var(--aee-red); }
.aee-v2-contact-item b,.aee-v2-contact-item span { display: block; }
.aee-v2-contact-item b { margin-bottom: 4px; font-size: 12px; }
.aee-v2-contact-item span { color: var(--aee-slate); line-height: 1.7; }
.aee-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; }
.aee-consent input { flex: 0 0 auto; width: 18px !important; height: 18px; margin-top: 2px; }
.aee-consent span { color: var(--aee-slate); font-size: 12px; line-height: 1.6; }

.aee-v2-footer .aee-logo-footer { width: 265px; max-width: 100%; max-height: 68px; padding: 7px 10px; object-fit: contain; background: #fff; }
.aee-v2-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.aee-v2-socials a { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border: 1px solid rgba(255,255,255,.22); text-decoration: none; }
.aee-v2-socials a:hover { color: #fff; border-color: var(--aee-red); background: var(--aee-red); }
.aee-v2-socials-dark a { color: var(--aee-ink); border-color: var(--aee-line); }
.aee-v2-download-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.aee-v2-download-link svg { color: var(--aee-red); }
.aee-v2-whatsapp { position: fixed; z-index: 999; inset-inline-end: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; min-height: 55px; padding: 0 18px; color: #fff; border-radius: 40px; background: #18b85b; box-shadow: 0 14px 38px rgba(24,184,91,.32); text-decoration: none; font-size: 13px; font-weight: 800; transition: transform .2s ease; }
.aee-v2-whatsapp:hover { color: #fff; transform: translateY(-3px); }

@media (max-width: 1120px) {
  .aee-header .aee-logo { width: 190px; }
  .aee-v2-hero-layout { grid-template-columns: 1fr .75fr; gap: 38px; }
  .aee-v2-discipline-grid { grid-template-columns: 1fr; }
  .aee-v2-discipline { display: grid; grid-template-columns: .8fr 1.2fr; }
  .aee-v2-discipline-media { aspect-ratio: auto; min-height: 100%; }
  .aee-v2-discipline-body > p { min-height: 0; }
  .aee-v2-logo-grid { grid-template-columns: repeat(4,1fr); }
  .aee-v2-sector-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .aee-v2-hero { min-height: 0; padding: 76px 0 60px; }
  .aee-v2-hero-layout,.aee-v2-about-layout,.aee-v2-service-group-head,.aee-v2-brand-single { grid-template-columns: 1fr; }
  .aee-v2-command-card { max-width: 580px; }
  .aee-v2-about-layout { gap: 52px; }
  .aee-v2-about-media,.aee-v2-about-media img { min-height: 400px; height: 400px; }
  .aee-v2-process-grid { grid-template-columns: repeat(2,1fr); }
  .aee-v2-process-card { border-bottom: 1px solid rgba(255,255,255,.15); }
  .aee-v2-logo-grid { grid-template-columns: repeat(3,1fr); }
  .aee-v2-brand-grid { grid-template-columns: repeat(2,1fr); }
  .aee-v2-service-group-head img { order: -1; }
}

@media (max-width: 600px) {
  .aee-header .aee-brand { min-width: 0; }
  .aee-header .aee-logo { width: 155px; max-height: 44px; }
  .aee-v2-hero-copy h1 { font-size: 42px; }
  .aee-v2-hero-copy > p { font-size: 15px; }
  .aee-v2-hero-metrics { grid-template-columns: 1fr; }
  .aee-v2-hero-metrics > div { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 12px; padding: 15px 18px; }
  .aee-v2-hero-metrics span { margin: 0; }
  .aee-v2-discipline { display: block; }
  .aee-v2-discipline-media { aspect-ratio: 1.4; min-height: 0; }
  .aee-v2-discipline-body { padding: 23px; }
  .aee-v2-about-media,.aee-v2-about-media img { min-height: 315px; height: 315px; }
  .aee-v2-about-media > div { inset-inline-end: 12px; bottom: 12px; }
  .aee-v2-process-grid,.aee-v2-brand-grid { grid-template-columns: 1fr; }
  .aee-v2-process-card { min-height: 0; }
  .aee-v2-process-card h3 { margin-top: 24px; }
  .aee-v2-logo-grid { grid-template-columns: repeat(2,1fr); }
  .aee-v2-logo-card { min-height: 92px; padding: 15px; }
  .aee-v2-logo-card img { max-width: 118px; max-height: 48px; }
  .aee-v2-sector-grid { grid-template-columns: repeat(2,1fr); }
  .aee-v2-sector { min-height: 135px; padding: 20px; }
  .aee-v2-download-card { grid-template-columns: 50px 1fr; }
  .aee-v2-download-card .aee-button { grid-column: 1 / -1; }
  .aee-v2-whatsapp { inset-inline-end: 14px; bottom: 14px; width: 54px; height: 54px; min-height: 54px; padding: 0; justify-content: center; }
  .aee-v2-whatsapp span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .aee-v2-discipline,.aee-v2-discipline-media img,.aee-v2-logo-card,.aee-v2-whatsapp { transition: none; }
}
