:root {
  --bg: #0a0f18;
  --surface: #121a28;
  --surface-2: #182336;
  --border: #25344d;
  --text: #f3f6fa;
  --muted: #9eb0c9;
  --accent: #3d8bff;
  --accent-soft: rgba(61, 139, 255, 0.14);
  --green: #38d39f;
  --warn-bg: rgba(245, 166, 35, 0.1);
  --warn-border: rgba(245, 166, 35, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top center, #13213a 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #7ab3ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 15, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.lang-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(61, 139, 255, 0.4);
  color: #8cc0ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 720px;
  margin: 0 auto 28px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.12s, background 0.15s, border-color 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: #2f7df2;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* BYOC notice */
.byoc-banner {
  margin: 28px auto 0;
  max-width: 860px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.92rem;
  color: #f6e6c8;
}

.byoc-banner strong {
  color: #ffd080;
}

/* Sections */
section {
  padding: 44px 0;
}

h2.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-align: center;
}

p.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(61, 139, 255, 0.12) 0%, var(--surface) 60%);
}

.price-tag {
  font-size: 2rem;
  font-weight: 800;
  margin: 10px 0 4px;
}

.price-tag span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.price-note {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
  min-height: 22px;
  margin-bottom: 14px;
}

.price-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.price-list li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

/* Legal / Doc pages */
.doc-wrap {
  max-width: 820px;
  margin: 42px auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}

.doc-wrap h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.doc-wrap h2 {
  font-size: 1.2rem;
  margin-top: 26px;
  margin-bottom: 8px;
  color: #cfe2ff;
}

.doc-wrap p,
.doc-wrap li {
  color: #c9d5e6;
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.doc-wrap ul,
.doc-wrap ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

/* Screenshot gallery */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.shot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}

.shot-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.shot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #070b12;
  border-bottom: 1px solid var(--border);
}

.shot-caption {
  padding: 16px 18px;
}

.shot-caption h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
  color: var(--text);
}

.shot-caption p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* Manual layout & tables */
.manual-wrap {
  max-width: 920px;
}

.toc-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.toc-box h2 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #8cc0ff;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px 20px;
  list-style: none;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.toc-grid li {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.doc-wrap h3 {
  font-size: 1.02rem;
  margin-top: 18px;
  margin-bottom: 6px;
  color: #e4eeff;
}

.doc-wrap code {
  background: #0d1522;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.88em;
  color: #9bc5ff;
}

.kbd {
  display: inline-block;
  background: #1a263b;
  border: 1px solid #354b6e;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f3f6fa;
  white-space: nowrap;
}

.manual-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 20px;
  font-size: 0.92rem;
}

.manual-table th,
.manual-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.manual-table th {
  background: var(--surface-2);
  color: #cfe2ff;
  font-weight: 700;
}

.manual-table td {
  color: #c9d5e6;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid rgba(61, 139, 255, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.92rem;
  color: #dbe9ff;
}

.manual-shot {
  margin: 18px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #070b12;
}

.manual-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.manual-shot figcaption {
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

/* Support page & Contact block */
.support-hero {
  text-align: center;
  padding: 52px 0 30px;
}

.support-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.support-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.contact-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(270px, 340px) 1fr;
  background: var(--surface);
  border: 1px solid rgba(90, 148, 255, 0.28);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(2, 6, 18, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  margin: 12px 0 44px;
}

.contact-aside {
  position: relative;
  padding: 34px 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(61, 139, 255, 0.26) 0%, transparent 62%),
    linear-gradient(165deg, #13223b 0%, #0d1626 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 211, 159, 0.12);
  border: 1px solid rgba(56, 211, 159, 0.35);
  color: #8bf3cf;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.contact-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(56, 211, 159, 0.22);
}

.contact-aside h2 {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 14px 0 8px;
}

.contact-aside .aside-lead {
  color: #b7c7de;
  font-size: 0.93rem;
  line-height: 1.55;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.58);
  border: 1px solid rgba(122, 179, 255, 0.16);
  transition: border-color 0.18s, background 0.18s;
}

.contact-info-card:hover {
  border-color: rgba(61, 139, 255, 0.45);
  background: rgba(14, 24, 42, 0.8);
}

.contact-info-ico {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(61, 139, 255, 0.16);
  border: 1px solid rgba(61, 139, 255, 0.3);
  color: #8cc0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-ico svg {
  width: 18px;
  height: 18px;
}

.contact-info-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-info-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.contact-aside-note {
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  font-size: 0.83rem;
  line-height: 1.5;
  color: #f6e6c8;
}

.contact-aside-note strong {
  color: #ffd080;
}

.contact-panel {
  padding: 34px 36px;
  background: linear-gradient(180deg, rgba(24, 35, 54, 0.45) 0%, rgba(16, 24, 38, 0.85) 100%);
}

.contact-panel-head {
  margin-bottom: 22px;
}

.contact-panel-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.contact-panel-head p {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-field label {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #d6e6ff;
}

.form-field .req {
  color: #60a5fa;
}

.form-counter {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(9, 14, 24, 0.88);
  color: var(--text);
  border: 1.5px solid #263650;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #627796;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: #364e73;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: #09101d;
  box-shadow: 0 0 0 4px rgba(61, 139, 255, 0.18);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239eb0c9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(37, 52, 77, 0.7);
}

.form-hint {
  color: var(--muted);
  font-size: 0.83rem;
}

.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4b95ff 0%, #2563eb 100%);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.38);
  transition: transform 0.14s, box-shadow 0.18s, filter 0.18s;
}

.form-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.18s;
}

.form-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.5);
}

.form-btn:hover:not(:disabled) svg {
  transform: translate(2px, -1px);
}

.form-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  display: none;
}

.form-status.ok {
  display: block;
  background: rgba(56, 211, 159, 0.13);
  border: 1px solid rgba(56, 211, 159, 0.45);
  color: #8bf3cf;
}

.form-status.err {
  display: block;
  background: rgba(248, 113, 113, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

/* FAQ accordion on Support page */
.faq-section {
  padding: 10px 0 36px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: border-color 0.16s, background 0.16s;
}

.faq-item[open] {
  border-color: rgba(61, 139, 255, 0.45);
  background: linear-gradient(180deg, rgba(24, 35, 54, 0.72) 0%, var(--surface) 100%);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  color: #eef4ff;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #8cc0ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.16s, background 0.16s;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent-soft);
  border-color: rgba(61, 139, 255, 0.4);
}

.faq-item p {
  margin-top: 12px;
  color: #b7c7de;
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item code {
  background: #0d1522;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.86em;
  color: #9bc5ff;
}

@media (max-width: 860px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 26px 22px;
  }
  .contact-panel {
    padding: 26px 22px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-btn {
    width: 100%;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .doc-wrap {
    padding: 22px;
  }
  .hero {
    padding-top: 48px;
  }
}
