:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f7fafc;
  --teal: #0f766e;
  --blue: #2563eb;
  --orange: #ea580c;
  --violet: #7c3aed;
  --green: #16a34a;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8fafc;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(217, 224, 234, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: #111827;
  border-radius: 8px;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 15px;
}

.header-actions,
.hero-actions,
.center-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select,
.profile-form input,
.profile-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: #111827;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

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

.button-light {
  color: #111827;
  background: #f2f7f8;
  border-color: #dce8ea;
}

.full-width {
  width: 100%;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 82vh;
  padding: clamp(36px, 6vw, 82px) clamp(18px, 5vw, 72px) 28px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.82), rgba(240, 253, 250, 0.92)),
    linear-gradient(45deg, #eff6ff, #fff7ed);
}

.hero-copy,
.hero-visual,
.section-heading,
.order-card,
.review-card,
.price-card,
.profile-card {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.fine-print {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.hero-copy .fine-print {
  max-width: 620px;
  margin-top: 18px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  display: block;
  height: auto;
  width: 100%;
  border: 1px solid rgba(217, 224, 234, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.promo-band {
  padding: 0 clamp(18px, 5vw, 72px) 48px;
  background: linear-gradient(45deg, #eff6ff, #fff7ed);
}

.promo-carousel {
  position: relative;
  min-height: 172px;
  border: 1px solid rgba(217, 224, 234, 0.88);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: clamp(22px, 4vw, 42px);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.promo-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.promo-slide span {
  color: var(--orange);
  font-weight: 850;
  font-size: 14px;
}

.promo-slide strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.promo-slide p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.dot.is-active {
  width: 28px;
  background: #111827;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

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

.section-heading h2,
.split-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.section-heading p:not(.eyebrow),
.split-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.orders-grid,
.reviews-grid,
.pricing-grid,
.profile-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.order-card,
.review-card,
.price-card,
.profile-card,
.support-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.order-card,
.review-card,
.price-card,
.profile-card {
  padding: 22px;
}

.order-card {
  display: flex;
  min-height: 294px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.level-chip,
.order-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.chip-c,
.level-c {
  background: var(--teal);
}

.chip-b,
.level-b {
  background: var(--blue);
}

.chip-a,
.level-a {
  background: var(--orange);
}

.order-card h3,
.review-card h3,
.price-card h3,
.profile-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.order-card p,
.review-card p,
.price-card p,
.profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-meta,
.price-meta {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  color: #334155;
  font-size: 14px;
}

.order-meta span,
.price-meta span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid #edf2f7;
}

.reviews-section {
  background: #fff;
}

.review-card blockquote {
  margin: 14px 0 0;
  color: #1f2937;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  background: #eef8f6;
}

.support-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.profile-card {
  min-height: 210px;
}

.featured-profile {
  border-color: rgba(37, 99, 235, 0.42);
}

.level-badge {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
}

.center-actions {
  justify-content: center;
  margin-top: 24px;
}

.price-card {
  min-height: 340px;
}

.price {
  font-size: 42px;
  font-weight: 900;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: #334155;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #d1d5db;
  background: #111827;
}

.site-footer p {
  margin: 8px 0 0;
  color: #9ca3af;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.text-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(740px, 92vh);
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.detail-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.detail-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.detail-list dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 6px 0 0;
  color: #1f2937;
  line-height: 1.55;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.profile-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 750;
}

.saved-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.saved-profile .level-badge {
  margin: 0;
}

[dir="rtl"] .site-header,
[dir="rtl"] .hero-actions,
[dir="rtl"] .header-actions,
[dir="rtl"] .site-footer,
[dir="rtl"] .saved-profile {
  flex-direction: row-reverse;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .orders-grid,
  .reviews-grid,
  .pricing-grid,
  .profile-layout {
    grid-template-columns: 1fr 1fr;
  }

  .support-panel {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 12px;
    padding: 14px 18px;
  }

  .brand {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .language-select,
  .header-actions .button {
    flex: 1;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .orders-grid,
  .reviews-grid,
  .pricing-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 40px;
    overflow-wrap: anywhere;
  }

  .site-footer {
    flex-direction: column;
  }

  .section,
  .hero-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .promo-band {
    padding-right: 20px;
    padding-left: 20px;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .nav-links {
    gap: 18px;
    font-size: 14px;
  }

  .language-select,
  .header-actions .button {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.02;
  }

  .hero-lede {
    font-size: 17px;
  }

  .order-card,
  .review-card,
  .price-card,
  .profile-card {
    padding: 18px;
  }

  .promo-slide {
    padding: 22px;
  }
}

@media (min-width: 1500px) {
  .site-header,
  .hero-section,
  .promo-band,
  .section,
  .site-footer {
    padding-right: max(72px, calc((100vw - 1440px) / 2));
    padding-left: max(72px, calc((100vw - 1440px) / 2));
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 980px) {
  .hero-section {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
