:root {
  --black: #060503;
  --panel: #100d06;
  --panel-2: #171200;
  --gold: #d4af37;
  --gold-light: #f0d488;
  --gold-pale: #fff3c4;
  --gold-deep: #9c7c1e;
  --ink: #f7f1de;
  --ink-dim: #cfc4a3;
  --line: #3d3117;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .brand-name, .footer-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }

a { color: var(--gold-light); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(6, 5, 3, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { height: 44px; width: auto; border-radius: 6px; }
.brand-name { font-size: 1.35rem; letter-spacing: 0.4px; }
.brand-name em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink-dim); text-decoration: none; font-size: 0.98rem; }
.main-nav a:hover { color: var(--gold-light); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 12px 26px; font-size: 1rem; font-weight: 600;
  border: 1px solid var(--gold); transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.btn-gold {
  color: #241a02;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold) 45%, #c9a227 80%, var(--gold-deep));
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4); }
.btn-outline { color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(212, 175, 55, 0.12); }
.btn-small { padding: 8px 18px; font-size: 0.92rem; }
.btn-large { padding: 15px 34px; font-size: 1.08rem; }

/* hero */
.hero {
  text-align: center; padding: 84px 0 70px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--black);
}
.hero-mark { width: min(430px, 82vw); height: auto; border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,0.7), 0 0 0 1px var(--line); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); max-width: 820px; margin: 34px auto 18px; }
.gold-text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 700px; margin: 0 auto 30px; color: var(--ink-dim); font-size: 1.13rem; }
.hero-note { margin-top: 14px; color: var(--ink-dim); font-size: 0.95rem; }

/* sections */
.section { padding: 72px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.section-sub { text-align: center; color: var(--ink-dim); max-width: 640px; margin: 0 auto 42px; }

/* grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 26px;
}
.card h3 { margin: 0 0 10px; color: var(--gold-light); font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-dim); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { text-align: center; padding: 10px; }
.step-num {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-size: 1.4rem; color: #241a02;
  background: linear-gradient(135deg, var(--gold-pale), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.3);
}
.step h3 { margin: 0 0 8px; color: var(--gold-light); }
.step p { margin: 0; color: var(--ink-dim); }

/* pricing */
.pricing-table-wrap {
  max-width: 640px; margin: 0 auto;
  border: 1px solid var(--gold); border-radius: 14px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(212, 175, 55, 0.12);
}
.pricing-table { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pricing-table th, .pricing-table td { padding: 15px 24px; text-align: left; }
.pricing-table thead th {
  font-family: Georgia, serif; font-size: 1.05rem; color: var(--gold-light);
  border-bottom: 1px solid var(--gold); letter-spacing: 0.3px;
}
.pricing-table thead th:last-child, .pricing-table .price-cell { text-align: right; }
.pricing-table tbody tr + tr { border-top: 1px solid var(--line); }
.pricing-table td { color: var(--ink-dim); font-size: 1.06rem; }
.pricing-table td:first-child { color: var(--ink); font-weight: 600; }
.pricing-table .price-cell {
  font-family: Georgia, serif; font-size: 1.55rem; color: var(--gold-light); white-space: nowrap;
}
.pricing-table .price-cell .period { font-size: 0.95rem; color: var(--ink-dim); }
.pricing-table tr.top-tier { background: rgba(212, 175, 55, 0.10); }
.pricing-table tr.top-tier td:first-child { color: var(--gold-light); }
.top-badge {
  display: inline-block; margin-left: 10px; vertical-align: middle;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: #241a02; background: linear-gradient(120deg, var(--gold-light), var(--gold));
  padding: 3px 10px; border-radius: 999px;
}
.pricing-note { text-align: center; color: var(--ink-dim); max-width: 640px; margin: 22px auto 0; }
.pricing-table .plan-note { display: block; margin-top: 5px; font-size: 0.85rem; font-weight: 400; color: var(--gold-light); }

.price-card { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.price-card h3 { font-size: 1.45rem; color: var(--ink); margin: 0; }
.price-card p { margin: 0; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 14px 44px rgba(212, 175, 55, 0.15); }
.price { font-family: Georgia, serif; font-size: 2.5rem; color: var(--gold-light); }
.price .period { font-size: 1.05rem; color: var(--ink-dim); }
.plan-scope { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.6px; font-size: 0.82rem; }
.badge {
  align-self: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: #241a02; background: linear-gradient(120deg, var(--gold-light), var(--gold));
  padding: 4px 12px; border-radius: 999px;
}

/* faq */
details {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
summary { cursor: pointer; font-family: Georgia, serif; font-size: 1.1rem; color: var(--gold-light); }
details p { color: var(--ink-dim); margin-bottom: 4px; }

/* forms */
.form-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold); border-radius: 16px; padding: 30px;
  display: grid; gap: 16px;
  box-shadow: 0 14px 44px rgba(212, 175, 55, 0.12);
}
.form-card label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form-card .optional { font-weight: 400; color: var(--ink-dim); }
input, select, textarea {
  background: #0a0803; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-msg { min-height: 1.4em; margin: 0; color: var(--gold-light); }
.form-msg.error { color: #ff9c9c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.resend-box {
  margin-top: 34px; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px;
  background: var(--panel);
}
.resend-box h3 { margin: 0 0 6px; color: var(--gold-light); }
.resend-box p { color: var(--ink-dim); margin: 0 0 14px; }
.resend-box form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: relative; }
.resend-box input { flex: 1 1 260px; width: auto; }
.resend-box .form-msg { flex-basis: 100%; }
.sr-only { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 34px; text-align: center; background: var(--panel); }
.footer-brand { font-size: 1.3rem; margin: 0 0 8px; color: var(--gold-light); }
.site-footer p { margin: 4px 0; color: var(--ink-dim); }
.copyright { font-size: 0.9rem; }

/* reseller partner bar (only on an active reseller's link) */
.partner-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.08);
  color: var(--ink-dim); text-align: center;
  padding: 9px 0; font-size: 0.95rem;
}
.partner-bar strong { color: var(--gold-light); }

/* reseller portal */
.banner { border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; border: 1px solid var(--line); }
.banner p { margin: 0; }
.banner-ok { background: rgba(64, 145, 64, 0.14); border-color: #3f7a3f; color: #cfe8cf; }
.banner-warn { background: rgba(212, 175, 55, 0.10); color: var(--ink); }
.banner-bad { background: rgba(178, 52, 52, 0.14); border-color: #8c3a3a; color: #f2d2d2; }
.portal-card { margin-bottom: 20px; }
.portal-card h3 { margin-bottom: 12px; }
.portal-form { border: none; box-shadow: none; padding: 18px 0 0; background: none; }
.link-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 10px; }
.link-box code {
  flex: 1 1 320px; background: #0a0803; border: 1px solid var(--gold);
  border-radius: 10px; padding: 12px 14px; color: var(--gold-light);
  font-size: 1rem; word-break: break-all;
}
.link-hint { font-weight: 400; color: var(--ink-dim); font-size: 0.9rem; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.data-table th { color: var(--gold-light); font-family: Georgia, serif; }
.data-table td { color: var(--ink-dim); }
.data-table td:first-child { color: var(--ink); }

@media (max-width: 640px) {
  .main-nav a:not(.btn) { display: none; }
  .hero { padding: 54px 0 48px; }
  .section { padding: 52px 0; }
  .form-card { padding: 22px; }
}
