:root {
  --background: #fffffe;
  --headline: #2b2c34;
  --paragraph: #2b2c34;
  --primary: #6246ea;
  --secondary: #d1d1e9;
  --accent: #e45858;
  --white: #fffffe;
  --line: #dedee8;
  --font: "Proxima Nova", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --shadow: 0 20px 60px rgba(43, 44, 52, .09);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--background); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--background); color: var(--paragraph); font: 400 16px/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-150%); background: var(--headline); color: var(--white); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 16px max(24px, calc((100vw - 1160px)/2)); border-bottom: 1px solid var(--line); background: var(--background); }
.brand { min-height: 48px; display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 45px; height: 34px; display: block; object-fit: contain; }
.brand-name { color: var(--headline); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.primary-nav > a:not(.nav-cta):hover { color: var(--primary); }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; background: var(--primary); color: var(--white); transition: background-color 180ms ease; }
.nav-cta:hover { background: #5038c8; }
.menu-button { display: none; min-width: 48px; min-height: 48px; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--headline); font-size: 14px; font-weight: 700; }
.menu-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero { width: min(1160px, calc(100% - 48px)); min-height: 610px; display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: clamp(48px, 10vw, 140px); margin: 48px auto; padding: clamp(54px, 8vw, 96px); border-radius: 24px; background: var(--secondary); }
.hero-copy { max-width: 620px; }
.eyebrow { margin: 0 0 16px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1, .section-heading h2, .tip-intro h1 { margin: 0; color: var(--headline); font-weight: 800; letter-spacing: -.045em; line-height: 1; text-wrap: balance; }
.hero h1 { max-width: 670px; font-size: clamp(60px, 8vw, 104px); }
.hero-description { max-width: 510px; margin: 24px 0 0; font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.button-primary { background: var(--primary); color: var(--white); }
.button-primary:hover { background: #5038c8; }
.button-secondary { border-color: var(--headline); background: transparent; color: var(--headline); }
.button-secondary:hover { background: var(--headline); color: var(--white); }
.rating-card { padding: 26px 30px 30px; border-radius: 16px; background: var(--background); box-shadow: var(--shadow); }
.hero-emblem { width: 100%; height: 150px; display: block; margin: -6px 0 24px; object-fit: contain; }
.rating-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.stars { color: var(--accent); letter-spacing: .05em; }
.rating-line strong { color: var(--headline); font-size: 34px; line-height: 1; }
.rating-card p { margin: 14px 0 22px; color: #62636e; font-size: 14px; }
.rating-card a, .text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 13px; font-weight: 700; }
.rating-card a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.reviews { width: min(1160px, calc(100% - 48px)); margin: auto; padding: 88px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { font-size: clamp(44px, 5vw, 64px); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.review-card { min-height: 300px; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--background); }
.review-card blockquote { margin: 28px 0; color: var(--headline); font-size: 18px; font-weight: 600; line-height: 1.5; }
.review-card footer { display: grid; gap: 2px; margin-top: auto; }
.review-card footer strong { color: var(--headline); font-size: 14px; }
.review-card footer span { color: #747580; font-size: 12px; }

.community { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: center; gap: clamp(56px, 10vw, 150px); padding: 88px max(24px, calc((100vw - 1000px)/2)); background: var(--headline); }
.community-copy { max-width: 500px; }
.community-copy .eyebrow { color: #bcb2f3; }
.community-copy h2 { margin: 0; color: var(--white); font-size: clamp(44px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.community-copy > p:not(.eyebrow) { max-width: 430px; margin: 22px 0 0; color: var(--secondary); font-size: 17px; }
.community-button { width: auto; margin-top: 28px; background: var(--primary); color: var(--white); }
.community-button:hover { background: #755cf0; }
.discord-widget { width: 350px; max-width: 100%; overflow: hidden; border-radius: 12px; background: #1e1f22; box-shadow: 0 20px 60px rgba(0,0,0,.24); }
.discord-widget iframe { width: 100%; max-width: 100%; display: block; border: 0; }

.site-footer { min-height: 96px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 24px max(24px, calc((100vw - 1160px)/2)); background: var(--secondary); font-size: 12px; }
.site-footer > strong { color: var(--headline); font-size: 15px; }
.site-footer p { margin: 0; text-align: center; }
.site-footer > div { display: flex; gap: 20px; color: var(--primary); font-size: 13px; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.tip-section { padding: 82px 24px 88px; background: var(--secondary); }
.tip-heading { max-width: 560px; margin: 0 auto 32px; text-align: center; }
.tip-emblem { width: 132px; height: 96px; display: block; margin: 0 auto 18px; object-fit: contain; }
.tip-heading h2 { margin: 0; color: var(--headline); font-size: clamp(44px, 7vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.tip-heading > p:last-child { max-width: 450px; margin: 16px auto 0; color: #555661; }
.tip-panel { width: min(540px, 100%); margin: auto; border: 1px solid rgba(43,44,52,.12); border-radius: 14px; background: var(--white); box-shadow: 0 18px 50px rgba(43,44,52,.10); }
.tip-form { padding: 32px; }
.tip-form fieldset { margin: 0; padding: 0; border: 0; }
.tip-form legend { margin-bottom: 20px; color: var(--headline); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.preset-grid button { min-height: 46px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); color: var(--headline); font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }
.preset-grid button:hover, .preset-grid button.is-selected { background: var(--primary); color: var(--white); }
.tip-form label { display: block; margin: 22px 0 8px; font-size: 13px; font-weight: 700; }
.amount-field { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 0 16px; border: 2px solid var(--headline); border-radius: 8px; background: var(--white); }
.amount-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(98,70,234,.16); }
.amount-field > span:first-child, .amount-field input { color: var(--headline); font-size: 27px; font-weight: 800; }
.amount-field > span:last-child { color: #696a74; font-size: 12px; font-weight: 800; }
.amount-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; }
.amount-field input::placeholder { color: #aaaab5; }
.field-help, .field-error { margin: 7px 0 0; font-size: 12px; }
.field-help { color: #696a74; }
.field-error { min-height: 18px; color: #aa2738; font-weight: 700; }
.payment-button { width: 100%; margin-top: 14px; }
.payment-status { min-height: 20px; margin: 10px 0 0; color: #5e5f69; font-size: 12px; text-align: center; }
.secure-copy { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; color: #696a74; font-size: 11px; }
.secure-copy svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tip-help { margin: 22px 0 0; color: #5e5f69; font-size: 13px; text-align: center; }
.tip-help a { color: var(--primary); font-weight: 700; }
.tip-help a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 780px) {
  .site-header { position: relative; padding-inline: 18px; }
  .menu-button { display: inline-flex; }
  .primary-nav { position: absolute; z-index: 20; top: 80px; right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px 18px 18px; border-bottom: 1px solid var(--line); background: var(--background); }
  .primary-nav.is-open { display: flex; }
  .primary-nav > a { min-height: 52px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .primary-nav .nav-cta { justify-content: center; margin-top: 10px; border: 0; }
  .hero { width: calc(100% - 32px); min-height: auto; grid-template-columns: 1fr; gap: 44px; margin: 16px; padding: 54px 26px; }
  .hero h1 { font-size: clamp(54px, 16vw, 78px); }
  .hero-description { font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .rating-card { max-width: 330px; }
  .reviews { width: calc(100% - 36px); padding: 70px 0 82px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .review-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .review-card { min-height: 250px; }
  .community { grid-template-columns: 1fr; justify-items: center; padding: 70px 18px; }
  .community-copy { text-align: center; }
  .community-copy > p:not(.eyebrow) { margin-inline: auto; }
  .site-footer { grid-template-columns: 1fr; justify-items: start; gap: 14px; padding-inline: 18px; }
  .site-footer p { text-align: left; }
  .tip-section { padding: 64px 16px 72px; }
  .tip-form { padding: 24px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
