:root {
  --bg: #eef6ff;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --text: #103760;
  --muted: #587391;
  --line: rgba(16, 55, 96, 0.12);
  --blue: #0044d6;
  --blue-soft: #4f84ff;
  --green: #4bac00;
  --green-soft: #8ad241;
  --shadow: 0 24px 60px rgba(0, 68, 214, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 132, 255, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(75, 172, 0, 0.16), transparent 24%),
    linear-gradient(180deg, #f7fbff 0%, #ebf5ff 100%);
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 26px;
}

.brand-logo {
  width: clamp(156px, 18vw, 220px);
  height: auto;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--muted);
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  color: var(--blue);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 24px rgba(0, 68, 214, 0.18);
}

.hero-panel,
.utility-card,
.generator-layout,
.benefit-grid,
.roadmap-grid {
  display: grid;
  gap: 28px;
}

.hero-panel {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 68, 214, 0.08);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.hero-copy h1,
.utility-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p,
.section-heading p,
.utility-copy p,
.benefit-card p,
.preview-caption p,
.field-hint,
.status-message {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy p {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 28px rgba(0, 68, 214, 0.18);
}

.button-secondary {
  color: var(--blue);
  background: rgba(0, 68, 214, 0.08);
}

.button-disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.device-card,
.preview-window,
.generator-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.device-card {
  width: min(100%, 390px);
  padding: 18px;
  border-radius: 28px;
  transform: rotate(-7deg);
}

.device-top,
.preview-header {
  display: flex;
  gap: 8px;
}

.device-top span,
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(16, 55, 96, 0.16);
}

.qr-mock,
.qr-output-wrap {
  display: grid;
  place-items: center;
  border-radius: 24px;
  margin: 18px 0;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(0, 68, 214, 0.05), rgba(75, 172, 0, 0.08)),
    #fff;
}

.qr-grid,
.preview-code {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(16, 55, 96, 0.12) 16%, transparent 16% 24%, rgba(16, 55, 96, 0.12) 24% 40%, transparent 40% 48%, rgba(16, 55, 96, 0.12) 48% 64%, transparent 64% 72%, rgba(16, 55, 96, 0.12) 72% 88%, transparent 88%),
    linear-gradient(rgba(16, 55, 96, 0.12) 16%, transparent 16% 24%, rgba(16, 55, 96, 0.12) 24% 40%, transparent 40% 48%, rgba(16, 55, 96, 0.12) 48% 64%, transparent 64% 72%, rgba(16, 55, 96, 0.12) 72% 88%, transparent 88%),
    #fff;
  background-size: 100% 100%;
  position: relative;
}

.qr-grid::before,
.qr-grid::after,
.preview-code::before,
.preview-code::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 10px solid var(--blue);
  border-radius: 10px;
}

.qr-grid::before,
.preview-code::before {
  top: 14px;
  left: 14px;
}

.qr-grid::after,
.preview-code::after {
  top: 14px;
  right: 14px;
  border-color: var(--green);
}

.device-lines,
.preview-text {
  display: grid;
  gap: 10px;
}

.device-lines span,
.preview-text span {
  display: block;
  height: 11px;
  border-radius: 999px;
  background: rgba(16, 55, 96, 0.12);
}

.device-lines span:nth-child(2),
.preview-text span:nth-child(2) {
  width: 78%;
}

.device-lines span:nth-child(3),
.preview-text span:nth-child(3) {
  width: 62%;
}

.floating-badge {
  position: absolute;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 14px 28px rgba(16, 55, 96, 0.2);
}

.badge-blue {
  top: 30px;
  right: 18px;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
}

.badge-green {
  left: 12px;
  bottom: 48px;
  background: linear-gradient(135deg, var(--green-soft), var(--green));
}

.section-block {
  margin-top: 34px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
  text-align: center;
}

.section-heading-left {
  margin-bottom: 0;
  text-align: left;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 58ch;
  margin: 12px auto 0;
}

.utility-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: center;
}

.utility-copy h3 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: 14px;
}

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

.feature-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 600;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.utility-preview {
  display: grid;
  gap: 18px;
}

.preview-window {
  padding: 18px;
  border-radius: 24px;
}

.preview-bar {
  height: 10px;
  width: 36%;
  border-radius: 999px;
  background: rgba(16, 55, 96, 0.12);
}

.preview-body {
  display: grid;
  place-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 245, 255, 0.8));
  border: 1px solid var(--line);
}

.roadmap-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 248, 255, 0.82));
  border: 1px solid var(--line);
  overflow: hidden;
}

.roadmap-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 172, 0, 0.15), transparent 70%);
}

.benefit-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.roadmap-card h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

.roadmap-card p {
  color: var(--muted);
  line-height: 1.6;
}

.roadmap-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.roadmap-link:hover,
.roadmap-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 68, 214, 0.24);
}

.roadmap-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 68, 214, 0.08);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.utility-shell {
  padding-bottom: 60px;
}

.utility-main {
  display: grid;
  gap: 22px;
}

.utility-hero {
  background:
    radial-gradient(circle at top right, rgba(75, 172, 0, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.94));
}

.generator-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
}

.generator-card {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.form-card h2 {
  margin-bottom: 18px;
  font-size: 1.8rem;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-group {
  min-width: 0;
}

.field-span-2 {
  grid-column: span 2;
}

input[type="url"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
.text-area {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(16, 55, 96, 0.16);
  border-radius: 18px;
  outline: none;
}

input[type="file"] {
  padding: 14px;
}

.text-area {
  min-height: 120px;
  resize: vertical;
}

input[type="url"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
.text-area:focus {
  border-color: rgba(0, 68, 214, 0.5);
  box-shadow: 0 0 0 4px rgba(0, 68, 214, 0.08);
}

.field-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 6px;
  font-weight: 600;
}

.field-hint {
  margin-top: 10px;
}

.status-message {
  min-height: 26px;
  margin-top: 16px;
  font-weight: 600;
}

.status-message.is-error {
  color: #b42318;
}

.status-message.is-success {
  color: #157f1f;
}

.preview-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.qr-output {
  width: min(100%, 300px);
  min-height: 300px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.qr-output canvas,
.qr-output img {
  display: block;
  width: 100%;
  height: auto;
}

.preview-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.result-box {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.result-box-compact {
  max-height: 220px;
  overflow: auto;
  font-size: 0.94rem;
}

.image-canvas {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
}

.signature-preview {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: auto;
}

.code-area {
  width: 100%;
  min-height: 220px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  resize: vertical;
  font: 0.92rem/1.5 Consolas, Monaco, monospace;
  color: var(--text);
  background: #fbfdff;
}

.search-preview {
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.search-domain {
  display: block;
  color: #1f1f1f;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.search-title {
  display: block;
  color: #1a0dab;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.search-description {
  color: #4d5156;
}

.social-card {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.social-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 68, 214, 0.08), rgba(75, 172, 0, 0.12)),
    #eef6ff;
  background-size: cover;
  background-position: center;
  color: var(--muted);
  font-weight: 700;
}

.social-copy {
  padding: 18px;
}

.social-url {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.social-copy p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-panel,
  .utility-card,
  .generator-layout,
  .benefit-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .section-block,
  .generator-card {
    padding: 24px;
  }

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

  .field-span-2 {
    grid-column: span 1;
  }

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

  .hero-visual {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .top-nav {
    gap: 12px;
  }

  .hero-copy h1,
  .utility-hero h1 {
    font-size: 2.3rem;
  }

  .button {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
