*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-dark: #1c1917;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-light: #a8a29e;
  --accent: #b8860b;
  --accent-hover: #9a7209;
  --accent-soft: #fef9ee;
  --gold: #c9a227;
  --gold-light: #f5e6b8;
  --silver: #94a3b8;
  --silver-light: #f1f5f9;
  --border: #e7e5e4;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--silver-light) 100%);
  color: var(--accent);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

/* Hero */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
}

.hero__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero__cta {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}

.hero__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Ticker */
.ticker {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.ticker__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.ticker__row:last-child {
  border-bottom: none;
}

.ticker__symbol {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}

.ticker__symbol--gold {
  color: var(--accent);
}

.ticker__symbol--silver {
  color: var(--silver);
}

.ticker__price {
  color: var(--text-muted);
  white-space: nowrap;
}

.ticker__change {
  font-weight: 500;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}

.ticker__change--up {
  color: var(--success);
}

.ticker__change--down {
  color: var(--danger);
}

/* Lead form */
.lead-form {
  text-align: left;
}

.lead-form__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field__input::placeholder {
  color: var(--text-light);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  cursor: pointer;
}

.lead-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.lead-form__consent a {
  color: var(--accent);
}

.lead-form__submit {
  width: 100%;
}

.lead-form__success {
  text-align: center;
  padding: 16px 0;
}

.lead-form__success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.lead-form__success-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.modal__close:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

body.modal-open {
  overflow: hidden;
}

/* Portfolio demo */
.portfolio {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #fff;
}

.portfolio__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding-bottom: 16px;
  border-bottom: 1px solid #44403c;
  margin-bottom: 8px;
}

.portfolio__total {
  font-family: var(--mono);
  color: var(--gold);
}

.portfolio__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid #292524;
}

.portfolio__label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6d3d1;
}

.portfolio__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.portfolio__dot--gold {
  background: var(--gold);
}

.portfolio__dot--silver {
  background: var(--silver);
}

.portfolio__dot--other {
  background: #78716c;
}

.portfolio__value {
  font-family: var(--mono);
  color: #a8a29e;
  white-space: nowrap;
}

.portfolio__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #a8a29e;
}

.portfolio__yield {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--success);
  font-size: 1rem;
}

/* Sections */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.0625rem;
}

.features {
  padding: 80px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Demo block section */
.demo-block {
  padding: 80px 0;
  background: var(--bg-subtle);
}

.demo-block__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-block__text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.demo-block__text p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Steps */
.steps {
  padding: 80px 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background: var(--bg-subtle);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.quote {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}

.quote footer {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Pricing */
.pricing {
  padding: 80px 0;
}

.pricing__inner {
  text-align: center;
}

.pricing__card {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  margin-top: 32px;
  max-width: 420px;
  width: 100%;
}

.pricing__price {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing__label {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

.pricing__list {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing__list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Final CTA */
.cta-final {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--accent-soft) 100%);
}

.cta-final__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-final__inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

/* Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.footer__inner {
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
}

.footer__nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer__nav a:hover {
  color: var(--accent);
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-light);
}

/* Legal pages */
.legal {
  padding: 48px 0 80px;
  max-width: 720px;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal a {
  color: var(--accent);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 48px 0 56px;
  }

  .demo-block__inner {
    grid-template-columns: 1fr;
  }

  .demo-block__text {
    order: -1;
    text-align: center;
  }

  .pricing__card {
    padding: 32px 24px;
  }

  .ticker__row {
    font-size: 0.8125rem;
    flex-wrap: wrap;
  }

  .portfolio__line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
