/* Version 7: ISHRAQ identity and refined responsive logo lockup. */
:root {
  --navy: #071a33;
  --navy-2: #0b2444;
  --navy-3: #123258;
  --ink: #0a203c;
  --muted: #5d6875;
  --paper: #f4f3ef;
  --white: #ffffff;
  --amber: #f7a51a;
  --amber-soft: #ffd27d;
  --violet: #6941c6;
  --cyan: #47c0ba;
  --line: rgba(8, 28, 53, 0.14);
  --radius: 28px;
  --shadow: 0 22px 70px rgba(7, 26, 51, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px;
  background: var(--white); color: var(--navy); border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.page-shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.section { padding: 132px 0; }
.eyebrow {
  margin: 0 0 18px; color: #9a6403; font-size: .74rem; line-height: 1.2; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow.light { color: var(--amber); }
.eyebrow.violet { color: #8a63de; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.04; letter-spacing: -.04em; }
h2 { font-size: clamp(2.5rem, 5vw, 5.25rem); }
p { color: var(--muted); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 86px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 4vw;
  border-bottom: 1px solid rgba(255,255,255,.1); transition: background .25s, height .25s, box-shadow .25s;
}
.site-header.scrolled {
  height: 72px; background: rgba(7, 26, 51, .94); backdrop-filter: blur(18px);
  box-shadow: 0 8px 34px rgba(0,0,0,.14);
}
.brand { display: block; width: 194px; }
.brand img { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; transition: color .2s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--amber); }
.site-nav .nav-cta {
  padding: 12px 17px; color: var(--navy); background: var(--amber); border-radius: 999px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { color: var(--navy); background: #ffc45d; }
.menu-button { display: none; }

.hero {
  position: relative; min-height: max(780px, 100svh); height: auto; overflow: hidden; color: var(--white);
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 74% 22%, #18375a 0, var(--navy) 34%, #051528 76%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 76px 76px; mask-image: linear-gradient(to bottom right, black, transparent 76%);
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%; left: 61%; top: 5%;
  background: radial-gradient(circle, rgba(105,65,198,.24), rgba(105,65,198,0) 68%); filter: blur(6px);
}
.signal-ring { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.signal-ring::before, .signal-ring::after, .signal-ring i { content: ""; position: absolute; border-radius: 50%; }
.signal-ring-one { width: 580px; height: 580px; right: -70px; top: 90px; animation: slow-spin 34s linear infinite; }
.signal-ring-one::before { inset: 62px; border: 1px solid rgba(247,165,26,.28); }
.signal-ring-one::after { inset: 145px; border: 1px solid rgba(71,192,186,.19); }
.signal-ring-one i:nth-child(1) { width: 42px; height: 42px; top: 75px; left: 70px; background: var(--amber); box-shadow: 0 0 55px rgba(247,165,26,.55); }
.signal-ring-one i:nth-child(2) { width: 13px; height: 13px; right: 56px; top: 272px; background: var(--cyan); }
.signal-ring-one i:nth-child(3) { width: 8px; height: 8px; left: 161px; bottom: 32px; background: #9f7aea; }
.signal-ring-two { width: 240px; height: 240px; right: 480px; top: 177px; border-style: dashed; opacity: .58; animation: reverse-spin 24s linear infinite; }
.signal-ring-two i:nth-child(1) { width: 10px; height: 10px; right: 22px; top: 49px; background: var(--violet); }
.signal-ring-two i:nth-child(2) { width: 6px; height: 6px; left: 16px; bottom: 65px; background: var(--white); }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes reverse-spin { to { transform: rotate(-360deg); } }
.hero-content {
  position: relative; z-index: 3; flex: 1; min-height: 668px; display: flex; flex-direction: column;
  justify-content: center; padding-top: 100px; padding-bottom: 56px;
}
.hero h1 { max-width: none; margin: 0 0 24px; font-size: clamp(3.75rem, 5.4vw, 6.15rem); line-height: .94; }
.hero-line { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--amber); }
.hero-copy { max-width: 720px; margin-bottom: 30px; color: rgba(255,255,255,.72); font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }
.button {
  min-height: 52px; display: inline-flex; align-items: center; gap: 16px; padding: 0 23px;
  border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: .9rem;
  transition: transform .2s, background .2s, border-color .2s;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--amber); }
.button-ghost { color: white; border-color: rgba(255,255,255,.34); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.signal-strip {
  position: relative; z-index: 5; border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(3, 16, 31, .42); backdrop-filter: blur(12px);
}
.signal-grid { height: 112px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.signal-grid > div { display: flex; align-items: center; gap: 17px; min-height: 58px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.14); }
.signal-grid > div:first-child { padding-left: 0; border-left: 0; }
.signal-grid strong { color: var(--amber); font-size: 1.55rem; letter-spacing: -.04em; }
.signal-grid span { color: rgba(255,255,255,.66); font-size: .84rem; }

.intro { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1fr 1.75fr 1fr; gap: 46px; align-items: start; margin-bottom: 76px; }
.section-heading h2 { grid-column: 2; margin: 0; }
.section-heading > p:last-child { padding-top: 10px; }
.product-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product-card {
  position: relative; min-height: 500px; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 42px; border-radius: var(--radius); text-decoration: none;
  box-shadow: var(--shadow); isolation: isolate;
}
.product-card::after {
  content: ""; position: absolute; inset: auto -15% -44% 20%; height: 75%; border-radius: 50%;
  border: 1px solid currentColor; opacity: .2; z-index: -1; transition: transform .4s;
}
.product-card:hover::after { transform: scale(1.1) translateY(-4%); }
.product-card-madar { color: white; background: linear-gradient(150deg, #5631ae, #1c2b62 60%, var(--navy)); }
.product-card-solar { color: var(--navy); background: linear-gradient(150deg, #ffc95f, var(--amber) 55%, #df8300); }
.product-card .eyebrow { color: currentColor; opacity: .65; }
.product-card h3 { margin: 0 0 18px; font-size: clamp(3.6rem, 7vw, 7rem); }
.product-card p { max-width: 430px; color: currentColor; opacity: .74; }
.product-index { align-self: flex-end; font-size: .78rem; font-weight: 900; letter-spacing: .2em; }
.card-link { font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.regional-note {
  display: grid; grid-template-columns: .72fr 2fr; gap: 52px; align-items: start; margin: 0 0 28px;
  padding: 38px 42px; color: white; background: var(--navy); border-radius: var(--radius);
}
.regional-note h3 { max-width: 780px; margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 3.2rem); }
.regional-note p:last-child { max-width: 790px; margin-bottom: 0; color: rgba(255,255,255,.68); }

.madar-section { background: white; }
.split-heading { display: grid; grid-template-columns: 1fr 1.15fr; gap: 110px; align-items: end; margin-bottom: 72px; }
.madar-wordmark { width: min(330px, 78%); }
.large-copy { margin: 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; }
.product-explorer { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.explorer-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.explorer-tab {
  appearance: none; border: 0; border-left: 1px solid var(--line); padding: 24px 30px; background: #fbfbf8;
  color: var(--muted); text-align: left; font-weight: 800; cursor: pointer; transition: background .2s, color .2s;
}
.explorer-tab:first-child { border-left: 0; }
.explorer-tab span { margin-right: 16px; font-size: .7rem; letter-spacing: .1em; }
.explorer-tab.active { color: var(--ink); background: white; box-shadow: inset 0 3px var(--violet); }
.explorer-panel { display: none; grid-template-columns: .86fr 1.45fr; min-height: 520px; background: white; }
.explorer-panel.active { display: grid; }
.explorer-copy { align-self: center; padding: 50px; }
.explorer-copy h3 { margin-bottom: 20px; font-size: clamp(2.2rem, 4vw, 4.1rem); }
.feature-list { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 10px 0; color: var(--muted); font-size: .9rem; }
.feature-list span { display: block; color: var(--ink); font-weight: 800; }
.product-visual { position: relative; min-height: 430px; margin: 0; display: grid; place-items: center; overflow: hidden; background: #eef1ef; }
.product-visual img { width: 90%; height: 80%; object-fit: contain; filter: drop-shadow(0 18px 32px rgba(7,26,51,.18)); }
.product-visual figcaption { position: absolute; left: 26px; bottom: 20px; color: var(--muted); font-size: .72rem; }
.product-visual.dark-visual { background: #081322; }
.product-visual.dark-visual img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.product-visual.dark-visual figcaption { color: rgba(255,255,255,.64); }

.solar-section { background: #ebe9e2; }
.solar-hero { position: relative; min-height: 650px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.solar-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.solar-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,18,35,.94), rgba(5,18,35,.55) 52%, rgba(5,18,35,.04)); }
.solar-copy { position: relative; z-index: 2; max-width: 690px; padding: 84px 70px; color: white; }
.ishraq-logo-card { width: min(500px, 100%); margin-bottom: 28px; padding: 12px 18px; background: rgba(255,255,255,.96); border-radius: 16px; }
.ishraq-wordmark { width: 100%; }
.solar-copy h2 { margin-bottom: 24px; font-size: clamp(3.2rem, 6vw, 6.2rem); }
.solar-copy p { max-width: 560px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.workflow { padding: 100px 0 76px; }
.workflow-heading { display: grid; grid-template-columns: 1fr 2.2fr; gap: 60px; align-items: start; margin-bottom: 54px; }
.workflow-heading h3 { max-width: 760px; margin: 0; font-size: clamp(2.5rem, 4.8vw, 4.8rem); }
.workflow-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0; margin: 0; background: rgba(8,28,53,.16); border: 1px solid rgba(8,28,53,.16); }
.workflow-steps li { min-height: 285px; padding: 30px; background: var(--paper); }
.workflow-steps span { display: block; margin-bottom: 50px; color: var(--amber); font-size: .76rem; font-weight: 900; letter-spacing: .16em; }
.workflow-steps h4 { margin-bottom: 14px; font-size: 1.55rem; }
.workflow-steps p { font-size: .9rem; }
.dashboard-showcase { display: grid; grid-template-columns: 1.55fr .65fr; gap: 20px; }
.dashboard-main { min-height: 465px; margin: 0; display: grid; place-items: center; overflow: hidden; padding: 38px; background: white; border-radius: var(--radius); }
.dashboard-main img { width: 100%; filter: drop-shadow(0 16px 24px rgba(7,26,51,.16)); }
.regional-card { padding: 44px; color: white; background: var(--navy); border-radius: var(--radius); }
.regional-card h3 { margin: 50px 0 18px; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.regional-card > p:not(.eyebrow) { color: rgba(255,255,255,.66); font-size: .92rem; }
.regional-card ul { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.regional-card li { padding: 9px 0; color: rgba(255,255,255,.78); font-size: .86rem; }
.regional-card li::before { content: "·"; margin-right: 10px; color: var(--amber); font-weight: 900; }

.research-section { position: relative; overflow: hidden; color: white; background: var(--navy); }
.research-section::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -250px; top: -200px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: inset 0 0 110px rgba(105,65,198,.2);
}
.research-block { position: relative; padding: 70px; color: var(--ink); background: #f5f2fb; border-radius: var(--radius); }
.research-heading { display: grid; grid-template-columns: .8fr 1.6fr; gap: 50px; margin-bottom: 55px; }
.research-heading h3 { margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.6rem); }
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.publication { padding: 26px; border: 1px solid rgba(105,65,198,.18); background: white; border-radius: 18px; }
.publication span { color: var(--violet); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.publication h4 { margin: 44px 0 18px; font-size: 1.3rem; line-height: 1.18; }
.publication p { margin-bottom: 0; font-size: .86rem; }

.contact-section { padding: 130px 0; color: var(--ink); background: var(--amber); }
.contact-section .eyebrow { color: rgba(7,26,51,.6); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; }
.contact-grid h2 { margin: 0; max-width: 780px; font-size: clamp(3.2rem, 6.3vw, 6.6rem); }
.contact-card { padding: 35px 0 0; border-top: 1px solid rgba(7,26,51,.28); }
.contact-card > p { color: rgba(7,26,51,.68); }
.email-link { display: inline-flex; gap: 15px; align-items: center; margin: 12px 0 44px; font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.founder-line { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(7,26,51,.2); }
.founder-line span { color: rgba(7,26,51,.56); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.site-footer { padding: 34px 0; color: white; background: #041225; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid img { width: 170px; }
.footer-grid p { margin: 0; color: rgba(255,255,255,.5); font-size: .74rem; }
.footer-grid p:last-child { text-align: right; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .signal-ring { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .page-shell { width: min(100% - 40px, 760px); }
  .section { padding: 94px 0; }
  .site-header { height: 74px; padding: 0 22px; }
  .brand { width: 168px; }
  .menu-button { display: grid; gap: 5px; width: 42px; height: 42px; place-content: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: transparent; }
  .menu-button span:not(.sr-only) { display: block; width: 17px; height: 1px; background: white; transition: transform .2s, opacity .2s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 74px 0 0; display: none; flex-direction: column; align-items: flex-start; gap: 8px; padding: 38px 24px; background: var(--navy); }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: 14px 0; font-size: 1.4rem; }
  .site-nav .nav-cta { width: auto; margin-top: 20px; padding: 14px 20px; font-size: .95rem; }
  .hero { min-height: max(760px, 100svh); }
  .hero-content { min-height: 648px; padding-top: 100px; padding-bottom: 42px; }
  .hero h1 { font-size: clamp(3.6rem, 8vw, 5.4rem); line-height: .96; }
  .signal-ring-one { right: -330px; top: 100px; }
  .signal-ring-two { right: 100px; top: 120px; }
  .section-heading, .split-heading, .workflow-heading, .research-heading, .contact-grid, .regional-note { grid-template-columns: 1fr; gap: 26px; }
  .section-heading h2 { grid-column: auto; }
  .product-card { min-height: 430px; padding: 32px; }
  .split-heading { align-items: start; }
  .explorer-panel { grid-template-columns: 1fr; }
  .explorer-copy { padding: 42px; }
  .product-visual { min-height: 410px; }
  .solar-hero { min-height: 600px; }
  .solar-copy { padding: 70px 44px; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .workflow-steps li { min-height: 245px; }
  .dashboard-showcase { grid-template-columns: 1fr; }
  .dashboard-main { min-height: 380px; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication h4 { margin-top: 24px; }
  .research-block { padding: 46px; }
  .contact-grid { gap: 65px; }
}

@media (max-width: 640px) {
  .page-shell { width: calc(100% - 32px); }
  .section { padding: 76px 0; }
  .hero { min-height: max(740px, 100svh); }
  .hero-content { min-height: 590px; padding-top: 110px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(3.05rem, 13vw, 4.2rem); line-height: .94; }
  .hero-line { white-space: normal; }
  .hero-copy { font-size: .98rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .signal-grid { height: 150px; grid-template-columns: 1fr 1fr; }
  .signal-grid > div { padding-left: 12px; gap: 8px; }
  .signal-grid > div:last-child { display: none; }
  .signal-grid strong { font-size: 1.25rem; }
  .signal-grid span { font-size: .72rem; }
  .product-pair { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .product-card h3 { font-size: 3.8rem; }
  .regional-note { padding: 30px 24px; }
  .explorer-tabs { grid-template-columns: 1fr; }
  .explorer-tab { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .explorer-tab:first-child { border-top: 0; }
  .explorer-copy { padding: 34px 26px; }
  .product-visual { min-height: 300px; }
  .solar-hero { min-height: 650px; }
  .solar-overlay { background: linear-gradient(0deg, rgba(5,18,35,.96), rgba(5,18,35,.25)); }
  .solar-copy { position: absolute; left: 0; bottom: 0; padding: 32px 28px; }
  .ishraq-logo-card { width: min(360px, 100%); margin-bottom: 20px; padding: 9px 12px; }
  .solar-copy h2 { font-size: 3rem; }
  .workflow { padding-top: 72px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { min-height: 205px; }
  .workflow-steps span { margin-bottom: 30px; }
  .dashboard-main { min-height: auto; padding: 15px; }
  .regional-card { padding: 32px; }
  .roadmap li { grid-template-columns: 58px 1fr; }
  .research-block { margin-top: 90px; padding: 32px 22px; }
  .contact-section { padding: 90px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid p:last-child { text-align: left; }
}
