:root {
  color-scheme: dark;
  --bg: #0b0e0c;
  --panel: #131814;
  --panel-2: #192019;
  --text: #f4f8f4;
  --muted: #a7b1a8;
  --line: rgba(213, 241, 216, .12);
  --green: #75df7f;
  --green-dark: #102c15;
  --blue: #7ca7ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 14% 6%, rgba(117, 223, 127, .07), transparent 28%), radial-gradient(circle at 88% 35%, rgba(124, 167, 255, .06), transparent 30%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(11, 14, 12, .86); backdrop-filter: blur(18px); }
.site-header nav, footer nav { display: flex; align-items: center; gap: 22px; }
.site-header nav > a { color: var(--muted); font-size: 14px; }
.site-header nav > a:hover, footer a:hover { color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand b { font-size: 19px; letter-spacing: -.04em; }
.brand b span { color: var(--green); }
.brand em { padding: 4px 7px; border: 1px solid rgba(117, 223, 127, .3); border-radius: 6px; color: var(--green); font-size: 9px; font-style: normal; letter-spacing: .14em; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; }
.brand-mark i { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.brand-mark i:nth-child(2), .brand-mark i:nth-child(3) { opacity: .54; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { color: #071108; background: var(--green); box-shadow: 0 10px 28px rgba(117, 223, 127, .15); }
.button.primary:hover:not(:disabled) { background: #8be993; }
.button.secondary { border-color: var(--line); background: rgba(255, 255, 255, .035); }
.button.large { min-height: 52px; padding: 0 24px; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(460px, .86fr); gap: 70px; align-items: center; min-height: 760px; max-width: 1240px; margin: auto; padding: 90px 24px 110px; }
.kicker { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6.1vw, 80px); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { color: var(--green); }
.lead { max-width: 720px; margin: 26px 0 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; color: #dce5dd; font-size: 13px; }
.proof span::before { content: "✓"; margin-right: 7px; color: var(--green); }
.grandfather-note { max-width: 650px; margin: 24px 0 0; padding: 13px 15px; border: 1px solid rgba(117, 223, 127, .15); border-radius: 10px; color: #c7d4c8; background: rgba(117, 223, 127, .045); font-size: 13px; line-height: 1.5; }

.app-preview { overflow: hidden; border: 1px solid rgba(213, 241, 216, .15); border-radius: 18px; background: #0f1310; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-4deg) rotateX(1deg); }
.preview-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.preview-bar > span { width: 8px; height: 8px; border-radius: 99px; background: #405044; }
.preview-bar b { margin-left: auto; font-size: 11px; font-weight: 600; }
.preview-body { display: grid; grid-template-columns: 120px 1fr; min-height: 410px; }
.preview-body aside { display: flex; flex-direction: column; gap: 6px; padding: 22px 12px; border-right: 1px solid var(--line); color: #8f9a90; font-size: 10px; }
.preview-body aside strong { padding: 0 8px 12px; color: #647066; letter-spacing: .12em; }
.preview-body aside i { padding: 9px; border-radius: 6px; font-style: normal; }
.preview-body aside i.active { color: var(--green); background: rgba(117, 223, 127, .08); }
.preview-body section { padding: 34px 28px; }
.preview-body section > small { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.preview-body section h2 { margin: 10px 0 22px; font-size: 25px; letter-spacing: -.04em; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.preview-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #151b16; }
.preview-grid b { display: block; color: var(--green); font-size: 20px; }
.preview-grid span { display: block; margin-top: 5px; color: #8f9a90; font-size: 8px; }
.preview-list { display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: #dce5dd; font-size: 10px; }
.preview-list i { width: 26px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #6d4dbb, #ca698a); }
.preview-list:nth-of-type(2) i { background: linear-gradient(135deg, #795b37, #d2a355); }
.preview-list:nth-of-type(3) i { background: linear-gradient(135deg, #414c5a, #9aa6b4); }
.preview-list em { color: #778279; font-style: normal; }

.feature-section, .faq-section { max-width: 1240px; margin: auto; padding: 120px 24px; }
.section-heading { max-width: 760px; margin-bottom: 50px; }
.section-heading h2, .price-card h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.section-heading > p:last-child, .price-card > div > p:last-child { color: var(--muted); line-height: 1.7; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid article { min-height: 240px; padding: 30px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(150deg, rgba(25, 32, 25, .88), rgba(15, 19, 16, .88)); }
.feature-grid article > span { color: var(--green); font: 700 11px "JetBrains Mono", monospace; }
.feature-grid h3 { margin: 45px 0 12px; font-size: 19px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.pricing-section { padding: 100px 24px; background: linear-gradient(180deg, transparent, rgba(117, 223, 127, .035), transparent); }
.price-card { display: grid; grid-template-columns: 1.15fr auto; gap: 28px 60px; max-width: 900px; margin: auto; padding: 48px; border: 1px solid rgba(117, 223, 127, .25); border-radius: 22px; background: linear-gradient(145deg, #182019, #111612); box-shadow: var(--shadow); }
.price { display: flex; align-items: center; color: var(--green); }
.price sup { align-self: flex-start; margin-top: 16px; font-size: 22px; }
.price strong { font-size: 74px; line-height: 1; letter-spacing: -.08em; }
.price span { color: var(--text); font-size: 22px; line-height: 1; }
.price small { color: var(--muted); font-size: 10px; }
.price-card ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; grid-column: 1 / -1; margin: 0; padding: 24px 0; border-block: 1px solid var(--line); list-style: none; }
.price-card li { color: #dce5dd; }
.price-card li::before { content: "✓"; margin-right: 10px; color: var(--green); }
.purchase-consent { display: flex; grid-column: 1 / -1; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.purchase-consent input { margin-top: 3px; }
.purchase-consent a { color: var(--green); text-decoration: underline; }
.price-card .full, .secure-note { grid-column: 1 / -1; }
.secure-note { color: #7f8a81; text-align: center; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.faq-grid details { padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.faq-grid summary { cursor: pointer; font-weight: 700; }
.faq-grid p { margin: 14px 0 0; color: var(--muted); line-height: 1.65; }

footer { display: grid; justify-items: center; gap: 18px; padding: 70px 24px 40px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }
footer nav { flex-wrap: wrap; justify-content: center; }
footer small { max-width: 760px; color: #687169; }

dialog { width: min(460px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: #151a16; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(3, 5, 4, .76); backdrop-filter: blur(8px); }
dialog form, .account-dialog { position: relative; display: grid; gap: 16px; padding: 34px; }
dialog h2 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
dialog p { margin: 0; color: var(--muted); line-height: 1.55; }
dialog label:not(.auth-consent) { display: grid; gap: 7px; color: #dbe4dc; font-size: 13px; font-weight: 700; }
dialog input:not([type="checkbox"]) { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #0e120f; outline: none; }
dialog input:focus { border-color: rgba(117, 223, 127, .5); }
.dialog-close { position: absolute; top: 16px; right: 18px; border: 0; color: var(--muted); background: transparent; font-size: 25px; cursor: pointer; }
.auth-consent { display: flex; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-consent input { margin-top: 3px; }
.auth-links { display: flex; justify-content: space-between; }
.auth-links button, .text-button { border: 0; color: var(--green); background: transparent; cursor: pointer; }
.form-message { padding: 10px 12px; border-radius: 8px; color: #cdebd0; background: rgba(117, 223, 127, .08); font-size: 13px; }
.form-message.error { color: #ffb7b7; background: rgba(255, 96, 96, .09); }
.toast-host { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: 380px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: #192019; box-shadow: var(--shadow); }
.toast.error { border-color: rgba(255, 96, 96, .3); }
.license-card { padding: 22px; border: 1px solid rgba(117, 223, 127, .2); border-radius: 12px; background: rgba(117, 223, 127, .045); }
.license-card > span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.license-card h3 { margin: 9px 0; }
.license-card small { display: block; margin-top: 12px; color: #7e8a80; }

@media (max-width: 900px) {
  .site-header nav > a { display: none; }
  .site-header nav .secondary { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .app-preview { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding-inline: 15px; }
  .site-header nav .primary { padding-inline: 12px; font-size: 12px; }
  .brand em { display: none; }
  .hero { min-height: auto; padding: 58px 18px 80px; }
  .hero h1 { font-size: 44px; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .proof { display: grid; gap: 10px; }
  .app-preview { display: none; }
  .feature-section, .faq-section { padding: 80px 18px; }
  .feature-grid, .faq-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 210px; }
  .price-card { grid-template-columns: 1fr; padding: 30px 22px; }
  .price-card ul { grid-template-columns: 1fr; }
  .price { justify-self: start; }
  footer nav { gap: 14px; }
}

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