:root {
  --bg: #050a14;
  --bg-deep: #030712;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.13);
  --text: #ffffff;
  --muted: #aab4c0;
  --blue: #0088ff;
  --green: #1db954;
  --danger: #ff6170;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 136, 255, 0.18), transparent 36rem),
    radial-gradient(circle at 85% 10%, rgba(29, 185, 84, 0.13), transparent 32rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

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

img,
video {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  background: rgba(5, 10, 20, 0.78);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #52b8ff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 136, 255, 0.28);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  width: 46px;
  height: 46px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
}

.hero {
  padding: 76px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(0, 136, 255, 0.32);
  color: #cde9ff;
  background: rgba(0, 136, 255, 0.11);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  color: var(--muted);
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  max-width: 740px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 10%, #bfe4ff 44%, #7dffb2);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, border 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.card:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #51bbff);
  border-color: transparent;
  box-shadow: 0 16px 38px rgba(0, 136, 255, 0.32);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #63ec98);
  color: #021109;
  border-color: transparent;
}

.btn-ghost {
  background: transparent;
}

.hero-card,
.glass,
.card,
.tool-shell,
.ad-slot,
.output-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  border-radius: 32px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.32), transparent 40%, rgba(29, 185, 84, 0.22));
  opacity: 0.55;
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.mini-browser {
  background: rgba(3, 7, 18, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.browser-top {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6170;
}

.browser-top span:nth-child(2) {
  background: #ffd36d;
}

.browser-top span:nth-child(3) {
  background: var(--green);
}

.prompt-preview {
  padding: 22px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 136, 255, 0.13);
  color: #d9efff;
  border: 1px solid rgba(0, 136, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
}

.sample-output {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe7f3;
  font-size: 0.95rem;
}

.section {
  padding: 70px 0;
}

.section-deep {
  background:
    linear-gradient(180deg, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0.72)),
    var(--bg-deep);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  padding: 24px;
  border-radius: var(--radius);
  transition: transform 180ms ease, border 180ms ease, background 180ms ease;
}

.card:hover {
  border-color: rgba(0, 136, 255, 0.36);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
}

.icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(0, 136, 255, 0.24), rgba(29, 185, 84, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 1.35rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 26px;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  color: #dce7f2;
  padding-left: 28px;
  position: relative;
}

.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.045);
}

.ad-sidebar {
  min-height: 320px;
  position: sticky;
  top: 96px;
}

.page-hero {
  padding: 64px 0 28px;
}

.page-hero .lead {
  max-width: 840px;
}

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

.tool-shell {
  border-radius: 30px;
  padding: 24px;
}

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

.field,
.dropzone {
  display: grid;
  gap: 8px;
}

.field.full,
.dropzone.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
  color: #e9f3ff;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(3, 7, 18, 0.72);
  color: #fff;
  padding: 13px 14px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 136, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(0, 136, 255, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.dropzone {
  border: 1px dashed rgba(0, 136, 255, 0.5);
  background: rgba(0, 136, 255, 0.07);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background 180ms ease, border 180ms ease, transform 180ms ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  background: rgba(0, 136, 255, 0.13);
  border-color: var(--blue);
}

.dropzone input {
  display: none;
}

.preview {
  display: none;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.preview.is-visible {
  display: block;
}

.preview img,
.preview video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

details {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.045);
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.status {
  min-height: 24px;
  color: var(--muted);
  font-weight: 700;
}

.status.error {
  color: var(--danger);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.output-card {
  display: none;
  grid-column: 1 / -1;
  border-radius: 22px;
  padding: 18px;
  margin-top: 4px;
}

.output-card.is-visible {
  display: block;
}

.output-text {
  white-space: pre-wrap;
  background: rgba(3, 7, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  color: #eaf4ff;
}

.generated-image {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  margin: 12px 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.social-form {
  position: relative;
}

.social-form::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 29px;
  background:
    radial-gradient(circle at 0% 10%, rgba(37, 244, 238, 0.14), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(254, 44, 85, 0.14), transparent 30%);
  pointer-events: none;
}

.social-form > * {
  position: relative;
}

.brand-mark-tiktok {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    #050a14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    -8px 0 28px rgba(37, 244, 238, 0.18),
    8px 0 28px rgba(254, 44, 85, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-mark-tiktok::before,
.brand-mark-tiktok::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.brand-mark-tiktok::before {
  width: 15px;
  height: 31px;
  border-right: 5px solid #fff;
  border-top: 5px solid #fff;
  border-radius: 2px 8px 2px 2px;
  transform: translate(4px, -5px);
  filter:
    drop-shadow(-4px 0 0 #25f4ee)
    drop-shadow(4px 0 0 #fe2c55);
}

.brand-mark-tiktok::after {
  width: 19px;
  height: 19px;
  border: 5px solid #fff;
  border-radius: 50%;
  transform: translate(-5px, 12px);
  filter:
    drop-shadow(-4px 0 0 #25f4ee)
    drop-shadow(4px 0 0 #fe2c55);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.metric-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(3, 7, 18, 0.55);
}

.metric-card strong {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.05em;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-label {
  display: block;
  color: #d9efff !important;
  font-weight: 800;
  margin-bottom: 4px;
}

.social-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(37, 244, 238, 0.08);
  border: 1px solid rgba(37, 244, 238, 0.16);
  color: #dffcff;
}

.tiktok-report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  margin: 18px 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 244, 238, 0.13), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(254, 44, 85, 0.13), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.tiktok-report-hero p {
  margin: 4px 0 0;
}

.score-ring {
  --score: 252deg;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, #050a14 0 57%, transparent 58%),
    conic-gradient(#25f4ee 0 var(--score), rgba(255, 255, 255, 0.12) var(--score) 360deg);
  box-shadow: 0 0 34px rgba(37, 244, 238, 0.14);
}

.score-ring strong {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.analysis-section {
  margin-top: 18px;
}

.analysis-section h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

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

.analysis-card {
  min-height: 96px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(3, 7, 18, 0.55);
  position: relative;
  overflow: hidden;
}

.analysis-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: linear-gradient(135deg, #25f4ee, transparent 50%, #fe2c55);
}

.analysis-card span,
.analysis-card p {
  position: relative;
}

.analysis-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #dffcff;
  font-size: 0.78rem;
  font-weight: 900;
}

.analysis-card p {
  margin: 0;
  color: #edf7ff;
  font-size: 0.95rem;
}

.analysis-card.action::before {
  background: linear-gradient(135deg, var(--green), transparent 50%, var(--blue));
}

.analysis-card.idea::before {
  background: linear-gradient(135deg, var(--blue), transparent 50%, #8b5cf6);
}

.analysis-card.note::before {
  background: linear-gradient(135deg, #fbbf24, transparent 55%, var(--danger));
}

.raw-report {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.raw-report .output-text {
  margin-top: 14px;
}

.unfreeze-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.unfreeze-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 244, 238, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.04);
}

.unfreeze-head h3 {
  margin-bottom: 4px;
}

.unfreeze-head p {
  margin: 0;
}

.number-list {
  counter-reset: item;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.number-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(3, 7, 18, 0.55);
}

.number-list li::before {
  content: counter(item, decimal-leading-zero);
  color: #25f4ee;
  font-weight: 900;
  font-size: 0.86rem;
}

.number-list span {
  color: var(--muted);
}

.number-list strong {
  color: #fff;
  text-align: right;
}

.hashtag-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(37, 244, 238, 0.16);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 244, 238, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.035);
}

.hashtag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hashtag-head h3 {
  margin: 0;
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hashtag-list span {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  color: #dffcff;
  background: rgba(37, 244, 238, 0.1);
  border: 1px solid rgba(37, 244, 238, 0.2);
  font-weight: 800;
  font-size: 0.88rem;
}

.copy-message {
  color: var(--green);
  font-weight: 800;
  min-height: 22px;
}

.content-prose {
  max-width: 920px;
}

.content-prose h2,
.content-prose h3 {
  margin-top: 34px;
}

.content-prose p,
.content-prose li {
  color: var(--muted);
}

.content-prose a {
  color: #91d1ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.faq-list details {
  padding: 18px 20px;
}

.faq-list p {
  margin-top: 12px;
}

.footer {
  padding: 52px 0 34px;
  background: #02050c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(130px, 1fr));
  gap: 28px;
}

.footer a {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(29, 185, 84, 0.12);
  color: #a8ffc9;
  border: 1px solid rgba(29, 185, 84, 0.24);
  font-size: 0.8rem;
  font-weight: 800;
}

.badge.soon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-form {
  max-width: 720px;
}

.tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.tool-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 0 16px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(3, 7, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.tool-search span {
  width: 18px;
  height: 18px;
  border: 2px solid #d9efff;
  border-radius: 50%;
  position: relative;
  opacity: 0.82;
}

.tool-search span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #d9efff;
  transform: rotate(45deg);
}

.tool-search input {
  border: 0;
  padding: 0;
  min-height: auto;
  background: transparent;
  box-shadow: none;
}

.tool-search input:focus {
  border: 0;
  box-shadow: none;
}

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

.tool-card {
  min-height: 246px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.tool-card.featured {
  border-color: rgba(37, 244, 238, 0.28);
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 244, 238, 0.13), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(254, 44, 85, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
}

.tool-card h2,
.tool-card h3 {
  margin: 0;
}

.tool-card p {
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.tool-card .badge {
  margin-top: auto;
  align-self: flex-start;
}

.tool-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #dffcff;
  background: rgba(0, 136, 255, 0.12);
  border: 1px solid rgba(0, 136, 255, 0.22);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tool-card.is-hidden {
  display: none;
}

.tool-card.is-newly-visible {
  animation: slide-up 260ms ease both;
}

.tools-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.empty-state {
  padding: 18px;
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Premium UI polish layer */
body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.56), transparent 78%);
}

.site-header {
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(0, 136, 255, 0.18);
  background: rgba(3, 7, 18, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.brand img {
  filter: drop-shadow(0 0 18px rgba(0, 136, 255, 0.4));
}

.nav-links a,
.btn,
.nav-cta {
  position: relative;
  overflow: hidden;
}

.nav-links a {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

.btn::after,
.nav-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 10%, rgba(255, 255, 255, 0.32), transparent 52%);
  transform: translateX(-120%);
  transition: transform 650ms ease;
}

.btn:hover::after,
.nav-cta:hover::after {
  transform: translateX(120%);
}

.btn:hover,
.card:hover {
  transform: translateY(-4px);
}

.btn-primary:hover {
  box-shadow: 0 20px 52px rgba(0, 136, 255, 0.42);
}

.btn-green:hover {
  box-shadow: 0 18px 48px rgba(29, 185, 84, 0.28);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.26;
  pointer-events: none;
  animation: float-orb 9s ease-in-out infinite;
}

.hero::before {
  right: 8%;
  top: 8%;
  background: radial-gradient(circle, rgba(0, 136, 255, 0.55), transparent 65%);
}

.hero::after {
  left: 5%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(29, 185, 84, 0.38), transparent 68%);
  animation-delay: -3s;
}

.hero-card {
  animation: float-card 6s ease-in-out infinite;
}

.card {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 0%, rgba(0, 136, 255, 0.16), transparent 36%),
    radial-gradient(circle at 100% 22%, rgba(29, 185, 84, 0.11), transparent 30%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow), 0 0 36px rgba(0, 136, 255, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.icon {
  --icon-a: var(--blue);
  --icon-b: var(--green);
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  color: transparent;
  font-size: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 25% 10%, rgba(0, 136, 255, 0.42), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 34px rgba(0, 0, 0, 0.26);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  transition: transform 220ms ease, opacity 220ms ease;
}

.card:hover .icon::before,
.card:hover .icon::after {
  transform: scale(1.05);
}

.icon::before {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
}

.icon::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--icon-a), var(--icon-b));
  box-shadow: 0 0 18px rgba(0, 136, 255, 0.4);
}

.icon-image::before,
.icon-photo::before {
  border-radius: 7px;
}

.icon-image::after,
.icon-photo::after {
  right: 14px;
  top: 15px;
}

.icon-video::before,
.icon-film::before {
  width: 30px;
  height: 22px;
  border-radius: 7px;
}

.icon-video::after,
.icon-film::after {
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  border-left: 9px solid #fff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  box-shadow: none;
}

.icon-text::before,
.icon-script::before {
  width: 28px;
  height: 22px;
  border-radius: 6px;
  border-top-width: 5px;
}

.icon-text::after,
.icon-script::after {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 0 rgba(255, 255, 255, 0.74);
}

.icon-flow::before {
  width: 18px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, #fff, #9de6ff);
  clip-path: polygon(48% 0, 88% 0, 63% 39%, 100% 39%, 35% 100%, 48% 55%, 10% 55%);
}

.icon-flow::after {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
}

.icon-logo::before {
  border-radius: 50%;
  border-width: 3px;
}

.icon-logo::after {
  width: 16px;
  height: 16px;
  background: transparent;
  border: 2px solid var(--green);
}

.icon-thumbnail::before {
  width: 30px;
  height: 20px;
  border-radius: 6px;
}

.icon-thumbnail::after {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--blue), #fff);
  transform: translate(5px, 3px);
}

.icon-product::before {
  width: 24px;
  height: 28px;
  border-radius: 7px 7px 10px 10px;
}

.icon-product::after {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-9px);
}

.icon-anime::before,
.icon-portrait::before,
.icon-profile::before {
  border-radius: 50%;
}

.icon-anime::after,
.icon-portrait::after,
.icon-profile::after {
  width: 24px;
  height: 10px;
  border-radius: 999px 999px 6px 6px;
  transform: translateY(12px);
}

.icon-social::before {
  width: 25px;
  height: 25px;
  border-radius: 9px;
  transform: rotate(-8deg);
}

.icon-social::after {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid var(--green);
  transform: translate(7px, -7px);
}

.icon-car::before {
  width: 30px;
  height: 14px;
  border-radius: 10px 10px 5px 5px;
  transform: translateY(3px);
}

.icon-car::after {
  width: 25px;
  height: 6px;
  background: transparent;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  border-radius: 999px;
  transform: translateY(13px);
}

.icon-fashion::before {
  width: 24px;
  height: 30px;
  border-radius: 11px 11px 7px 7px;
  clip-path: polygon(24% 0, 76% 0, 100% 30%, 78% 100%, 22% 100%, 0 30%);
}

.icon-fashion::after {
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid var(--green);
  transform: translateY(-10px);
}

.dropzone {
  border: 1px solid rgba(0, 136, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(0, 136, 255, 0.12), rgba(29, 185, 84, 0.06)),
    rgba(255, 255, 255, 0.035);
  border-radius: 26px;
  padding: 34px 24px;
  position: relative;
  overflow: hidden;
  transition: background 220ms ease, border 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.dropzone::before {
  content: "";
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 28% 16%, rgba(0, 136, 255, 0.48), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 36px rgba(0, 136, 255, 0.28);
}

.dropzone::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 51px;
  width: 26px;
  height: 26px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff, #bfe4ff);
  clip-path: polygon(50% 0, 86% 38%, 64% 38%, 64% 100%, 36% 100%, 36% 38%, 14% 38%);
}

.dropzone:hover,
.dropzone.is-dragover {
  background:
    linear-gradient(145deg, rgba(0, 136, 255, 0.17), rgba(29, 185, 84, 0.1)),
    rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
  box-shadow: var(--shadow), 0 0 36px rgba(0, 136, 255, 0.28);
}

.preview {
  animation: scale-in 240ms ease both;
}

.output-card.is-visible {
  animation: slide-up 260ms ease both;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -16px, 0) scale(1.06);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .feature-band,
  .tool-layout,
  .tools-head,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .ad-sidebar {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 16px auto;
    display: none;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(3, 7, 18, 0.97);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta {
    justify-content: center;
    border-radius: 14px;
  }

  .tool-grid,
  .advanced-grid,
  .grid-2,
  .grid-3,
  .tool-directory,
  .metrics-grid,
  .analysis-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tiktok-report-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .section {
    padding: 50px 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .hero-actions .btn,
  .button-row .btn,
  .form-actions .btn {
    width: 100%;
  }

  .hero-card,
  .tool-shell,
  .card {
    border-radius: 20px;
  }
}
