/* ============================================================
   DomU DNS — Website Stylesheet
   Design: Dark Violet Neon (matching Dashboard)
   ============================================================ */

:root {
  --surface:    #080612;
  --surface-2:  #100c1e;
  --surface-3:  #1a1230;
  --border:     #2a1f42;
  --muted:      #6b5f8a;
  --muted-2:    #9a8cbf;
  --text:       #f0eeff;
  --text-2:     #ccc4e8;
  --primary:    #a855f7;
  --accent:     #7c3aed;
  --neon:       #c084fc;
  --neon-glow:  rgba(168, 85, 247, 0.35);
  --success:    #22c55e;
  --warning:    #f59e0b;
  --danger:     #ef4444;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3d2d5f; }

/* ── Typography ── */
h1, h2, h3, h4, h5 { color: var(--text); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-2); }
a  { color: var(--primary); text-decoration: none; }
a:hover { color: var(--neon); }
code, pre { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ── Neon Card ── */
.neon-card {
  background: var(--surface-2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1rem;
  box-shadow:
    0 0 10px rgba(168, 85, 247, 0.1),
    0 0 25px rgba(168, 85, 247, 0.05),
    inset 0 0 8px rgba(168, 85, 247, 0.02);
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.neon-card:hover {
  border-color: rgba(192, 132, 252, 0.55);
  box-shadow:
    0 0 14px rgba(168, 85, 247, 0.2),
    0 0 40px rgba(168, 85, 247, 0.08),
    inset 0 0 10px rgba(168, 85, 247, 0.03);
  transform: translateY(-2px);
}

.neon-text {
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.8), 0 0 20px rgba(168, 85, 247, 0.5);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(168, 85, 247, 0.05);
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 6, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 31, 66, 0.6);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(168, 85, 247, 0.1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.lang-toggle {
  display: flex;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-btn {
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
  background: none;
  border: none;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 99;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--text-2);
  font-size: 1rem;
}
.mobile-menu a:hover { background: rgba(168, 85, 247, 0.1); color: var(--text); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.page-top { padding-top: calc(var(--nav-height) + 1rem); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  color: var(--neon);
  margin-bottom: 1.25rem;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title .gradient {
  background: linear-gradient(135deg, var(--neon), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.125rem;
  color: var(--muted-2);
  margin-bottom: 2rem;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.hero-stat-label { font-size: 0.8125rem; color: var(--muted); }
.hero-visual {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* ── Section header ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p {
  font-size: 1.0625rem;
  color: var(--muted-2);
  max-width: 560px;
  margin: 0.75rem auto 0;
}

/* ── Problem / Why section ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card { padding: 1.5rem; }
.why-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.why-card h3 { margin-bottom: 0.5rem; font-size: 1.0625rem; }
.why-card p { font-size: 0.9375rem; }

/* ── Comparison table ── */
.table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.compare-table th, .compare-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--surface-3);
}
.compare-table th:first-child { border-radius: 0.5rem 0 0 0.5rem; }
.compare-table th:last-child { border-radius: 0 0.5rem 0.5rem 0; }
.compare-table tr:hover td { background: rgba(168, 85, 247, 0.04); }
.compare-table td:first-child { font-weight: 500; color: var(--text); }
.compare-table .col-domudns { color: var(--primary); font-weight: 600; }
.compare-table .col-domudns-header {
  color: var(--primary) !important;
  font-weight: 700 !important;
}
.check { color: var(--success); font-size: 1rem; }
.cross { color: var(--danger); font-size: 1rem; }
.partial { color: var(--warning); font-size: 0.8125rem; }
.ram-good { color: var(--success); font-weight: 700; }
.ram-bad  { color: var(--danger); }

/* ── Feature cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature-card { padding: 1.5rem; }
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted-2); }

/* ── Stats bar ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.stat-card {
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.875rem; color: var(--muted-2); }

/* ── Code block ── */
.code-block {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(42, 31, 66, 0.4);
}
.code-header .dots { display: flex; gap: 6px; }
.code-header .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red   { background: #ef4444; }
.dot-yellow{ background: #f59e0b; }
.dot-green { background: #22c55e; }
.code-lang {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.code-body {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
}
.code-body pre {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #e2d9f3;
}
.code-body .comment { color: var(--muted); }
.code-body .cmd     { color: var(--neon); }
.code-body .str     { color: #86efac; }

/* ── Install section ── */
.install-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.install-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
}
.step-num {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}
.step-content h4 { margin-bottom: 0.375rem; font-size: 1rem; }
.step-content p  { font-size: 0.875rem; color: var(--muted-2); margin-bottom: 0.75rem; }

/* ── Docs CTA grid ── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.doc-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
}
.doc-card:hover { text-decoration: none; }
.doc-card .doc-icon { font-size: 1.75rem; }
.doc-card h3 { font-size: 1rem; color: var(--text); }
.doc-card p  { font-size: 0.875rem; color: var(--muted-2); flex: 1; }
.doc-card .arrow { color: var(--primary); font-size: 0.875rem; margin-top: 0.5rem; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 2rem;
  align-items: start;
}
.footer-brand h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.footer-brand p  { font-size: 0.875rem; color: var(--muted); max-width: 280px; }
.footer-col h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--muted-2); }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 31, 66, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ── Docs layout ── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}
.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.sidebar-section { margin-bottom: 1.25rem; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
}
.sidebar-nav { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-2);
  transition: all 0.15s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text);
}
.sidebar-nav a.active { color: var(--primary); }
.docs-content { min-width: 0; }
.docs-content h1 { margin-bottom: 0.5rem; }
.docs-content .doc-desc {
  font-size: 1.0625rem;
  color: var(--muted-2);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.docs-content h2 {
  font-size: 1.375rem;
  margin: 2rem 0 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(42, 31, 66, 0.5);
}
.docs-content h2:first-of-type { border-top: none; }
.docs-content h3 { font-size: 1.0625rem; margin: 1.5rem 0 0.625rem; }
.docs-content p { font-size: 0.9375rem; margin-bottom: 1rem; }
.docs-content ul, .docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.docs-content li { font-size: 0.9375rem; color: var(--text-2); }
.docs-content code {
  background: var(--surface-3);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--neon);
  border: 1px solid rgba(42, 31, 66, 0.8);
}
.docs-content pre {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: #e2d9f3;
  line-height: 1.7;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.docs-content table th, .docs-content table td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.docs-content table th {
  background: var(--surface-3);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-content table td { color: var(--text-2); }
.docs-content .callout {
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.docs-content .callout.warning {
  background: rgba(245, 158, 11, 0.07);
  border-color: rgba(245, 158, 11, 0.25);
}
.docs-content .callout strong { color: var(--text); }
.doc-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.doc-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
  max-width: 200px;
  text-decoration: none;
}
.doc-nav-link:hover { border-color: var(--primary); background: rgba(168, 85, 247, 0.05); }
.doc-nav-label { font-size: 0.75rem; color: var(--muted); }
.doc-nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.doc-nav-link.next { text-align: right; margin-left: auto; }

/* ── API endpoint ── */
.endpoint {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}
.method {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}
.method-get    { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.method-post   { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.method-put    { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.method-patch  { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.method-delete { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.endpoint-path { font-family: monospace; color: var(--text); }
.endpoint-desc { color: var(--muted-2); font-size: 0.875rem; margin-left: auto; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero-visual { display: none; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
