:root {
  color-scheme: light;
  --background: #f7f1e7;
  --background-warm: #fff9ef;
  --surface: #fffdf8;
  --surface-soft: #efe3d0;
  --text: #153c3f;
  --text-strong: #0b2f33;
  --muted: #5f6f6f;
  --accent: #2f8f87;
  --accent-strong: #1f6f6a;
  --accent-warm: #d96f45;
  --accent-soft: #dbeee9;
  --line: rgba(21, 60, 63, 0.16);
  --shadow: 0 24px 70px rgba(35, 54, 54, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 143, 135, 0.2), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(217, 111, 69, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--background-warm), var(--background));
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.logo, .nav-links { display: flex; align-items: center; }
.logo { gap: 10px; color: var(--text-strong); font-weight: 800; letter-spacing: -0.02em; }
.logo-mark { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 999px; background: var(--accent); color: var(--surface); box-shadow: 0 12px 28px rgba(47, 143, 135, 0.28); }
.nav-links { gap: 18px; color: var(--muted); font-size: 0.95rem; }
.hero { padding: 44px 0 30px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; color: var(--text-strong); font-size: clamp(3rem, 9vw, 7.4rem); line-height: 0.9; letter-spacing: -0.08em; }
h2 { margin-bottom: 12px; color: var(--text-strong); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.06em; }
h3 { margin-bottom: 10px; color: var(--text-strong); font-size: 1.25rem; }
.hero-copy, .privacy-banner p, .tool-card p, .helper-text, .status-message, label span { color: var(--muted); line-height: 1.6; }
.hero-copy { max-width: 820px; font-size: clamp(1.05rem, 2vw, 1.3rem); }

.privacy-banner, .tool-card, .qr-panel, .preview-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.privacy-banner { margin-bottom: 22px; padding: 30px; border-left: 8px solid var(--accent); }
.eyebrow { margin: 0 0 12px; color: var(--accent-warm); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 64px; }
.tool-card { display: grid; min-height: 190px; align-content: start; padding: 22px; transition: transform 180ms ease, border-color 180ms ease; }
.tool-card:hover { transform: translateY(-2px); border-color: rgba(47, 143, 135, 0.38); }
.tool-card span { width: fit-content; margin-bottom: 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); padding: 6px 10px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.tool-card.soon { cursor: default; opacity: 0.68; }
.tool-card.soon:hover { transform: none; border-color: var(--line); }
.back-link { display: inline-flex; width: fit-content; margin-bottom: 18px; color: var(--accent-strong); font-weight: 800; }

.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; margin-bottom: 64px; }
.qr-panel, .preview-panel { padding: 28px; }
.form-grid { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--text-strong); font-weight: 800; }
input[type="text"], input[type="url"] { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, 0.92); color: var(--text-strong); padding: 0 14px; }
.color-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.color-input { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 253, 248, 0.92); padding: 8px 12px; }
.color-input input { width: 42px; height: 32px; border: 0; padding: 0; background: transparent; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 0; border-radius: 999px; padding: 0 22px; cursor: pointer; font-weight: 800; }
.primary { background: var(--accent); color: var(--surface); box-shadow: 0 14px 32px rgba(47, 143, 135, 0.22); }
.secondary { border: 1px solid var(--line); background: rgba(255, 253, 248, 0.72); color: var(--text-strong); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.qr-preview { display: grid; place-items: center; min-height: 330px; border: 1px dashed rgba(47, 143, 135, 0.36); border-radius: 24px; background: rgba(219, 238, 233, 0.38); padding: 24px; }
.qr-preview svg { width: min(100%, 280px); height: auto; }
.status-message { margin: 14px 0 0; font-weight: 700; }

@media (max-width: 920px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .builder-grid { grid-template-columns: 1fr; } }
@media (max-width: 850px) {
  .app-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding: 18px 0; }
  .hero { padding: 22px 0 22px; }
  h1 { letter-spacing: -0.06em; }
  .privacy-banner, .qr-panel, .preview-panel { border-radius: 22px; padding: 20px; }
  .tool-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 36px; }
  .tool-card { min-height: 140px; border-radius: 22px; padding: 18px; }
  .color-row { grid-template-columns: 1fr; }
  .button { width: 100%; }
}
