:root {
  --primary: #2663eb;
  --primary-dark: #1748ad;
  --accent: #31c48d;
  --bg: #f5f7fb;
  --text: #1f2933;
  --muted: #5f6c80;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

header {
  background: #fff;
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

nav .brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

nav .links {
  display: flex;
  gap: 1rem;
  font-weight: 500;
}

nav .links a {
  color: var(--muted);
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(38, 99, 235, 0.25);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: rgba(38, 99, 235, 0.1);
  color: var(--primary);
}

.generate-btn {
  width: 100%;
  margin-top: 1.25rem;
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

section {
  margin-bottom: 3rem;
  background: #fff;
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
}

section h2 {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  border: 1px solid rgba(38, 99, 235, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 1rem;
  font-family: inherit;
}

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

.color-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  width: 70px;
  height: 48px;
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: transparent;
  cursor: pointer;
}

.color-preview {
  flex: 1;
  height: 48px;
  border-radius: 0.75rem;
  border: 1px dashed rgba(15, 23, 42, 0.3);
  background: #fff;
  transition: background 0.2s ease;
}

.qr-output {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.qr-output img {
  width: 240px;
  height: 240px;
  border-radius: 1rem;
  border: 10px solid rgba(38, 99, 235, 0.1);
}

footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2.5rem 1.5rem;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

footer a {
  color: #e2e8f0;
}

footer small {
  display: block;
  margin-top: 1.5rem;
  color: rgba(226, 232, 240, 0.8);
}

.notice {
  background: rgba(49, 196, 141, 0.12);
  border: 1px solid rgba(49, 196, 141, 0.5);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  color: var(--text);
}

.hidden {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: min(420px, calc(100% - 2rem));
  padding: 1.25rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.1);
  z-index: 100;
}

.cookie-banner h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.cookie-banner p {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-actions .btn {
  flex: 1;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-item h3 {
  margin-bottom: 0.3rem;
}

.listed {
  list-style: disc inside;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 600px) {
  nav .links {
    flex-direction: column;
    align-items: flex-start;
  }

  section {
    padding: 1.5rem;
  }
}
