:root {
  --ink: #102a43;
  --muted: #63778c;
  --line: #dbe6ee;
  --soft: #f5faf9;
  --teal: #0c8b82;
  --teal-dark: #086f69;
  --violet: #6e62ee;
  --success: #148a68;
  --warning: #a96b0a;
  --danger: #b54646;
  --max: 1180px;
  --shadow: 0 18px 50px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.container { width: min(calc(100% - 44px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; left: -999px; top: 12px; padding: 9px 14px; border-radius: 8px; background: #fff; }
.skip-link:focus { left: 12px; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 850; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(145deg, #102a43, #173e60); color: #76ebdb; font-size: 1.08rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.main-nav { display: flex; align-items: center; gap: 27px; margin-right: auto; }
.main-nav a { color: #39536b; font-size: .9rem; font-weight: 720; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions a, .nav-actions button { border: 0; background: none; color: #39536b; font-size: .87rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.nav-actions .nav-primary { padding: 10px 15px; border-radius: 9px; background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(12,139,130,.18); }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); font-weight: 750; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border: 1px solid var(--teal); border-radius: 10px; background: var(--teal); color: #fff; font-weight: 780; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(12,139,130,.19); transition: .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--teal-dark); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.button.full { width: 100%; }

.hero { overflow: hidden; padding: 74px 0 70px; background: radial-gradient(circle at 78% 38%, rgba(110,98,238,.12), transparent 28%), linear-gradient(125deg, #f4fbfa, #fff 56%, #f4f5ff); }
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: 55px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--teal); font-size: .73rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 2px; background: var(--violet); content: ''; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.042em; }
h1 { max-width: 660px; margin-bottom: 20px; font-size: clamp(2.75rem, 5vw, 4.7rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.hero-copy > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: 1.06rem; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin: 28px 0; }
.trust-list { display: flex; flex-wrap: wrap; gap: 17px; margin: 28px 0 0; padding: 0; color: #506a80; font-size: .82rem; font-weight: 650; list-style: none; }
.trust-list li::before { margin-right: 6px; color: var(--success); content: '✓'; }
.hero-panel { position: relative; min-height: 420px; padding: 28px; border: 1px solid rgba(219,230,238,.8); border-radius: 24px; background: rgba(255,255,255,.74); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.hero-panel::after { position: absolute; inset: 18px; z-index: -1; border-radius: 18px; background: linear-gradient(145deg, #102a43 0 52%, #0b746d 52%); content: ''; }
.terminal-card { position: absolute; inset: 64px 58px auto; padding: 26px; border-radius: 17px; background: #fff; box-shadow: 0 20px 45px rgba(4,25,43,.2); }
.terminal-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.terminal-top span { color: var(--success); font-size: .78rem; font-weight: 800; }
.terminal-card h3 { margin: 22px 0 6px; font-size: 1.45rem; }
.terminal-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.terminal-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.terminal-stats div { padding: 13px; border-radius: 10px; background: #f4faf9; }
.terminal-stats small { display: block; color: var(--muted); font-size: .67rem; text-transform: uppercase; }
.terminal-stats strong { font-size: .9rem; }
.floating-badge { position: absolute; right: 8px; bottom: 25px; padding: 11px 15px; border-radius: 10px; background: #fff; color: var(--ink); font-size: .75rem; font-weight: 750; box-shadow: 0 10px 28px rgba(16,42,67,.18); }

.benefits { border-block: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-grid article { padding: 22px; border-right: 1px solid var(--line); }
.benefit-grid article:first-child { border-left: 1px solid var(--line); }
.benefit-grid strong { display: block; font-size: .84rem; }
.benefit-grid span { color: var(--muted); font-size: .75rem; }

.section { padding: 94px 0; }
.section.soft { background: var(--soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p:not(.eyebrow) { max-width: 460px; margin: 0; color: var(--muted); }
.catalog-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.catalog-tools input { width: min(370px, 100%); min-height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); outline: none; }
.catalog-tools input:focus, .field input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,139,130,.11); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.product-card { display: flex; min-height: 300px; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: .18s ease; }
.product-card:hover { transform: translateY(-3px); border-color: #a8d8d3; box-shadow: var(--shadow); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: #ddf6f1; color: var(--teal-dark); font-weight: 850; }
.price { color: var(--teal-dark); font-size: 1.05rem; font-weight: 850; }
.product-badge { margin: 18px 0 7px; color: var(--violet); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.product-card > p:not(.product-badge) { margin: 0 0 20px; color: var(--muted); font-size: .87rem; }
.product-meta { display: flex; gap: 8px; margin-top: auto; padding: 15px 0; border-top: 1px solid var(--line); }
.pill { padding: 6px 9px; border-radius: 999px; background: #f0f6f8; color: #456078; font-size: .7rem; font-weight: 700; }
.buy-button { width: 100%; margin-top: 2px; }
.loading { grid-column: 1/-1; padding: 42px; border: 1px dashed #b9cad6; border-radius: 14px; color: var(--muted); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: steps; }
.step { padding: 27px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.step::before { display: block; margin-bottom: 18px; color: var(--violet); font-weight: 850; counter-increment: steps; content: '0' counter(steps); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .87rem; }

.modal { position: fixed; z-index: 80; inset: 0; display: grid; padding: 18px; place-items: center; background: rgba(7,25,40,.62); }
.modal-card { width: min(100%, 520px); max-height: calc(100vh - 36px); overflow: auto; padding: 27px; border-radius: 18px; background: #fff; box-shadow: 0 28px 75px rgba(0,0,0,.28); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.modal-head h2 { margin-bottom: 6px; font-size: 1.65rem; }
.modal-head p { margin: 0 0 22px; color: var(--muted); }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: .79rem; font-weight: 780; }
.field input { min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.field small { color: var(--muted); font-size: .72rem; }
.checkout-summary { display: flex; justify-content: space-between; gap: 18px; margin: 4px 0 18px; padding: 15px; border-radius: 10px; background: var(--soft); }
.checkout-summary strong:last-child { color: var(--teal-dark); }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0 0 17px; padding: 0; border: 0; }
.payment-options legend { grid-column: 1/-1; margin-bottom: 6px; font-size: .79rem; font-weight: 780; }
.payment-options label { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.payment-options label:has(input:checked) { border-color: var(--teal); background: #f1fbf9; box-shadow: 0 0 0 2px rgba(12,139,130,.09); }
.payment-options input { margin-top: 3px; accent-color: var(--teal); }
.payment-options span, .payment-options small { display: block; }
.payment-options small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.alert { margin: 12px 0; padding: 11px 13px; border-radius: 9px; background: #fff0f0; color: var(--danger); font-size: .8rem; }
.alert.success { background: #eaf8f3; color: var(--success); }
.modal[hidden] { display: none; }
.modal-open { overflow: hidden; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty-state { padding: 35px 18px; border: 1px dashed #b9cad6; border-radius: 12px; color: var(--muted); text-align: center; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.network-badge { display: inline-flex; margin-top: 8px; padding: 5px 8px; border-radius: 999px; background: #f0edff; color: var(--violet); font-size: .68rem; font-weight: 800; }

.page-shell { min-height: calc(100vh - 150px); padding: 60px 0 85px; background: linear-gradient(135deg, #f4faf9, #fff 56%, #f4f5ff); }
.narrow { width: min(calc(100% - 36px), 760px); margin-inline: auto; }
.panel { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.panel h1 { margin-bottom: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.panel-lead { margin: 0 0 25px; color: var(--muted); }
.status-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding: 14px 16px; border-radius: 11px; background: #eff8f6; }
.status-dot { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(12,139,130,.12); }
.status-banner strong { display: block; }
.status-banner span { color: var(--muted); font-size: .76rem; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 20px 0; }
.payment-field { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.payment-field.full { grid-column: 1/-1; }
.payment-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.payment-value { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-value strong { overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--teal-dark); font-size: .72rem; font-weight: 750; cursor: pointer; }
.notice { padding: 14px; border-left: 3px solid var(--warning); background: #fff9ee; color: #725022; font-size: .8rem; }
.receipt-form { display: grid; gap: 12px; margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd; }
.receipt-form label { font-size: .8rem; font-weight: 780; }
.receipt-form input[type=file] { width: 100%; padding: 11px; border: 1px dashed #aabeca; border-radius: 9px; background: #fff; }
.credentials { margin-top: 22px; padding: 20px; border: 1px solid #bfe8dc; border-radius: 13px; background: #f0fbf7; }
.credentials h2 { margin-bottom: 14px; font-size: 1.35rem; }
.credential-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 10px; align-items: center; margin-top: 9px; }
.credential-row span { color: var(--muted); font-size: .75rem; }
.credential-row code { overflow-wrap: anywhere; font-size: .92rem; font-weight: 750; }

.auth-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; min-height: calc(100vh - 130px); }
.auth-pitch h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
.auth-pitch p { max-width: 480px; color: var(--muted); }
.auth-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 25px; padding: 4px; border-radius: 10px; background: #edf3f5; }
.auth-tabs a { padding: 9px; border-radius: 8px; color: #597085; font-size: .8rem; font-weight: 770; text-align: center; text-decoration: none; }
.auth-tabs a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 2px 7px rgba(16,42,67,.08); }
.auth-card h1 { margin-bottom: 7px; font-size: 2rem; }
.form-note { color: var(--muted); font-size: .8rem; }

.account-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.order-list { display: grid; gap: 12px; }
.order-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.order-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.order-card h3 { margin-bottom: 4px; }
.order-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.state-label { padding: 6px 9px; border-radius: 999px; background: #edf7f5; color: var(--success); font-size: .68rem; font-weight: 800; }

.legal-content h1 { margin-bottom: 12px; }
.legal-content h2 { margin-top: 30px; font-size: 1.25rem; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: #50697f; }

.site-footer { padding: 52px 0 18px; background: #0d263e; color: #b7cad9; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 35px; padding-bottom: 38px; }
.site-footer .brand { color: #fff; }
.site-footer h3 { color: #fff; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; margin: 7px 0; color: #b7cad9; font-size: .8rem; text-decoration: none; }
.footer-bottom { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); font-size: .7rem; }

@media (max-width: 900px) {
  .hero-grid, .auth-layout { grid-template-columns: 1fr; }
  .hero-panel { min-height: 370px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav { min-height: 64px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .main-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); background: #fff; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 0; }
  .nav-actions { display: none; }
  .hero { padding: 48px 0; }
  .hero-panel { min-height: 325px; }
  .terminal-card { inset: 48px 34px auto; }
  .section { padding: 68px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  h1 { font-size: 2.6rem; }
  .hero-actions, .trust-list { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-panel { min-height: 310px; padding: 12px; }
  .hero-panel::after { inset: 8px; }
  .terminal-card { inset: 40px 24px auto; padding: 20px; }
  .floating-badge { right: 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid article { border-left: 1px solid var(--line); }
  .payment-grid { grid-template-columns: 1fr; }
  .payment-field.full { grid-column: auto; }
  .credential-row { grid-template-columns: 1fr auto; }
  .credential-row span { grid-column: 1/-1; }
  .panel, .auth-card { padding: 22px; }
  .payment-options { grid-template-columns: 1fr; }
}
