:root {
  --bg: #f2efe8;
  --panel: rgba(255, 250, 242, 0.82);
  --ink: #16120d;
  --muted: #6e6255;
  --line: rgba(22, 18, 13, 0.12);
  --accent: #ff5b2e;
  --accent-deep: #d84417;
  --blue: #1677ff;
  --shadow: 0 20px 60px rgba(61, 41, 21, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SUIT", sans-serif;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(circle at top left, rgba(255, 145, 77, 0.35), transparent 30%),
    radial-gradient(circle at bottom right, rgba(22, 119, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #efe8dc 0%, #f7f3ea 42%, #ece5d8 100%);
}

.page-layer {
  position: relative;
  overflow: hidden;
}

.floating-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.62;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
  will-change: transform, opacity, filter;
  animation: orbFloat linear infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: #fbb18a;
  top: -100px;
  left: -80px;
  animation-duration: 14s;
  animation-name: orbFloat, orbDriftA, orbPulse;
  animation-duration: 14s, 19s, 8s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: #ffd8bd;
  top: 200px;
  right: -60px;
  animation-name: orbFloat, orbDriftB, orbPulse;
  animation-duration: 10s, 15s, 7s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -4s, -4s, -2s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: #e88b67;
  bottom: -60px;
  left: 35%;
  animation-name: orbFloat, orbDriftC, orbPulse;
  animation-duration: 17s, 22s, 9s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -8s, -8s, -5s;
}

.orb-4 {
  width: 180px;
  height: 180px;
  background: #ffc4a3;
  top: 100px;
  left: 50%;
  animation-name: orbFloat, orbDriftD, orbPulse;
  animation-duration: 12s, 16s, 6s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -2s, -2s, -1s;
}

.orb-5 {
  width: 260px;
  height: 260px;
  background: #f8bea0;
  top: 1120px;
  left: 12%;
  animation-name: orbFloat, orbDriftB, orbPulse;
  animation-duration: 13s, 18s, 7.5s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -6s, -3s, -2s;
}

.orb-6 {
  width: 220px;
  height: 220px;
  background: #ffd0b3;
  top: 1720px;
  right: 14%;
  animation-name: orbFloat, orbDriftC, orbPulse;
  animation-duration: 11s, 17s, 6.5s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -5s, -9s, -3s;
}

.orb-7 {
  width: 320px;
  height: 320px;
  background: #f0a17d;
  top: 2280px;
  left: 44%;
  animation-name: orbFloat, orbDriftD, orbPulse;
  animation-duration: 15s, 20s, 8.5s;
  animation-timing-function: linear, ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite, infinite;
  animation-delay: -7s, -5s, -4s;
}

input,
textarea,
video {
  -webkit-user-select: text;
  user-select: text;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.43em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
}

.brand {
  margin: 0;
  font-family: "Black Han Sans", sans-serif;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 0.95;
}

.summary {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(22, 18, 13, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.82);
}

.section-heading {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.3;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.stats-strip {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  padding: 8px 0;
}

.stats-header {
  display: grid;
  gap: 8px;
}

.stats-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

.stats-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  justify-items: center;
}

.stats-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.stats-label,
.stats-note {
  margin: 0;
}

.stats-label {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.stats-value {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  font-weight: 800;
  color: var(--ink);
}

.stats-unit {
  margin-left: 8px;
  font-size: 0.36em;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}

.stats-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.seo-section {
  display: block;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 247, 237, 0.74)),
    rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
}

.seo-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
}

.seo-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.seo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.seo-body {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.seo-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.seo-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.seo-point {
  display: grid;
  gap: 5px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.seo-point strong {
  font-size: 14px;
  line-height: 1.4;
}

.seo-point span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.seo-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 32px rgba(35, 24, 12, 0.08);
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  will-change: transform;
}

.seo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.45), transparent 32%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.seo-card.is-tilting {
  box-shadow: 0 24px 54px rgba(35, 24, 12, 0.18);
}

.seo-card.is-tilting::after {
  opacity: 1;
}

.seo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transform: translateZ(20px);
}

.seo-card figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  transform: translateZ(28px);
}

.faq-section {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.faq-question,
.faq-answer {
  margin: 0;
}

.faq-question {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.faq-answer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.footer-inner {
  display: grid;
  gap: 8px;
  padding: 24px 8px 0;
  color: var(--muted);
}

.footer-brand,
.footer-copy {
  margin: 0;
}

.footer-brand {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.footer-copy {
  font-size: 14px;
}

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

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: var(--ink);
}

.policy-panel {
  display: grid;
  gap: 22px;
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.policy-section p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.policy-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.policy-link,
.policy-home-link {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.policy-home-link:hover,
.policy-link:hover {
  text-decoration: underline;
}

.policy-actions {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.tabs {
  position: relative;
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(22, 18, 13, 0.06);
}

.tab {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.tab.is-active {
  background: var(--ink);
  color: #fff6ea;
}

.tab-panel {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 14px;
  align-items: stretch;
}

.link-input {
  min-height: 132px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.link-input:focus {
  border-color: rgba(255, 91, 46, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.12);
}

.submit-button {
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(216, 68, 23, 0.28);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status-message {
  min-height: 24px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 15px;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.selection-toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.selection-summary {
  margin: 0;
  align-self: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

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

.selection-button {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.selection-button.is-secondary {
  background: rgba(22, 18, 13, 0.08);
  color: var(--ink);
}

.instagram-mobile-download {
  display: none;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(35, 24, 12, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.card.is-selectable {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.card.is-selectable:hover {
  transform: translateY(-2px);
}

.card.is-included {
  border-color: rgba(255, 91, 46, 0.65);
  box-shadow: 0 18px 38px rgba(216, 68, 23, 0.18);
}

.card.is-excluded {
  border-color: rgba(22, 18, 13, 0.14);
  opacity: 0.62;
}

.card.is-excluded .media-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 242, 0.52);
}

.card.is-selectable:focus-visible {
  outline: 4px solid rgba(255, 91, 46, 0.2);
  outline-offset: 3px;
}

.media-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dcd4c8;
  display: grid;
  place-items: center;
}

.media-wrap.is-video {
  aspect-ratio: auto;
  min-height: 240px;
  max-height: 420px;
  padding: 12px;
  background: #111;
}

.media-wrap img,
.media-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-wrap video {
  width: auto;
  max-width: 100%;
  max-height: 396px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}

.card-body {
  padding: 14px;
}

.card-selector {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.card-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-selection-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 91, 46, 0.14);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.card.is-excluded .card-selection-badge {
  background: rgba(22, 18, 13, 0.08);
  color: var(--muted);
}

.card-selection-text {
  margin-left: 5px;
  font-size: 14px;
  font-weight: 800;
}

.card.is-excluded .card-selection-text {
  color: var(--muted);
}

.file-name {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
  word-break: break-all;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.coming-soon {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed rgba(22, 18, 13, 0.18);
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}

.coming-soon strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 28px;
}

.loading-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 14, 10, 0.58);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.loading-modal[hidden] {
  display: none;
}

.alert-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 14, 10, 0.58);
  backdrop-filter: blur(8px);
  z-index: 1100;
}

.alert-modal[hidden] {
  display: none;
}

.alert-dialog {
  display: grid;
  gap: 18px;
  justify-items: center;
  min-width: min(360px, calc(100vw - 32px));
  padding: 30px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(20, 17, 13, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.alert-title {
  color: #fff6ea;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
}

.alert-button {
  border: 0;
  border-radius: 16px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.loading-dialog {
  display: grid;
  justify-items: center;
  gap: 16px;
  min-width: min(320px, calc(100vw - 32px));
  padding: 30px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(20, 17, 13, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.loading-title {
  color: #fff6ea;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: pre-line;
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffb08b;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(90px, -72px, 0) scale(1.2);
  }
  50% {
    transform: translate3d(-80px, 96px, 0) scale(0.82);
  }
  75% {
    transform: translate3d(72px, 54px, 0) scale(1.16);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes orbDriftA {
  0% {
    margin-top: 0;
    margin-left: 0;
  }
  50% {
    margin-top: 140px;
    margin-left: 120px;
  }
  100% {
    margin-top: 0;
    margin-left: 0;
  }
}

@keyframes orbDriftB {
  0% {
    margin-top: 0;
    margin-right: 0;
  }
  50% {
    margin-top: -110px;
    margin-right: 130px;
  }
  100% {
    margin-top: 0;
    margin-right: 0;
  }
}

@keyframes orbDriftC {
  0% {
    margin-bottom: 0;
    margin-left: 0;
  }
  50% {
    margin-bottom: 130px;
    margin-left: -110px;
  }
  100% {
    margin-bottom: 0;
    margin-left: 0;
  }
}

@keyframes orbDriftD {
  0% {
    margin-top: 0;
    margin-left: 0;
  }
  50% {
    margin-top: 150px;
    margin-left: 100px;
  }
  100% {
    margin-top: 0;
    margin-left: 0;
  }
}

@keyframes orbPulse {
  0% {
    opacity: 0.52;
    filter: blur(36px);
  }
  50% {
    opacity: 0.74;
    filter: blur(52px);
  }
  100% {
    opacity: 0.52;
    filter: blur(36px);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 20px, 1120px);
    padding-top: 24px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    border-radius: 24px;
    gap: 6px;
  }

  .tab {
    width: 100%;
    padding: 12px 14px;
    text-align: center;
  }

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

  .seo-section {
    padding: 20px;
    border-radius: 24px;
  }

  .stats-strip {
    padding: 4px 0;
  }

  .faq-section {
    padding: 20px;
    border-radius: 24px;
  }

  .seo-gallery {
    grid-template-columns: 1fr;
  }

  .seo-points {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    width: min(100% - 20px, 1120px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .submit-button {
    min-height: 56px;
  }

  .loading-dialog,
  .alert-dialog {
    min-width: 0;
    width: min(100% - 40px, 320px);
  }

  .loading-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .selection-toolbar {
    padding: 14px;
  }

  .selection-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .selection-button {
    width: 100%;
    min-height: 48px;
  }

  .selection-actions .selection-button:last-child {
    grid-column: 1 / -1;
  }

  .selection-download-button {
    display: none;
  }

  .instagram-mobile-download {
    display: inline-flex;
  }

  .file-name {
    display: none;
  }
}
