:root {
  --bg: #020617;
  --bg-soft: #0b1220;
  --panel: #0f172a;
  --border: rgba(148, 163, 184, 0.18);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(56, 189, 248, 0.08), transparent 20%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #020617 0%, #06101e 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.82);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(56, 189, 248, 0.1));
  color: #bef5ff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark img,
.brand-mark svg {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.brand-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #cbd5e1;
  font-size: 14px;
  transition: 0.18s ease;
}

.nav a:hover,
.nav a.active {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav .nav-cta {
  border-color: transparent;
  background: var(--accent);
  color: #05202a;
  font-weight: 700;
}

.nav .nav-cta:hover {
  border-color: transparent;
  background: #67e8f9;
  color: #03171f;
}

.page {
  padding: 34px 0 84px;
}

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.72));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: var(--accent-soft);
  color: #9ae6f6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.3px;
}

.lead {
  margin: 16px 0 0;
  max-width: 760px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  appearance: none;
  cursor: pointer;
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #131d31;
}

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: #05202a;
}

.btn-primary:hover {
  background: #67e8f9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
}

.stat-card,
.mini-card,
.card,
.tool-card,
.contact-card,
.legal-card,
.map-card,
.faq-card,
.control-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-card {
  padding: 20px;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
}

.stat-copy {
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
}

.section {
  padding: 54px 0 0;
}

.section-heading {
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
}

.section-heading h3 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.6px;
}

.section-heading p {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card,
.tool-card,
.contact-card,
.legal-card,
.map-card,
.faq-card,
.control-card,
.mini-card {
  padding: 24px;
}

.card h4,
.tool-card h4,
.contact-card h4,
.legal-card h4,
.map-card h4,
.faq-card h4,
.control-card h4,
.mini-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
}

.card p,
.tool-card p,
.contact-card p,
.legal-card p,
.map-card p,
.faq-card p,
.control-card p,
.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #dbe7f5;
  font-size: 14px;
  line-height: 1.7;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
}

.pill.live {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
  color: #d1fae5;
}

.pill.planned {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.cta-strip {
  margin-top: 24px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(15, 23, 42, 0.3));
}

.cta-strip h4 {
  margin: 0;
  font-size: 22px;
}

.cta-strip p {
  margin: 10px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tool-tag {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
}

.tool-tag.live {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.tool-tag.utility {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

.tool-tag.preview {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
}

.tool-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-actions a {
  font-size: 14px;
  color: #fff;
}

.toolbox {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.toolbox > .panel {
  height: 100%;
}

.workspace {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.workspace h3 {
  margin: 0;
  font-size: 24px;
}

.workspace p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.control-panel {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="file"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.55);
  color: #f8fafc;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.range-row input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.muted-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.preview-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
}

.preview-frame {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 320px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.76), rgba(15, 23, 42, 0.88));
  display: grid;
  place-items: center;
}

.preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent 38%, rgba(56, 189, 248, 0.05));
  pointer-events: none;
}

.preview-placeholder {
  position: relative;
  z-index: 1;
  max-width: 320px;
  text-align: center;
}

.preview-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.preview-placeholder p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.qr-preview-image {
  position: relative;
  z-index: 1;
  width: min(280px, 100%);
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-item span:first-child {
  color: var(--muted);
}

.meta-item span:last-child {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.canvas-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  place-items: center;
}

.canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

.notice {
  padding: 14px 16px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.08);
  color: #d8fbff;
  font-size: 14px;
  line-height: 1.7;
}

.result-shell {
  display: grid;
  gap: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.result-block {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.result-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.42px;
  text-transform: uppercase;
}

.result-value {
  margin-top: 8px;
  color: #f8fafc;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.result-copy {
  margin-top: 8px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.7;
}

.mono-output,
.data-output {
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.62);
  color: #f8fafc;
  overflow: auto;
}

.mono-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.data-output {
  font-size: 14px;
  line-height: 1.75;
}

.stack-list {
  display: grid;
  gap: 10px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.stack-item:last-child {
  border-bottom: none;
}

.stack-item span:first-child {
  color: var(--muted);
}

.stack-item span:last-child {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.toolbar-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.inline-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.46);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  font-size: 14px;
}

.table-wrap th {
  color: #f8fafc;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.table-wrap td {
  color: #dbe7f5;
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

.legal-stack,
.faq-stack {
  display: grid;
  gap: 18px;
}

.legal-card h4,
.faq-card h4 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.index-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: #e5eefc;
  transition: 0.18s ease;
}

.index-list a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
}

.site-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 18px;
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.small-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1080px) {
  .hero,
  .toolbox,
  .site-map,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  body::before {
    background-size: 56px 56px;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .brand-mark img,
  .brand-mark svg {
    width: 34px;
    height: 34px;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    padding-top: 24px;
  }

  .hero,
  .toolbox,
  .grid-2,
  .grid-3,
  .grid-4,
  .site-map,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .stats-grid,
  .workspace,
  .preview-shell {
    padding: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h3 {
    font-size: 26px;
  }
}
