/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 243, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 220, 213, .8);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 66px;
  display: flex; align-items: center; gap: 30px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, #C81F1F, #A50000);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px -4px rgba(165, 0, 0,.6);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 15px; color: #33302c; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--red); }
.nav-links a.is-active { color: var(--red); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-actions .login { font-size: 15px; color: #33302c; }
.nav-actions .login:hover { color: var(--red); }

/* ============ hero ============ */
.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 86px;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(255,255,255,.95), rgba(255,255,255,0) 62%),
    radial-gradient(900px 480px at 85% 8%, rgba(206, 186, 178, .16), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, #faf9f7 0%, #f3f1ee 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(120, 105, 95, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 105, 95, .07) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
}
.hero > .container { position: relative; z-index: 1; }

.eyebrow-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.eyebrow-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(150deg, #C81F1F, #A50000); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 6px 14px -6px rgba(165, 0, 0, .7);
}
.eyebrow-text { font-size: 13.5px; letter-spacing: .19em; font-weight: 600; color: #6d645d; }

.hero-title {
  margin: 0; text-align: center;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.14; letter-spacing: -.025em; font-weight: 800;
  color: #A50000;
  background: linear-gradient(180deg, #C81F1F 0%, #A50000 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-title .accent {
  background: linear-gradient(180deg, #E3AF52 0%, #8A5A16 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 24px auto 0; text-align: center; max-width: 760px;
  font-size: 18px; line-height: 1.7; color: #4a443f; font-weight: 400;
}
.hero-sub b { font-weight: 600; color: #322e2a; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 40px auto 0; max-width: 1060px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.9);
  border: 1px solid #e6e0d9; font-size: 14px; color: #4a443f; font-weight: 500;
  box-shadow: 0 2px 6px rgba(60, 45, 35, .04);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.chip:hover { border-color: #d9cfc6; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(60, 45, 35, .07); }
.chip svg { color: #8b8178; flex: none; }
.chip.is-hot { background: #fff; border-color: #e9d6d3; color: #A50000; }
.chip.is-hot svg { color: #C81A1A; }

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 38px; }
.hero-cta .btn { height: 54px; padding: 0 30px; font-size: 16.5px; border-radius: 11px; }
.hero-cta .btn-primary { min-width: 170px; }
.hero-cta .btn-ghost { min-width: 156px; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 54px;
  margin-top: 52px; flex-wrap: wrap;
}
.stat { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: #454039; }
.stat svg { color: #D20000; flex: none; }
.stat b { font-weight: 700; color: #2b2724; font-variant-numeric: tabular-nums; }

/* ============ section shell ============ */
.section { padding: 92px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 52px; }

/* ============ advantages ============ */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  position: relative; overflow: hidden;
}
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd4cb; }
.adv-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--red-soft); color: var(--red);
}
.adv-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.adv-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.adv-card .mini { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 12px; padding: 4px 9px; border-radius: 6px; background: #f6f3ef; color: #6b6259; border: 1px solid #ece6df; }

/* ============ flow ============ */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.flow-step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px;
  position: relative; box-shadow: var(--shadow-sm);
}
.flow-step::after {
  content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  color: #c9bfb5; font-size: 16px;
}
.flow-step:last-child::after { display: none; }
.flow-num { font-family: var(--mono); font-size: 12px; color: #b3a79c; letter-spacing: .08em; margin-bottom: 10px; }
.flow-step h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.flow-step p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

/* ============ pricing ============ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative;
}
.price-card.featured { border-color: #d8b7b3; box-shadow: 0 18px 44px -18px rgba(165, 0, 0, .3); }
.price-badge {
  position: absolute; top: -11px; left: 28px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 6px; letter-spacing: .04em;
}
.price-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.price-card .desc { color: var(--ink-3); font-size: 13.5px; margin: 0 0 22px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .num { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price-amount .unit { font-size: 14px; color: var(--ink-3); }
.price-note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.price-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.price-list li { display: flex; gap: 9px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.price-list svg { color: var(--green); flex: none; margin-top: 2px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* ============ code ============ */
.code-wrap {
  display: grid; grid-template-columns: .88fr 1.12fr; gap: 40px; align-items: center;
}
.code-copy h2 { font-size: 34px; line-height: 1.3; letter-spacing: -.02em; margin: 14px 0 16px; font-weight: 800; }
.code-copy p { color: var(--ink-2); font-size: 15.5px; line-height: 1.8; margin: 0 0 22px; }
.code-copy ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.code-copy li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.code-copy li svg { color: var(--red); flex: none; margin-top: 3px; }

.code-card { background: #1d1a18; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #2c2724; }
.code-tabs { display: flex; gap: 2px; padding: 10px 12px 0; border-bottom: 1px solid #2c2724; }
.code-tab {
  border: 0; background: transparent; color: #9d938b; font-size: 13px; padding: 9px 14px; border-radius: 8px 8px 0 0;
  font-weight: 500;
}
.code-tab.active { color: #fff; background: #262220; }
.code-body { margin: 0; padding: 22px 22px 26px; font-family: var(--mono); font-size: 13px; line-height: 1.85; color: #ddd5cd; overflow-x: auto; }
.code-body .k { color: #F0A3A0; }
.code-body .s { color: #F2C4C4; }
.code-body .c { color: #7a716a; }
.code-body .n { color: #d9b26a; }
.code-pane { display: none; }
.code-pane.active { display: block; }

/* ============ metrics band ============ */
.band { background: linear-gradient(160deg, #211d1a, #2c2521); color: #f4efea; padding: 60px 0; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band-item .num { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.band-item .num span { font-size: 17px; font-weight: 600; color: #c9b7ad; margin-left: 3px; }
.band-item .label { margin-top: 8px; font-size: 13.5px; color: #a89c93; letter-spacing: .02em; }

/* ============ faq ============ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #ded4cb; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #b3a79c; font-size: 20px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 14px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }

/* ============ cta ============ */
.cta {
  margin: 0 auto; max-width: var(--max); padding: 0 28px 96px;
}
.cta-inner {
  position: relative; overflow: hidden; border-radius: 26px; padding: 64px 56px;
  background: linear-gradient(135deg, #A50000 0%, #C81F1F 48%, #7A0000 100%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 40px;
  box-shadow: 0 30px 70px -30px rgba(165, 0, 0, .65);
}
.cta-inner::after {
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.35), transparent 45%),
                    radial-gradient(circle at 80% 70%, rgba(255,255,255,.22), transparent 40%);
}
.cta-inner h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.02em; line-height: 1.3; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.7; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta .btn-white { background: #fff; color: #A50000; box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); }
.cta .btn-white:hover { background: #fdf7f6; }
.cta .btn-outline { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.cta .btn-outline:hover { background: rgba(255,255,255,.16); }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); background: #fbfaf9; padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { margin: 0 0 14px; font-size: 13.5px; letter-spacing: .06em; color: #6b6259; font-weight: 600; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 14px; color: #4a443f; }
.footer li a:hover { color: var(--red); }
.footer .brand { margin-bottom: 14px; }
.footer .about { font-size: 13.5px; color: var(--ink-3); line-height: 1.8; max-width: 320px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #8d8379; flex-wrap: wrap;
}

.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links a { color: #8d8379; text-decoration: none; font-size: 12.5px; transition: color .2s; }
.footer-links a:hover { color: #D20000; }
@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { gap: 14px; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .code-wrap { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 40px 0 56px; }
  .hero .container { padding: 0 20px; }
  .eyebrow-row { justify-content: center; gap: 10px; }
  .hero-title { font-size: clamp(38px, 10vw, 48px); line-height: 1.24; letter-spacing: -.02em; }
  .hero-title .accent { display: block; }
  .hero-sub { margin-top: 14px; font-size: 15px; line-height: 1.75; max-width: 20em; padding: 0 4px; }
  .chips { gap: 8px; margin-top: 24px; }
  .chip { padding: 9px 14px; font-size: 13px; }
  .chip svg { width: 14px; height: 14px; }
  .hero-cta { gap: 12px; margin-top: 28px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 0; height: 50px; padding: 0 12px; font-size: 16px; border-radius: 12px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-top: 30px; justify-items: start; }
  .stat { font-size: 12.5px; white-space: nowrap; }
  .stat svg { width: 15px; height: 15px; }
  .adv-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
}
