:root {
  --ink: #080808;
  --muted: #575861;
  --line: #ececef;
  --soft: #f4f4f5;
  --panel: #ffffff;
  --green: #087a48;
  --violet: #6427ff;
  --amber: #e6a21a;
  --rust: #b83c25;
  --blue: #1768ac;
  --sky: #dfe3e7;
  --shadow: 0 24px 70px rgba(12, 12, 18, 0.08);
  --heavy-shadow: 0 32px 90px rgba(8, 8, 8, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf0f2 0, var(--sky) 520px, #eef1f4 100%);
  letter-spacing: 0;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 50;
  transform: translateY(-140%);
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

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

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(8, 122, 72, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f6f7f8 48%, #e9edf1 100%);
  box-shadow: var(--shadow);
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(8, 8, 8, 0.06);
}

.tool-nav {
  flex-wrap: wrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
}

.nav-links a {
  color: #333;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  background: var(--soft);
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: end;
  min-height: 560px;
  padding: 74px 56px 46px;
}

.home-hero-grid {
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow,
.tool-label {
  margin: 0 0 14px;
  color: #2d2d31;
  font-size: 13px;
  font-weight: 800;
}

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

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.guide-copy p,
.faq-list p,
.tool-card p:not(.tool-label),
.process-grid p {
  color: #484951;
  line-height: 1.62;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(8, 8, 8, 0.08);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(8, 8, 8, 0.06);
  color: #373840;
  font-size: 13px;
  font-weight: 800;
}

.hero-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(8, 8, 8, 0.18);
}

.button.secondary {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.quiet {
  background: #f2f3f5;
  color: #222329;
}

.hero-image {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--heavy-shadow);
  transform: rotate(1.3deg);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-image figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(8, 8, 8, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.38)),
    linear-gradient(90deg, var(--green) 0 38%, var(--amber) 38% 68%, var(--violet) 68%);
  background-blend-mode: screen, normal;
}

.headline-section {
  width: min(850px, calc(100% - 32px));
  margin: 86px auto 54px;
  text-align: center;
}

.headline-section h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 78px;
}

.upgraded-grid {
  align-items: stretch;
}

.tool-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 260px;
  border: 1px solid rgba(8, 8, 8, 0.05);
  border-radius: 20px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), #fff),
    #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 5px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--violet));
  opacity: 0.85;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 122, 72, 0.22);
  box-shadow: var(--heavy-shadow);
}

.featured-tool {
  grid-column: span 2;
  grid-template-columns: 90px 1fr;
  align-items: start;
  min-height: 300px;
  background:
    radial-gradient(circle at 95% 18%, rgba(100, 39, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(8, 122, 72, 0.16), transparent 54%),
    #fff;
}

.spotlight-tool {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 122, 72, 0.92), rgba(8, 8, 8, 0.96)),
    #080808;
}

.spotlight-tool .tool-label,
.spotlight-tool p:not(.tool-label) {
  color: rgba(255, 255, 255, 0.78);
}

.spotlight-tool .status-pill {
  color: #080808;
  background: #fff;
}

.featured-tool .status-pill {
  grid-column: 2;
  width: fit-content;
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(8, 8, 8, 0.16);
}

.tool-card:nth-child(3n) .tool-icon {
  background: var(--green);
}

.tool-card:nth-child(4n) .tool-icon {
  background: #b83c25;
}

.tool-card:nth-child(5n) .tool-icon {
  background: var(--violet);
}

.tool-card h2,
.guide-panel h2,
.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.tool-card h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.status-pill {
  display: inline-flex;
  align-self: end;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 11px;
  color: #111;
  background: #f2f3f5;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease;
}

a.status-pill:hover,
.button:hover {
  transform: translateY(-1px);
}

.tool-hero {
  padding-bottom: 54px;
  margin-bottom: 10px;
}

.tool-hero .hero-grid {
  grid-template-columns: 1fr;
  min-height: auto;
  padding-top: 56px;
}

.tool-hero .hero-copy {
  max-width: 780px;
}

.tool-hero .hero-copy h1 {
  font-size: clamp(42px, 6vw, 76px);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 340px;
  gap: 28px;
  align-items: start;
  margin-top: 42px;
  margin-bottom: 78px;
}

.wide-tool-layout {
  grid-template-columns: minmax(0, 1.55fr) 360px;
}

.tool-panel,
.content-panel,
.result-panel {
  border: 1px solid rgba(8, 8, 8, 0.05);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tool-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.premium-tool-panel {
  box-shadow: var(--heavy-shadow);
}

.content-panel {
  display: grid;
  gap: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, #fff, #f9fafb);
}

.polished-side-panel {
  position: sticky;
  top: 20px;
}

.content-panel h2,
.result-panel h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.content-panel p,
.content-panel li,
.metric span,
.help-text {
  color: #484951;
  line-height: 1.65;
}

.content-panel ul,
.content-panel ol {
  margin: 0;
  padding-left: 22px;
}

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

.form-row,
.full-row {
  display: grid;
  gap: 8px;
}

.full-row {
  grid-column: 1 / -1;
}

label,
.label {
  color: #222329;
  font-size: 13px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f8f8f9;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(8, 122, 72, 0.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 122, 72, 0.08);
}

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

.large-textarea {
  min-height: 340px;
}

.output-textarea {
  min-height: 260px;
  background: #fff;
}

fieldset.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #f7f8f9;
}

.option-grid legend {
  padding: 0 8px;
  color: #222329;
  font-size: 13px;
  font-weight: 900;
}

.option-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  color: #373840;
  font-size: 13px;
}

.option-grid input {
  width: auto;
}

input[type="file"] {
  background: #fff;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button.button {
  border: 0;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 104px;
  border-radius: 16px;
  padding: 16px;
  background:
    linear-gradient(180deg, #ffffff, #f4f4f5);
  border: 1px solid rgba(8, 8, 8, 0.05);
}

.compact-metrics .metric {
  min-height: 92px;
}

.metric strong {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1;
}

.preview-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  border: 1px dashed #cfd3d8;
  border-radius: 18px;
  background: #f8f8f9;
}

.preview-box img,
.preview-box canvas {
  max-width: 100%;
  height: auto;
}

.crop-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.result-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.result-list {
  display: grid;
  gap: 10px;
}

.result-item {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 14px;
  background: #f6f6f7;
  overflow-wrap: anywhere;
}

.result-item strong {
  font-size: 14px;
}

.notice {
  border-left: 4px solid var(--green);
  border-radius: 14px;
  padding: 14px;
  background: #eff8f3;
  color: #224233;
  line-height: 1.55;
  font-weight: 700;
}

.error {
  border-left-color: #b83c25;
  background: #fff3ef;
  color: #5c2014;
}

.qr-output {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 18px;
  background: #f8f8f9;
}

.qr-output img,
.qr-output canvas {
  width: min(240px, 100%) !important;
  height: auto !important;
}

.mini-tools {
  display: grid;
  gap: 10px;
}

.mini-tools a {
  border-radius: 14px;
  padding: 12px 14px;
  background: #f6f6f7;
  color: #24252b;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.18s ease, transform 0.18s ease;
}

.mini-tools a:hover {
  background: #ececef;
  transform: translateX(2px);
}

.guide-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 74px;
  border-radius: 24px;
  padding: 44px;
  background: #f6f6f7;
  box-shadow: var(--shadow);
}

.guide-copy p:last-child {
  margin-bottom: 0;
}

.process-section,
.faq-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 74px;
}

.section-heading {
  position: sticky;
  top: 20px;
}

.process-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.process-grid article,
.faq-list article {
  display: grid;
  gap: 14px;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(8, 8, 8, 0.05);
}

.process-grid article {
  grid-template-columns: 58px 0.5fr 1fr;
  align-items: center;
}

.process-grid span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.process-grid h3,
.faq-list h3 {
  margin-bottom: 0;
  font-size: 22px;
}

.process-grid p,
.faq-list p {
  margin-bottom: 0;
}

.site-footer {
  padding: 56px 0 96px;
  color: #fff;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.footer-brand .brand {
  width: fit-content;
  color: var(--ink);
}

.footer-brand p {
  max-width: 420px;
  margin: 20px 0 0;
  color: #d6d6dc;
  line-height: 1.65;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-links strong,
.footer-contact strong {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: #d6d6dc;
  font-size: 14px;
  line-height: 1.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  color: #bdbdc6;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero-grid,
  .guide-panel,
  .process-section,
  .faq-section,
  .footer-grid,
  .tool-layout,
  .wide-tool-layout,
  fieldset.option-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 44px 24px 34px;
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-tool {
    grid-column: span 2;
  }

  .polished-side-panel {
    position: static;
  }

  .section-heading {
    position: static;
  }

  .process-grid article {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 18px, 1120px);
  }

  .top-nav,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h1 {
    font-size: 48px;
  }

  .tool-grid,
  .featured-tool,
  .form-grid,
  .metric-grid,
  fieldset.option-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    transform: none;
  }

  .featured-tool,
  .featured-tool .status-pill {
    grid-column: auto;
  }
}
