:root {
  --navy: #002444;
  --navy-soft: #334f63;
  --gold: #c68a1f;
  --gold-light: #e7ba65;
  --cream: #f5f1e8;
  --cream-deep: #e9e1d3;
  --white: #fffdf9;
  --muted: #67717a;
  --line: rgba(0, 36, 68, 0.12);
  --success: #2e7254;
  --error: #a23d3d;
  --shadow: 0 32px 80px rgba(0, 36, 68, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--cream);
  color: var(--navy);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.page-shell {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(24px, 5vw, 76px) 24px;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.3;
  background-image: linear-gradient(rgba(0, 36, 68, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 36, 68, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to left, black, transparent 80%);
}

.ambient { position: absolute; z-index: -2; border-radius: 50%; filter: blur(2px); }
.ambient--one { width: 620px; height: 620px; top: -330px; left: -180px; background: radial-gradient(circle, rgba(198, 138, 31, 0.18), transparent 68%); }
.ambient--two { width: 600px; height: 600px; bottom: -390px; right: -130px; background: radial-gradient(circle, rgba(0, 36, 68, 0.13), transparent 68%); }

.site-header, footer, .hero { width: min(100%, 1320px); margin-inline: auto; }

.site-header { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; width: 116px; height: 72px; align-items: center; overflow: visible; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }

.launch-status { display: flex; align-items: center; gap: 10px; color: var(--navy-soft); font-size: 14px; font-weight: 500; }
.status-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(198, 138, 31, 0.12); }
.status-dot::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(198, 138, 31, 0.4); border-radius: inherit; animation: pulse 2.2s ease-out infinite; }

.hero { min-height: 670px; display: grid; grid-template-columns: minmax(400px, 0.9fr) minmax(480px, 1.1fr); align-items: center; gap: clamp(48px, 8vw, 124px); padding-block: 48px 56px; }

.hero-copy { max-width: 620px; }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; color: var(--gold); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.eyebrow i { display: block; width: 46px; height: 1px; background: var(--gold); }

h1 { margin: 0; font-size: clamp(54px, 5.25vw, 80px); line-height: 1.08; letter-spacing: -0.05em; font-weight: 600; }
h1 span { color: var(--gold); position: relative; }
h1 span::after { content: ""; position: absolute; right: 4px; left: 4px; bottom: 3px; height: 7px; z-index: -1; background: rgba(198, 138, 31, 0.16); transform: rotate(-1deg); }

.hero-description { max-width: 570px; margin: 28px 0 0; color: #4e5f6c; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.9; }
.signup-block { margin-top: 40px; }
.signup-label { margin: 0 0 13px; color: var(--navy); font-size: 14px; font-weight: 600; }
.notify-form { display: flex; gap: 10px; max-width: 600px; }
.input-wrap { flex: 1; min-width: 0; position: relative; }
.input-wrap input { width: 100%; height: 58px; border: 1px solid rgba(0, 36, 68, 0.16); border-radius: 7px; outline: none; background: rgba(255, 253, 249, 0.82); color: var(--navy); padding: 0 48px 0 18px; transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.input-wrap input::placeholder { color: #8c9498; }
.input-wrap input:focus { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 36, 68, 0.07); }
.input-wrap input[aria-invalid="true"] { border-color: var(--error); }
.mail-icon { position: absolute; right: 18px; top: 50%; width: 18px; height: 14px; border: 1.6px solid var(--navy-soft); border-radius: 3px; transform: translateY(-50%); pointer-events: none; }
.mail-icon::after { content: ""; position: absolute; top: 1px; left: 2px; width: 10px; height: 7px; border-right: 1.5px solid var(--navy-soft); border-bottom: 1.5px solid var(--navy-soft); transform: rotate(45deg); }
.notify-form button { height: 58px; border: 0; border-radius: 7px; background: var(--navy); color: white; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; cursor: pointer; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 36, 68, 0.16); transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.notify-form button:hover { background: #093656; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0, 36, 68, 0.2); }
.notify-form button:focus-visible { outline: 3px solid rgba(198, 138, 31, 0.55); outline-offset: 3px; }
.notify-form button:disabled { opacity: 0.75; cursor: wait; transform: none; }
.button-arrow { color: var(--gold-light); font-size: 22px; line-height: 1; transition: transform 180ms ease; }
.notify-form button:hover .button-arrow { transform: translateX(-3px); }
.privacy-note, .form-message { margin: 10px 2px 0; min-height: 20px; font-size: 12px; color: #7a8388; }
.form-message { display: none; font-weight: 600; }
.form-message.is-visible { display: block; }
.form-message.is-success { color: var(--success); }
.form-message.is-error { color: var(--error); }
.form-message.is-visible + .privacy-note { display: none; }

.product-preview { position: relative; min-height: 580px; display: grid; place-items: center; direction: rtl; }
.product-preview::before { content: ""; position: absolute; width: 490px; height: 490px; border-radius: 50%; background: linear-gradient(145deg, rgba(0, 36, 68, 0.095), rgba(198, 138, 31, 0.1)); }
.preview-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(0, 36, 68, 0.1); }
.orbit--one { width: 540px; height: 540px; }
.orbit--two { width: 620px; height: 620px; border-style: dashed; opacity: 0.5; }

.dashboard-card { position: relative; z-index: 2; width: min(100%, 510px); min-height: 435px; padding: 28px; border: 1px solid rgba(0, 36, 68, 0.1); border-radius: 18px; background: rgba(255, 253, 249, 0.93); box-shadow: var(--shadow); backdrop-filter: blur(14px); transform: rotate(-1.6deg); }
.dashboard-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dashboard-topbar > div { display: flex; flex-direction: column; gap: 3px; }
.mini-label { color: #879095; font-size: 10px; }
.dashboard-topbar strong { font-size: 18px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 15px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.metric { position: relative; min-height: 128px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; background: #fff; }
.metric--active { background: var(--navy); color: #fff; border-color: var(--navy); }
.metric small { grid-column: 1; color: #7d868c; font-size: 10px; }
.metric--active small { color: #b8c7d2; }
.metric strong { grid-column: 1; font-size: 30px; line-height: 1.1; }
.metric .trend, .metric .subtle { grid-column: 1; align-self: end; font-size: 9px; color: var(--gold-light); }
.metric .subtle { color: #899197; }
.metric-icon { grid-column: 2; grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; background: rgba(198, 138, 31, 0.17); position: relative; }
.metric-icon::before, .metric-icon::after { content: ""; position: absolute; border: 1.4px solid currentColor; color: var(--gold); }
.metric-icon--briefcase::before { inset: 9px 6px 6px; border-radius: 2px; }
.metric-icon--briefcase::after { width: 8px; height: 4px; border-bottom: 0; border-radius: 2px 2px 0 0; top: 6px; right: 10px; }
.metric-icon--calendar::before { inset: 7px 6px 6px; border-radius: 2px; }
.metric-icon--calendar::after { width: 10px; border-width: 1.5px 0 0; top: 12px; right: 10px; box-shadow: 0 4px 0 currentColor; }
.progress-panel { margin-top: 14px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-heading strong { font-size: 13px; }
.panel-heading span { color: var(--gold); font-size: 9px; }
.project-row { display: grid; grid-template-columns: 32px 1fr 27px; align-items: center; gap: 10px; padding: 9px 0; }
.project-row + .project-row { border-top: 1px solid rgba(0, 36, 68, 0.07); }
.project-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: rgba(0, 36, 68, 0.09); color: var(--navy); font-size: 11px; font-weight: 700; }
.project-mark--gold { background: rgba(198, 138, 31, 0.14); color: #8d5c08; }
.project-info { min-width: 0; }
.project-info strong { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 600; }
.project-row > small { font-size: 9px; color: #7d868c; text-align: left; }
.progress-track { height: 4px; overflow: hidden; border-radius: 20px; background: #eceae4; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid rgba(0, 36, 68, 0.1); border-radius: 10px; background: rgba(255, 253, 249, 0.96); box-shadow: 0 18px 38px rgba(0, 36, 68, 0.13); animation: float 4.5s ease-in-out infinite; }
.floating-card--top { top: 79px; left: -5px; }
.floating-card--bottom { bottom: 80px; right: -19px; animation-delay: -2s; }
.floating-card div { display: flex; flex-direction: column; gap: 2px; }
.floating-card strong { font-size: 11px; }
.floating-card small { color: #7b858b; font-size: 9px; }
.floating-check { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(46, 114, 84, 0.12); color: var(--success); font-weight: 700; }
.floating-date { width: 34px; height: 38px; display: grid; place-items: center; align-content: center; border-radius: 5px; background: var(--navy); color: white; line-height: 1.05; }
.floating-date b { color: var(--gold-light); font-size: 13px; }
.floating-date small { color: #fff; font-size: 7px; }

footer { display: flex; align-items: center; justify-content: space-between; padding-top: 19px; border-top: 1px solid var(--line); color: #7c858b; font-size: 12px; }
footer p { margin: 0; }
.footer-note { display: flex; align-items: center; gap: 8px; }
.footer-note span { display: inline-block; width: 24px; height: 1px; background: var(--gold); }

.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; }

@keyframes pulse { from { opacity: 0.7; transform: scale(0.6); } to { opacity: 0; transform: scale(1.5); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 0.85fr; gap: 30px; }
  .product-preview { transform: scale(0.86); transform-origin: center; }
  .dashboard-card { width: 480px; }
}

@media (max-width: 820px) {
  .page-shell { padding-inline: 20px; overflow: hidden; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 58px; }
  .hero-copy { margin-inline: auto; text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-description { margin-inline: auto; }
  .notify-form { margin-inline: auto; }
  .product-preview { min-height: 520px; width: 100%; transform: none; }
  .product-preview::before { width: 430px; height: 430px; }
  .orbit--one { width: 470px; height: 470px; }
  .orbit--two { width: 540px; height: 540px; }
  .dashboard-card { width: min(88vw, 500px); }
}

@media (max-width: 560px) {
  .page-shell { padding-top: 15px; }
  .brand { width: 92px; height: 62px; }
  .launch-status { font-size: 11px; gap: 8px; }
  .status-dot { width: 7px; height: 7px; }
  .hero { min-height: auto; padding-block: 50px 42px; }
  .eyebrow { margin-bottom: 18px; }
  h1 { font-size: clamp(43px, 13vw, 58px); }
  .hero-description { margin-top: 22px; font-size: 16px; line-height: 1.8; }
  .signup-block { margin-top: 32px; }
  .notify-form { flex-direction: column; }
  .notify-form button, .input-wrap input { width: 100%; height: 56px; }
  .product-preview { min-height: 420px; margin-top: 8px; transform: scale(0.78); transform-origin: top center; margin-bottom: -70px; }
  .dashboard-card { width: 440px; }
  .floating-card--top { left: -4px; }
  .floating-card--bottom { right: -3px; }
  footer { flex-direction: column; gap: 7px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
