﻿:root {
  --primary: #4f21d9;
  --primary-dark: #3512a8;
  --purple: #6d28d9;
  --magenta: #e91e63;
  --orange: #ff5a36;
  --navy: #11183d;
  --text: #20264a;
  --muted: #6b718d;
  --border: #e7e5f2;
  --bg: #f8f9ff;
  --card: #ffffff;
  --soft-purple: #f1edff;
  --soft-pink: #fff0f6;
  --gradient: linear-gradient(110deg, #ff5a36 0%, #e91e63 45%, #4f21d9 100%);
  --gradient-purple: linear-gradient(110deg, #e91e63 0%, #4f21d9 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  cursor: pointer;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.nav-container {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.logo span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 25px;
  background: var(--gradient);
  box-shadow: 0 6px 18px rgba(79, 33, 217, 0.2);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a {
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

/* Main layout */

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

.hero {
  text-align: center;
  padding: 74px 0 38px;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 850px;
  margin: 0 auto 18px;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 22px auto 0;
  border-radius: 10px;
  background: var(--gradient);
}

.hero p {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* Generator card */

.generator-card {
  max-width: 850px;
  margin: 18px auto 90px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 18px 55px rgba(40, 30, 100, 0.07);
}

.generator-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--primary);
  border-color: #c9bdf5;
  background: var(--soft-purple);
}

.tab.active {
  background: var(--gradient-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 33, 217, 0.18);
}

.qr-form {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.qr-form label,
.customize label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #a0a5b9;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 33, 217, 0.08);
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.primary-btn {
  width: 100%;
  border: 0;
  color: #fff;
  background: var(--gradient-purple);
  box-shadow: 0 8px 22px rgba(79, 33, 217, 0.18);
}

.primary-btn:hover {
  background: linear-gradient(110deg, #d91a5b 0%, #3512a8 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 33, 217, 0.25);
}

.customize {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 24px;
}

.customize h3 {
  color: var(--navy);
  font-size: 17px;
  margin: 0 0 16px;
}

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

.customize-grid > div {
  display: grid;
  gap: 8px;
}

input[type="color"] {
  height: 48px;
  padding: 5px;
  cursor: pointer;
}

.qr-result {
  margin-top: 32px;
  padding: 30px 20px;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #d9d5ed;
  border-radius: 16px;
  background: #fcfcff;
}

#qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}

#qrcode img,
#qrcode canvas {
  max-width: 100%;
  height: auto;
}

#qr-placeholder {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.download-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-btn {
  border: 1px solid #d9d1fa;
  background: var(--soft-purple);
  color: var(--primary);
}

.secondary-btn:hover {
  background: #e8e1ff;
  border-color: #bfb0f3;
}

/* Content sections */

.content-section {
  max-width: 950px;
  margin: 0 auto 80px;
}

.content-section h2,
.content-page h2 {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 16px;
}

.content-section p,
.content-page p {
  color: var(--muted);
  line-height: 1.8;
}

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

.feature {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px 20px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: #d6ccf7;
  box-shadow: 0 10px 25px rgba(40, 30, 100, 0.06);
}

.feature strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 8px;
}

.feature span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.steps {
  padding-left: 22px;
  color: var(--muted);
}

.steps li {
  margin-bottom: 14px;
  padding-left: 6px;
}

.steps strong {
  color: var(--navy);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 12px 0 0;
  font-size: 14px;
}

/* SEO content pages */

.content-page {
  max-width: 900px;
  padding-top: 70px;
  padding-bottom: 100px;
}

.content-page h1 {
  color: var(--navy);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.content-page .lead {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.content-page h2 {
  margin-top: 40px;
}

.content-page ul,
.content-page ol {
  color: var(--muted);
  line-height: 1.8;
}

.content-page li {
  margin-bottom: 10px;
}

.inline-btn {
  width: auto;
  margin: 10px 0 20px;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #c8cbe0;
  padding: 52px 0 20px;
  border-top: 4px solid transparent;
  border-image: var(--gradient) 1;
}

.footer-container {
  max-width: 1160px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-container strong {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.footer-container p {
  color: #9298b8;
  font-size: 14px;
  margin-top: 10px;
}

.footer-container div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-content: flex-start;
}

.footer-container a {
  color: #b9bed5;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-container a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1160px;
  margin: 38px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #858ba9;
  font-size: 13px;
}

/* Utility */

.hidden {
  display: none !important;
}

/* Responsive */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 60px;
  }
}

@media (max-width: 700px) {
  .nav-container {
    height: 68px;
    padding: 0 18px;
  }

  .logo {
    font-size: 19px;
  }

  .logo span {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

  nav {
    gap: 14px;
    font-size: 12px;
  }

  .container {
    padding: 0 18px;
  }

  .hero {
    padding: 48px 0 28px;
  }

  .hero h1 {
    font-size: 38px;
    letter-spacing: -1.2px;
  }

  .hero p {
    font-size: 15px;
  }

  .generator-card {
    padding: 22px;
    border-radius: 18px;
    margin-bottom: 65px;
  }

  .generator-tabs {
    gap: 7px;
  }

  .tab {
    padding: 9px 13px;
    font-size: 12px;
  }

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

  .content-section {
    margin-bottom: 60px;
  }

  .content-section h2,
  .content-page h2 {
    font-size: 26px;
  }

  .content-page {
    padding-top: 48px;
  }

  .content-page h1 {
    font-size: 36px;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
    padding: 0 18px;
  }

  .footer-bottom {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  nav {
    gap: 10px;
  }

  .generator-card {
    padding: 18px;
  }

  .download-actions {
    flex-direction: column;
    width: 100%;
  }

  .secondary-btn {
    width: 100%;
  }
}

/* Footer */

.footer-brand {
  min-width: 240px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-logo span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  font-size: 25px;
  background: var(--gradient);
}

.footer-brand p {
  margin: 14px 0 0;
}

.footer-brand .footer-tagline {
  margin-top: 4px;
  color: #777e9f;
  font-size: 13px;
}

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

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}

.footer-column h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-column a {
  color: #9da4c2;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom-inner {
  max-width: 1160px;
  margin: auto;
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom-inner p {
  margin: 0;
}

.footer-bottom-inner strong {
  color: #c9cde0;
  font-weight: 600;
}

@media (max-width: 700px) {
  .footer-links {
    gap: 35px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

#qr-error {
  color: var(--magenta) !important;
  font-size: 13px;
  margin: 12px 0 0;
  line-height: 1.5;
}