:root {
  --bg: #0b1220;
  --panel: #ffffff;
  --line: #d9e0ea;
  --soft: #f3f7fb;
  --text: #132033;
  --muted: #5a6b81;
  --primary: #0a58ca;
  --primary-dark: #084298;
  --accent: #f2c207;
  --shadow: 0 18px 40px rgba(7, 28, 61, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef5ff 0%, #f9fbff 35%, #ffffff 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.muted { background: #f5f8fc; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19,32,51,0.08);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 72px; height: auto; }
.brand strong { display: block; font-size: 1.05rem; }
.brand span { color: var(--muted); font-size: 0.92rem; }
.topnav { display: flex; gap: 22px; flex-wrap: wrap; }
.topnav a { color: var(--muted); font-weight: 700; }
.topnav a:hover { color: var(--primary); }

.hero {
  background:
    radial-gradient(circle at top right, rgba(10,88,202,0.18), transparent 30%),
    linear-gradient(135deg, #0f1d36 0%, #13315c 48%, #0a58ca 100%);
  color: #fff;
  padding: 78px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
}
.hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
  max-width: 700px;
}
.hero-actions, .actions, .download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions { margin: 26px 0 18px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,0.88);
}
.hero-points li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.hero-card {
  display: flex;
  justify-content: center;
}
.mini-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  max-width: 430px;
}
.mini-card h3 { margin-top: 0; }
.mini-card p { font-size: 0.98rem; }
.mini-card img { border-radius: 18px; }

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(19,32,51,0.06);
}
.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}
.panel-header h2, .section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}
.panel-header p, .section-title p { margin: 0; color: var(--muted); }
.qr-form, .dynamic-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 0.96rem; }
input, select, textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 0.98rem;
}
textarea { min-height: 120px; resize: vertical; }
input[type="color"] { min-height: 52px; padding: 6px; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(10,88,202,0.12);
  border-color: var(--primary);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  border-color: rgba(255,255,255,0.25);
  background: transparent;
  color: inherit;
}
.panel .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}
.panel .btn-outline:hover {
  background: rgba(10,88,202,0.06);
}
.btn-soft {
  background: var(--soft);
  color: var(--text);
  border-color: var(--line);
}
.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.preview-box {
  min-height: 390px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
  border: 1px dashed #cbd8e9;
  border-radius: 18px;
  padding: 20px;
}
.placeholder { text-align: center; color: var(--muted); }
.placeholder-icon {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: #fff;
  margin: 0 auto 12px;
  box-shadow: var(--shadow);
}
#qrPreview {
  max-width: 100%;
  max-height: 340px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow);
}
.preview-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.template-grid, .features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.template-card, .feature-card {
  background: #fff;
  border: 1px solid rgba(19,32,51,0.07);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.template-card {
  cursor: pointer;
  text-align: left;
}
.template-card strong, .feature-card h3 { display: block; margin-bottom: 8px; }
.template-card span, .feature-card p { color: var(--muted); margin: 0; }
.template-card:hover {
  border-color: rgba(10,88,202,0.24);
  transform: translateY(-2px);
}
.faq { max-width: 860px; }
details {
  background: #fff;
  border: 1px solid rgba(19,32,51,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
details + details { margin-top: 14px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin-bottom: 0; }
.footer {
  background: #0f1d36;
  color: rgba(255,255,255,0.9);
  padding: 34px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}
.footer a { display: block; color: rgba(255,255,255,0.82); margin-top: 8px; }
.footer-logo { width: 84px; }

@media (max-width: 980px) {
  .hero-grid,
  .app-grid,
  .template-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner,
  .hero-grid,
  .app-grid,
  .form-grid-2,
  .template-grid,
  .features-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
  .topbar-inner {
    padding: 12px 0;
  }
  .topnav {
    gap: 12px;
  }
  .section { padding: 56px 0; }
  .panel { padding: 20px; }
}
