:root {
  color-scheme: light;
  --navy: #0b1f33;
  --navy-2: #14324a;
  --cream: #f7f3e8;
  --teal: #0f9d85;
  --teal-dark: #087563;
  --teal-light: #ddf5ef;
  --gold: #f4c95d;
  --gold-light: #fff4cc;
  --ink: #172b3a;
  --muted: #61717e;
  --line: #d7e0e5;
  --red: #b42318;
  --shadow: 0 24px 70px rgba(11, 31, 51, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(244, 201, 93, 0.22), transparent 26rem),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  color: var(--ink);
  font-family: Inter, "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 224, 229, 0.8);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.topbar .shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(11, 31, 51, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button,
.primary-button,
.secondary-button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font: inherit;
  font-weight: 780;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ghost-button {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}

.primary-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 157, 133, 0.24);
}

.secondary-button {
  background: var(--navy);
  color: #fff;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 86px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  border: 1px solid rgba(15, 157, 133, 0.25);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.84rem;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 .accent {
  color: var(--teal);
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.hero-actions a {
  text-decoration: none;
}

.proof-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--muted);
  font-size: 0.91rem;
}

.proof-line span::before {
  content: "✓";
  margin-inline-end: 7px;
  color: var(--teal);
  font-weight: 900;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  padding: 32px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  right: -90px;
  top: -110px;
  background: rgba(244, 201, 93, 0.24);
  filter: blur(4px);
}

.mini-label {
  color: #a8c1d2;
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.score {
  margin: 8px 0 28px;
  color: var(--gold);
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-metric {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 1.28rem;
}

.section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 15px 50px rgba(11, 31, 51, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 730;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d4da;
  border-radius: 13px;
  padding: 10px 13px;
  background: #fffdf5;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
}

input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 157, 133, 0.14);
}

.full-row {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.status-line {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.result-panel {
  position: sticky;
  top: 96px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.result-panel h3 {
  margin-bottom: 22px;
  font-size: 1.45rem;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 12px;
}

.result-row span {
  color: #b7cbd8;
  font-size: 0.87rem;
}

.result-row strong {
  color: var(--gold);
  font-size: 1.25rem;
  text-align: end;
}

[data-result="verdict"][data-state="loss"] {
  color: #ff8c82;
}

[data-result="verdict"][data-state="below_target"] {
  color: var(--gold);
}

[data-result="verdict"][data-state="healthy"] {
  color: #65dfc7;
}

.privacy-note {
  margin: 20px 0 0;
  color: #9db5c4;
  font-size: 0.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px;
  background: #fff;
}

.feature-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--gold-light);
  color: var(--navy);
  font-weight: 900;
}

.feature h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  border-radius: 34px;
  padding: 38px;
  background: var(--teal-light);
  border: 1px solid rgba(15, 157, 133, 0.25);
}

.price {
  display: block;
  margin: 4px 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price-note,
.launch-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.launch-note {
  margin: 18px 0 0;
  border-inline-start: 4px solid var(--teal);
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.7);
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  background: #fff;
}

summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

footer {
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-page main {
  padding: 54px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
}

.dashboard-card strong {
  display: block;
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: start;
}

.data-table th {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 900px) {
  .hero-grid,
  .calculator,
  .offer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
  }

  .feature-grid,
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar .shell {
    min-height: 62px;
  }

  .nav-actions .primary-button {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-card,
  .panel,
  .offer {
    border-radius: 22px;
    padding: 21px;
  }

  .form-grid,
  .feature-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .form-footer,
  .footer-row {
    align-items: stretch;
    flex-direction: column;
  }
}
