body {
  font-family: Arial, sans-serif;
  background: #f5f6f8;
  color: #222;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
}

.container-wide {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.container-narrow {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.performance-page {
  max-width: 1120px;
}

.performance-header {
  padding: 24px 0 8px;
}

.performance-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
}

.performance-header p:last-child {
  max-width: 760px;
  color: #5e6875;
  font-size: 1.05rem;
  line-height: 1.7;
}

.eyebrow {
  margin: 0;
  color: #9b731a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.performance-state {
  text-align: center;
  padding: 48px 24px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.metric-card {
  background: #fff;
  border: 1px solid rgba(20, 31, 45, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.metric-card span {
  display: block;
  margin-bottom: 10px;
  color: #66717e;
  font-size: 0.86rem;
}

.metric-card strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.chart-card {
  padding: 24px;
}

.chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.chart-heading h2 {
  margin: 6px 0 0;
}

.chart-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #66717e;
  font-size: 0.88rem;
  text-align: right;
}

.control-group {
  margin: 0 0 16px;
}

.control-label {
  display: block;
  margin-bottom: 8px;
  color: #66717e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.range-button {
  min-width: 52px;
  border: 1px solid rgba(20, 31, 45, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #46515d;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.range-button:hover {
  transform: translateY(-1px);
  border-color: rgba(138, 103, 19, 0.45);
}

.range-button[aria-pressed="true"] {
  background: #17202c;
  border-color: #17202c;
  color: #fff;
}

.range-button:focus-visible {
  outline: 3px solid rgba(138, 103, 19, 0.24);
  outline-offset: 2px;
}

.chart-wrap {
  width: 100%;
  height: 430px;
}

.chart-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.performance-note {
  max-width: 860px;
  margin: 18px auto 0;
  color: #697480;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

/* Sell page */
.sell-page {
  background: #f8f7f3;
  color: #16202c;
}

.sell-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 247, 243, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 32, 44, 0.08);
}

.sell-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #17202c;
  color: #e1b857;
  box-shadow: 0 8px 20px rgba(23, 32, 44, 0.18);
}

.sell-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.sell-nav-links a,
.language-switcher a {
  color: #55606c;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.sell-nav-links a:hover,
.language-switcher a:hover {
  color: #9b731a;
}

.language-switcher {
  display: flex;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid rgba(22, 32, 44, 0.12);
}

.hero-section {
  padding: 94px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(214,170,75,.22), transparent 30%),
    linear-gradient(180deg, #fbfaf7 0%, #f2efe7 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 14px 0 22px;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #5d6874;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #17202c;
  color: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 44, .18);
}

.button-secondary {
  border: 1px solid rgba(22, 32, 44, .15);
  background: rgba(255,255,255,.7);
  color: #17202c;
}

.button-gold {
  background: #e4ba58;
  color: #17202c;
  box-shadow: 0 12px 30px rgba(228,186,88,.24);
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: #66717d;
  font-size: .85rem;
}

.proof-row span::first-letter {
  color: #157b53;
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -10% -12% 12%;
  border-radius: 48px;
  background: linear-gradient(145deg, rgba(228,186,88,.26), rgba(23,32,44,.08));
  filter: blur(2px);
  transform: rotate(4deg);
}

.terminal-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 18px;
  background: #111923;
  color: #dce4ec;
  box-shadow: 0 34px 70px rgba(12, 20, 30, .26);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #7f8b98;
  font-size: .75rem;
}

.terminal-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #394656;
}

.terminal-top strong {
  margin-left: auto;
  letter-spacing: .06em;
}

.terminal-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 6px 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.terminal-price small {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(30,163,105,.14);
  color: #63d4a3;
  font-size: .68rem;
  letter-spacing: .08em;
}

.terminal-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.grid-line {
  stroke: rgba(255,255,255,.07);
  stroke-width: 1;
}

.area-path {
  fill: url(#area);
}

.chart-path {
  fill: none;
  stroke: #e1b857;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.terminal-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 8px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #81909f;
  font-size: .77rem;
}

.terminal-stats strong {
  display: block;
  margin-top: 5px;
  color: #dfe7ef;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: #eeeae1;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child:not(.eyebrow) {
  color: #64707c;
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.step-card {
  border: 1px solid rgba(22, 32, 44, .08);
  border-radius: 20px;
  padding: 26px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 10px 30px rgba(22,32,44,.05);
}

.feature-number {
  color: #b28a31;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.feature-card h3,
.step-card h3 {
  margin: 18px 0 10px;
  font-size: 1.12rem;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: #68737f;
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #17202c;
  color: #e1b857;
  font-weight: 900;
}

.cta-section {
  padding: 34px 0;
  background: #eeeae1;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 24px;
  padding: 38px 42px;
  background: #17202c;
  color: #fff;
  box-shadow: 0 20px 45px rgba(23,32,44,.2);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.cta-card p {
  max-width: 720px;
  margin: 0;
  color: #aeb9c5;
  line-height: 1.7;
}

.performance-embed {
  background: #f8f7f3;
}

.performance-embed #livePerformanceRoot > .performance-state,
.performance-embed .metric-card,
.performance-embed .chart-card {
  background: #fff;
}

.performance-embed .card {
  margin-top: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(22,32,44,.09);
  border-radius: 16px;
  padding: 0 20px;
  background: rgba(255,255,255,.72);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

.faq-list p {
  margin: -4px 0 20px;
  color: #66717d;
  line-height: 1.7;
}

.sell-footer {
  padding: 54px 0;
  background: #111923;
  color: #dce4ec;
}

.sell-footer h3 {
  margin: 0 0 10px;
}

.sell-footer p {
  max-width: 940px;
  color: #95a2af;
  line-height: 1.7;
}

.sell-footer small {
  display: block;
  margin-top: 24px;
  color: #75818d;
}

.rtl .sell-nav-links {
  margin-left: 0;
  margin-right: auto;
}

.rtl .language-switcher {
  padding-left: 0;
  padding-right: 20px;
  border-left: 0;
  border-right: 1px solid rgba(22,32,44,.12);
}

.rtl .terminal-top strong {
  margin-left: 0;
  margin-right: auto;
}

.rtl .chart-meta {
  text-align: left;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-nav-links {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
  }

  .rtl .language-switcher {
    margin-left: 0;
    margin-right: auto;
  }
}

@media (max-width: 800px) {
  .performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-heading {
    flex-direction: column;
  }

  .chart-meta {
    text-align: left;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container-wide,
  .container-narrow {
    width: min(100% - 28px, 1180px);
  }

  .sell-nav {
    min-height: 66px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-switcher {
    gap: 6px;
    padding-left: 12px;
  }

  .language-switcher a {
    font-size: .72rem;
  }

  .hero-section {
    padding: 66px 0 58px;
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .cta-card {
    padding: 28px 24px;
  }

  .terminal-stats {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    margin: 16px auto;
    padding: 16px;
  }

  .performance-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 16px;
  }

  .range-controls {
    gap: 6px;
  }

  .range-button {
    flex: 1 1 auto;
    min-width: 48px;
    padding: 8px 10px;
  }

  .chart-wrap {
    height: 330px;
  }
}
