:root {
  color-scheme: light;
  --ink: #171431;
  --muted: #68657b;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #e8e5ef;
  --indigo: #4b36cc;
  --indigo-dark: #2d1d89;
  --cyan: #17c9db;
  --lime: #c8f24a;
  --lime-dark: #769900;
  --violet-soft: #eeeaff;
  --shadow: 0 24px 70px rgba(39, 28, 99, 0.13);
  --shadow-soft: 0 10px 35px rgba(39, 28, 99, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.is-hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(232, 229, 239, 0.86);
  background: rgba(251, 250, 247, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 74px;
  gap: 20px;
}

.back-link,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
}

.back-link {
  justify-self: start;
  color: #4f4a63;
  font-size: 0.92rem;
}

.back-link > span:first-child {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease;
}

.back-link:hover > span:first-child {
  transform: translateX(-3px);
  border-color: #bcb4da;
}

.brand {
  justify-self: center;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--indigo), var(--indigo-dark));
  color: var(--lime);
  box-shadow: 0 8px 20px rgba(75, 54, 204, 0.26);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.language-switcher {
  display: inline-flex;
  justify-self: end;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.lang-btn {
  min-width: 40px;
  min-height: 34px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #777287;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: #f1eff7;
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 73% 46%, rgba(23, 201, 219, 0.13), transparent 30%),
    radial-gradient(circle at 12% 30%, rgba(200, 242, 74, 0.14), transparent 26%),
    linear-gradient(145deg, #fbfaf7 0%, #f8f5ff 62%, #f3faff 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(75, 54, 204, 0.16) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
  content: "";
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 76%);
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-glow-one {
  top: 14%;
  left: -100px;
  width: 280px;
  height: 280px;
  border: 42px solid rgba(75, 54, 204, 0.07);
}

.hero-glow-two {
  right: -90px;
  bottom: -110px;
  width: 350px;
  height: 350px;
  border: 54px solid rgba(23, 201, 219, 0.07);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  align-items: center;
  min-height: 650px;
  gap: 28px;
  padding-block: 58px 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--indigo);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.package-copy h2,
.help-card h2 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(3rem, 6.4vw, 5.55rem);
}

.hero-lead {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.privacy-pill {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 10px;
  margin-top: 23px;
  padding: 9px 14px;
  border: 1px solid #dbd4f7;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #4d4672;
  font-size: 0.87rem;
  font-weight: 720;
}

.privacy-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2px solid #92b61e;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 242, 74, 0.23);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  padding: 13px 24px;
  border-radius: 15px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(23, 20, 49, 0.2);
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-link::after {
  margin-left: 12px;
  color: var(--lime);
  content: "↓";
}

.primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(23, 20, 49, 0.25);
}

.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 650px);
  max-height: 535px;
  object-fit: contain;
  filter: drop-shadow(0 30px 32px rgba(46, 27, 117, 0.17));
}

.generator-section {
  padding: 100px 0 110px;
  background: var(--paper);
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.package-copy h2,
.help-card h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 17px auto 0;
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-title-row > div:first-child {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.panel-title-row h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 900;
}

.text-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
}

.drop-zone {
  display: flex;
  min-height: 390px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 35px;
  border: 2px dashed #cfc8e6;
  border-radius: 24px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(238, 234, 255, 0.62), rgba(246, 253, 250, 0.82)),
    var(--white);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-dragging {
  border-color: var(--indigo);
  background: linear-gradient(135deg, #eeeaff, #effcfa);
  transform: translateY(-2px);
}

.drop-zone strong {
  margin-top: 20px;
  color: var(--ink);
  font-size: 1.1rem;
}

.drop-zone > span:not(.upload-icon) {
  margin-top: 3px;
  font-size: 0.92rem;
}

.drop-zone small {
  margin-top: 15px;
  color: #8d889c;
  font-size: 0.77rem;
}

.upload-icon {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid #d9d2f4;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(75, 54, 204, 0.14);
}

.upload-icon::before {
  width: 29px;
  height: 24px;
  border: 2px solid var(--indigo);
  border-radius: 5px;
  content: "";
}

.upload-icon::after {
  position: absolute;
  top: 24px;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--indigo);
  border-left: 2px solid var(--indigo);
  content: "";
  transform: rotate(45deg);
}

.upload-icon span {
  position: absolute;
  top: 25px;
  width: 2px;
  height: 18px;
  background: var(--indigo);
}

.source-editor {
  min-width: 0;
}

.editor-stage {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background-color: #f0eef4;
  background-image:
    linear-gradient(45deg, #ddd9e4 25%, transparent 25%),
    linear-gradient(-45deg, #ddd9e4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ddd9e4 75%),
    linear-gradient(-45deg, transparent 75%, #ddd9e4 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.editor-stage canvas {
  width: 100%;
  height: 100%;
}

.safe-area-guide {
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(255, 255, 255, 0.9);
  border-radius: 20%;
  box-shadow: 0 0 0 999px rgba(23, 20, 49, 0.08);
  pointer-events: none;
}

.file-meta {
  display: flex;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  padding: 11px 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.file-name {
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.controls {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

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

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
}

.control-label,
.control-label-row label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.control-label-row output {
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 850;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  accent-color: var(--indigo);
  background: #ded9ec;
  cursor: pointer;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 9px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f5fa;
}

.segment-btn {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 780;
}

.segment-btn.is-active {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(32, 24, 73, 0.09);
  color: var(--indigo);
}

.color-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.color-row input[type="color"] {
  width: 52px;
  height: 45px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.color-row input[type="text"] {
  min-width: 0;
  height: 45px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.color-row input[type="text"]:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(75, 54, 204, 0.1);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.check-row input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  accent-color: var(--indigo);
}

.check-row span {
  display: flex;
  flex-direction: column;
}

.check-row strong {
  font-size: 0.88rem;
}

.check-row small {
  color: var(--muted);
  font-size: 0.76rem;
}

.ready-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f0eef4;
  color: #787287;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ready-badge.is-ready {
  background: #eff8d1;
  color: #536c00;
}

.preview-board {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, #201754, #352782 60%, #244d78);
}

.browser-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(8, 5, 31, 0.28);
}

.browser-bar {
  display: flex;
  align-items: center;
  height: 41px;
  gap: 5px;
  padding: 0 10px;
  border-bottom: 1px solid #e8e6ee;
  background: #f4f2f7;
}

.browser-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7c3d1;
}

.fake-tab {
  display: flex;
  min-width: 0;
  height: 29px;
  align-items: center;
  gap: 7px;
  margin-left: 7px;
  padding: 0 12px;
  border-radius: 8px 8px 0 0;
  background: var(--white);
  color: #4f4a5c;
  font-size: 0.67rem;
}

.fake-tab canvas {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.fake-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-body {
  display: grid;
  min-height: 160px;
  place-items: center;
  background: linear-gradient(150deg, #ffffff, #f7f5fb);
}

.preview-placeholder {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  color: #8c8799;
  font-size: 0.76rem;
}

.placeholder-icon {
  width: 42px;
  height: 42px;
  border: 2px dashed #c9c5d3;
  border-radius: 11px;
}

.icon-previews {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(12px, 5vw, 34px);
  margin-top: 20px;
}

.icon-sample {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 800;
}

.sample-canvas {
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22%;
  background-color: rgba(255, 255, 255, 0.09);
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.09) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.09) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.09) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.09) 75%);
  background-position: 0 0, 0 5px, 5px -5px, -5px 0;
  background-size: 10px 10px;
  box-shadow: 0 9px 18px rgba(6, 3, 24, 0.2);
}

.sample-canvas canvas {
  width: 100%;
  height: 100%;
}

.sample-32 {
  width: 42px;
  height: 42px;
}

.sample-64 {
  width: 63px;
  height: 63px;
}

.sample-96 {
  width: 84px;
  height: 84px;
}

.output-list {
  display: grid;
  gap: 7px;
  margin: 19px 0;
}

.output-list > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border: 1px solid #eeebf2;
  border-radius: 13px;
  background: #fcfbfd;
}

.output-list > div > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.output-list strong {
  overflow: hidden;
  font-size: 0.77rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.output-list small {
  color: var(--muted);
  font-size: 0.65rem;
}

.file-icon {
  display: grid;
  width: 39px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--indigo);
  font-size: 0.58rem;
  font-weight: 900;
}

.check-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f0f0f2;
  color: #aaa6b2;
  font-size: 0.72rem;
  font-weight: 900;
}

.output-panel.is-ready .check-mark {
  background: #eff8d1;
  color: #607b00;
}

.download-button,
.secondary-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.download-button {
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 13px;
  padding: 12px 17px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--indigo), #322094);
  color: var(--white);
  box-shadow: 0 15px 31px rgba(75, 54, 204, 0.24);
  text-align: left;
}

.download-button:hover:not(:disabled),
.secondary-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.download-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.43;
  box-shadow: none;
}

.download-button-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--lime);
  font-size: 1.25rem;
  font-weight: 900;
}

.download-button > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.download-button strong {
  font-size: 0.94rem;
}

.download-button small {
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.68rem;
}

.secondary-button {
  min-height: 45px;
  margin-top: 10px;
  border: 1px solid #dcd7ea;
  border-radius: 13px;
  background: var(--white);
  color: var(--indigo);
  font-size: 0.82rem;
  font-weight: 850;
}

.status-message {
  min-height: 23px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

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

.package-section {
  padding: 110px 0;
  overflow: hidden;
  background: #17123b;
  color: var(--white);
}

.package-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 7vw, 95px);
}

.package-visual {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
}

.package-visual::before {
  position: absolute;
  z-index: 0;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 201, 219, 0.22), transparent 68%);
  content: "";
  filter: blur(12px);
}

.package-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  max-height: 470px;
  object-fit: contain;
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.3));
}

.package-copy {
  min-width: 0;
}

.package-copy .eyebrow {
  color: var(--lime);
}

.package-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin: 22px 0 0;
  color: #bcb8d0;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: #e4e1ee;
  font-weight: 650;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #2c3700;
  content: "✓";
  font-size: 0.7rem;
  font-weight: 950;
}

.features-section {
  padding: 105px 0;
  background: #f6f3fb;
}

.section-heading.compact {
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-card::after {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(75, 54, 204, 0.055);
  content: "";
}

.feature-number {
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.feature-card h3 {
  margin: 19px 0 8px;
  font-size: 1.19rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.help-section {
  padding: 72px 0;
  background: var(--paper);
}

.help-card {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 45px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid #dcd7ea;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.help-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.help-card > p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #716d7f;
  font-size: 0.78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--indigo);
  font-weight: 850;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.noscript {
  position: fixed;
  z-index: 500;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border-radius: 12px;
  background: #a62f46;
  color: #fff;
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(23, 201, 219, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 0.85fr;
  }

  .hero h1 {
    font-size: clamp(3rem, 8vw, 4.4rem);
  }

  .workspace-grid {
    grid-template-columns: 1fr;
    max-width: 690px;
    margin-inline: auto;
  }

  .package-grid {
    grid-template-columns: 0.85fr 1fr;
    gap: 38px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-inline: auto;
  }

  .feature-card {
    padding: 26px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    gap: 10px;
  }

  .back-link > span:last-child,
  .brand > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .brand {
    justify-self: start;
  }

  .brand-mark,
  .back-link > span:first-child {
    width: 34px;
    height: 34px;
  }

  .language-switcher {
    gap: 2px;
    padding: 3px;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 32px;
    padding-inline: 6px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding-block: 58px 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.4rem);
  }

  .hero-lead {
    margin-inline: auto;
  }

  .privacy-pill,
  .primary-link {
    margin-inline: auto;
  }

  .hero-visual {
    order: -1;
    height: min(58vw, 300px);
  }

  .hero-visual img {
    width: min(100%, 380px);
    height: 100%;
    max-height: none;
  }

  .generator-section,
  .features-section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .panel {
    padding: 19px;
    border-radius: 24px;
  }

  .panel-title-row {
    align-items: flex-start;
  }

  .panel-title-row h3 {
    font-size: 1.08rem;
  }

  .drop-zone {
    min-height: 300px;
    padding: 25px 16px;
  }

  .file-meta {
    flex-direction: column;
    gap: 2px;
  }

  .preview-board {
    padding: 13px;
  }

  .browser-body {
    min-height: 125px;
  }

  .package-section {
    padding: 78px 0;
  }

  .package-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .package-visual {
    height: min(75vw, 360px);
  }

  .package-visual img {
    width: min(100%, 430px);
    height: 100%;
  }

  .package-copy {
    text-align: center;
  }

  .package-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }

  .check-list {
    max-width: 500px;
    margin-inline: auto;
    text-align: left;
  }

  .help-section {
    padding: 55px 0;
  }

  .help-card {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .header-inner {
    gap: 6px;
  }

  .lang-btn {
    min-width: 33px;
    font-size: 0.72rem;
  }

  .hero-grid {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .privacy-pill {
    align-items: flex-start;
    border-radius: 16px;
    text-align: left;
  }

  .panel {
    padding: 15px;
  }

  .step-number {
    width: 34px;
    height: 34px;
  }

  .ready-badge {
    max-width: 108px;
    text-align: center;
    white-space: normal;
  }

  .icon-previews {
    gap: 13px;
  }

  .sample-32 {
    width: 37px;
    height: 37px;
  }

  .sample-64 {
    width: 54px;
    height: 54px;
  }

  .sample-96 {
    width: 70px;
    height: 70px;
  }

  .output-list > div {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding-inline: 7px;
  }

  .download-button {
    padding-inline: 12px;
  }

  .download-button small {
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero,
  .package-section,
  .features-section,
  .help-section,
  .site-footer {
    display: none !important;
  }

  .generator-section {
    padding: 0;
  }

  .panel {
    box-shadow: none;
  }
}
