/* ============ Gwazor — dark minimal ============ */
:root {
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-2: #1a1a20;
  --line: #24242b;
  --text: #f3f3f5;
  --text-2: #c9c9d0;
  --muted: #8b8b95;
  --accent: #b8232b;
  --accent-hover: #d02b34;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-body: "Manrope", "Segoe UI", system-ui, Arial, sans-serif;
  --font-head: "Unbounded", "Manrope", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.caret { font-size: 9px; opacity: 0.5; margin-left: 2px; }

/* ============ Header ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(10px);
}
.nav { height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; font-size: 15px; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.brand-small .brand-icon { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav-link {
  background: none; border: 0; color: var(--text-2); cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 6px 0; transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }

/* ============ Dropdowns ============ */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 170px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.dropdown-right { left: auto; right: 0; }
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  color: var(--text-2); font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.dropdown-item:hover { background: var(--surface); color: var(--text); }
.dropdown-item.selected { color: var(--text); font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 999px; }
.btn-accent, .btn-red { background: var(--accent); color: #fff; }
.btn-accent:hover, .btn-red:hover { background: var(--accent-hover); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #dcdce2; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: #3a3a44; background: var(--surface); }
.btn-block { width: 100%; }
.text-link { color: var(--text-2); font-size: 14px; }
.text-link:hover { color: var(--text); }

/* ============ Hero ============ */
.hero { padding: 96px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; }
.hero-text { max-width: 720px; }
.hero h1 {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-sub { color: var(--muted); font-size: 16px; max-width: 480px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 14px 26px; }
.download { margin-top: 32px; max-width: 420px; }
.dl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.dl-title { font-family: var(--font-head); font-weight: 500; font-size: 14px; letter-spacing: -0.01em; }
.dl-version { color: var(--muted); font-family: var(--font-body); font-weight: 500; font-size: 13px; margin-left: 6px; }
.dl-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dl-btn { padding: 10px 18px; font-size: 13px; white-space: nowrap; }
.download .input-sub { color: var(--muted); font-size: 13px; }
.download .btn-red { padding: 10px 18px; font-size: 13px; }
.status-pill { display: inline-block; padding: 8px 14px; border-radius: 8px; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.hero-art { display: grid; place-items: center; }
.hero-logo {
  width: 100%; max-width: 520px; height: auto;
  border-radius: 24px; border: 1px solid var(--line);
}

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-family: var(--font-head); font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.01em; margin-bottom: 36px;
}

/* ============ Plans ============ */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
  transition: border-color 0.3s;
}
.plan:hover { border-color: #3a3a44; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.plan-head h3 { font-family: var(--font-head); font-weight: 500; font-size: 18px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.plan-sub { color: var(--muted); font-size: 14px; min-height: 42px; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price span { font-family: var(--font-head); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.price small { color: var(--muted); font-size: 14px; }
.feat-list { display: grid; gap: 10px; margin-bottom: 18px; }
.feat-list li { font-size: 15px; color: var(--text-2); padding-left: 18px; position: relative; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.perks { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.plan-actions { margin-top: auto; display: grid; gap: 8px; }

/* ============ Support ============ */
.consult { text-align: center; max-width: 640px; }
.consult h2 { font-family: var(--font-head); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; letter-spacing: -0.01em; }
.consult p { color: var(--muted); margin-bottom: 26px; }
.consult-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer { padding: 36px 0; margin-top: auto; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-link, .footer-link { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot-link:hover, .footer-link:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px);
}
.modal.is-open { display: flex; }
.modal-dialog {
  position: relative; width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px;
}
.modal-dialog h3 { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.modal-price { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.modal-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.check-list { display: grid; gap: 9px; margin-bottom: 24px; }
.check-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.modal-actions { display: grid; gap: 10px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--line); }

/* ============ Inner pages: GwazorDPI, Privacy ============ */
.page-hero { padding: 48px 0 8px; }
.meta-line { color: var(--muted); font-size: 14px; }
.legal { max-width: 760px; padding: 24px 24px 80px; }
.legal h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; letter-spacing: -0.01em; }
.legal section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 12px; }
.legal h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 15px; }
.legal ul { padding-left: 20px; margin-top: 8px; list-style: disc; }
.legal li { margin-bottom: 4px; }
.eyebrow { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.dpi-card { max-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin-bottom: 80px; }
.dpi-card h2 { font-family: var(--font-head); font-weight: 500; font-size: 26px; margin-bottom: 10px; }
.dpi-card p { color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-logo { max-width: 320px; }
  .nav-links .nav-link[href] { display: none; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .section { padding: 60px 0; }
  .nav-actions .btn-light { display: none; }
  .nav-links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* sub-pages: same header/footer */
.legal section { border-color: var(--line); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* GwazorDPI: plain centered text */
.dpi-main { display: grid; place-items: center; padding: 48px 24px; }
.dpi-center { text-align: center; }
.dpi-center h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.02em; margin-bottom: 12px; }
.dpi-center p { color: var(--muted); font-size: 18px; }
