:root {
    color-scheme: dark;
    --black: #090a0b;
    --ink: #111315;
    --panel: #151718;
    --panel-light: #1c1f20;
    --white: #f5f5f0;
    --muted: #9a9e9d;
    --line: #303333;
    --line-light: #454948;
    --accent: #d7f45b;
    --accent-ink: #171b08;
    --danger: #ff8c86;
    --success: #b8ed99;
    --radius: 10px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    font-family: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--black); color: var(--white); }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; background: linear-gradient(115deg, rgba(215, 244, 91, 0.035), transparent 35%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; }
.site-shell { width: min(1160px, calc(100% - 40px)); min-height: 100vh; margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid var(--line-light); border-radius: 8px; background: var(--white); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 1.08rem; }
.brand-copy small, .section-kicker, .eyebrow { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { padding: 8px 10px; color: var(--muted); font-size: 0.82rem; font-weight: 700; transition: color 160ms ease; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--accent); outline: none; }
.install-button { min-height: 38px; padding: 0 14px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: 0.78rem; font-weight: 900; transition: background 160ms ease, transform 160ms ease; }
.install-button:hover { background: #e5ff77; transform: translateY(-1px); }
.install-button[hidden] { display: none; }
.hero-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 510px); align-items: center; gap: clamp(42px, 8vw, 112px); min-height: 610px; padding: 74px 0 86px; }
.hero-copy { max-width: 590px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--accent); }
.eyebrow::before { width: 28px; height: 1px; content: ""; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 600px; margin-bottom: 22px; font-family: "Space Grotesk", "Inter", sans-serif; font-size: clamp(3rem, 6vw, 5.7rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.04em; }
.hero-text { max-width: 500px; margin-bottom: 28px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-row span, .status-pill { border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.74rem; font-weight: 800; }
.trust-row span { padding: 8px 11px; }
.download-panel, .result-section, .images-section, .youtube-promo, .feature-strip article { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.download-panel { position: relative; padding: 26px; }
.download-panel::after { position: absolute; top: 0; right: 26px; left: 26px; height: 2px; content: ""; background: var(--accent); }
.panel-heading, .download-form, .loader-stage { position: relative; z-index: 1; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.panel-heading h2 { margin: 7px 0 0; font-size: 1.42rem; line-height: 1.15; }
.status-pill { flex: 0 0 auto; padding: 7px 10px; }
.status-pill.is-working { border-color: var(--accent); color: var(--accent); }
.status-pill.is-error { border-color: var(--danger); color: var(--danger); }
.status-pill.is-success { border-color: var(--success); color: var(--success); }
.platform-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.platform-chip { min-height: 39px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); color: var(--muted); font-size: 0.75rem; font-weight: 800; text-align: center; transition: border-color 160ms ease, color 160ms ease, background 160ms ease; }
.platform-chip.is-active, .platform-chip.is-tiktok, .platform-chip.is-instagram { border-color: var(--accent); background: rgba(215, 244, 91, 0.1); color: var(--accent); }
.download-form label { display: block; margin-bottom: 9px; color: var(--white); font-size: 0.8rem; font-weight: 800; }
.input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; min-height: 58px; padding: 7px; border: 1px solid var(--line-light); border-radius: 7px; background: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215, 244, 91, 0.1); }
.input-wrap input { width: 100%; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--white); font-size: 0.86rem; }
.input-wrap input::placeholder { color: #6f7472; }
.icon-action { min-width: 52px; height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-light); color: var(--white); cursor: pointer; font-size: 0.7rem; font-weight: 800; transition: border-color 160ms ease, color 160ms ease; }
.icon-action:hover { border-color: var(--accent); color: var(--accent); }
.icon-action.muted { color: var(--muted); }
.field-message { min-height: 22px; margin: 10px 0 16px; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.field-message.is-error { color: var(--danger); }
.field-message.is-success { color: var(--success); }
.primary-button { position: relative; display: inline-grid; width: 100%; min-height: 52px; place-items: center; border-radius: 6px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 900; transition: background 160ms ease, transform 160ms ease; }
.primary-button:hover { background: #e5ff77; transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; transform: none; opacity: 0.7; }
.button-loader { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(23, 27, 8, 0.25); border-top-color: var(--accent-ink); border-radius: 50%; opacity: 0; animation: spin 760ms linear infinite; }
.primary-button.is-loading .button-label { opacity: 0; }
.primary-button.is-loading .button-loader { opacity: 1; }
.loader-stage { display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--ink); }
.loader-stage[hidden], .result-section[hidden], .images-section[hidden] { display: none; }
.loader-stage strong { display: block; margin-bottom: 4px; font-size: 0.88rem; }
.loader-stage p { margin-bottom: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.sky-loader { position: relative; width: 42px; height: 42px; }
.sky-loader span { position: absolute; inset: 0; border: 1px solid rgba(215, 244, 91, 0.25); border-radius: 50%; animation: pulse-ring 1.8s ease-in-out infinite; }
.sky-loader span:nth-child(2) { animation-delay: 240ms; }
.sky-loader span:nth-child(3) { animation-delay: 480ms; }
.sky-loader i { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); }
.sky-loader::after { position: absolute; inset: 5px; border-top: 2px solid var(--accent); border-right: 2px solid transparent; border-radius: 50%; content: ""; animation: orbit 1.15s linear infinite; }
.result-section { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 24px; margin-bottom: 28px; padding: 20px; }
.result-media { position: relative; aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; border-radius: 7px; background: var(--ink); }
.result-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.result-overlay { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; border: 1px solid var(--line-light); border-radius: 5px; background: rgba(9, 10, 11, 0.85); color: var(--white); font-size: 0.8rem; font-weight: 800; }
.result-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; overflow: hidden; }
.result-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.result-meta-row .section-kicker { margin-bottom: 0; }
.result-platform { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line-light); border-radius: 999px; color: var(--muted); font-size: 0.7rem; font-weight: 900; }
.result-platform.is-instagram, .result-platform.is-tiktok { border-color: var(--accent); color: var(--accent); }
.result-content h2 { display: -webkit-box; max-width: 620px; margin: 8px 0; overflow: hidden; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.author-line { margin-bottom: 16px; color: var(--muted); font-size: 0.78rem; }
.author-line span { color: var(--white); font-weight: 800; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.stats-grid div { min-width: 0; min-height: 62px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); }
.stats-grid span { display: block; margin-bottom: 4px; overflow: hidden; font-size: 1rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.stats-grid small, .download-link small { color: var(--muted); font-size: 0.72rem; }
.buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.download-link { display: grid; min-width: 0; min-height: 62px; align-content: center; gap: 4px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.download-link span { font-size: 0.82rem; font-weight: 900; }
.download-link:hover { border-color: var(--accent); background: rgba(215, 244, 91, 0.08); transform: translateY(-1px); }
.download-link.featured { border-color: var(--accent); background: rgba(215, 244, 91, 0.12); }
.download-link.is-disabled { pointer-events: none; opacity: 0.42; }
.images-section { margin-bottom: 28px; padding: 20px; }
.images-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.images-heading h2 { margin: 7px 0; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.15; }
.images-heading p:not(.section-kicker) { max-width: 620px; margin-bottom: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.image-download-all { width: min(230px, 100%); flex: 0 0 auto; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.image-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); }
.image-card > img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.image-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; }
.image-card h3 { margin: 0; font-size: 0.8rem; }
.image-download { color: var(--accent); font-size: 0.72rem; font-weight: 900; }
.youtube-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 390px); align-items: center; gap: 28px; margin-bottom: 14px; padding: 22px; }
.youtube-promo-copy h2 { margin: 7px 0 9px; font-size: 1.3rem; }
.youtube-promo-copy > p:last-child { max-width: 610px; margin-bottom: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.youtube-promo-action { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.facebook-promo-mark, .youtube-play-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 6px; background: var(--white); color: var(--black); font-family: Georgia, serif; font-size: 1.8rem; font-weight: 900; }
.youtube-play-mark::before { width: 0; height: 0; content: ""; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--black); }
.youtube-promo-points { display: flex; flex-wrap: wrap; gap: 6px; }
.youtube-promo-points span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.68rem; font-weight: 800; }
.youtube-promo-link { grid-column: 1 / -1; padding: 11px 13px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); font-size: 0.76rem; font-weight: 900; text-align: center; transition: background 160ms ease, color 160ms ease; }
.youtube-promo-link:hover { background: var(--accent); color: var(--accent-ink); }
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 42px 0; }
.feature-strip article { padding: 20px; box-shadow: none; }
.feature-strip article > span { display: block; margin-bottom: 24px; color: var(--accent); font-family: "Space Grotesk", sans-serif; font-size: 0.8rem; font-weight: 700; }
.feature-strip h3 { margin-bottom: 8px; font-size: 1rem; }
.feature-strip p { margin-bottom: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.76rem; }
.site-footer p { margin-bottom: 0; }
.site-footer strong, .site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--accent); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 20; max-width: min(380px, calc(100vw - 40px)); padding: 13px 15px; border: 1px solid var(--line-light); border-radius: 6px; background: var(--panel-light); color: var(--white); font-size: 0.8rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0%, 100% { opacity: 0.2; transform: scale(0.72); } 50% { opacity: 0.75; transform: scale(1); } }
@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr; gap: 36px; min-height: auto; padding: 64px 0 70px; }
    .hero-copy { max-width: 680px; }
    .hero-section .download-panel { order: 0; }
    .youtube-promo { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .site-shell { width: min(100% - 28px, 560px); }
    .site-header, .header-actions, .site-footer { align-items: flex-start; }
    .site-header, .header-actions { flex-direction: column; }
    .site-header { gap: 18px; }
    .header-actions { width: 100%; gap: 10px; }
    .top-nav { width: 100%; justify-content: space-between; }
    .top-nav a { padding: 8px 6px; }
    .install-button { width: 100%; }
    h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
    .download-panel { padding: 20px; }
    .input-wrap { grid-template-columns: minmax(0, 1fr) repeat(3, auto); }
    .icon-action { min-width: 0; padding: 0 7px; }
    .icon-action span { font-size: 0.65rem; }
    .result-section { grid-template-columns: 108px minmax(0, 1fr); align-items: start; gap: 14px; padding: 14px; }
    .result-media { width: 108px; aspect-ratio: 4 / 5; }
    .result-content h2 { font-size: 0.94rem; line-height: 1.25; }
    .result-platform { padding: 5px 7px; font-size: 0.62rem; }
    .stats-grid div { min-height: 56px; padding: 8px 6px; }
    .stats-grid span { font-size: 0.86rem; }
    .stats-grid small, .download-link small { font-size: 0.62rem; }
    .download-link { min-height: 58px; padding: 9px 8px; }
    .download-link span { font-size: 0.7rem; line-height: 1.2; }
    .images-heading { align-items: flex-start; flex-direction: column; }
    .image-download-all { width: 100%; }
    .feature-strip { grid-template-columns: 1fr; margin: 30px 0; }
    .site-footer { flex-direction: column; }
}
@media (max-width: 440px) {
    .panel-heading { gap: 10px; }
    .panel-heading h2 { font-size: 1.25rem; }
    .platform-chip { font-size: 0.68rem; }
    .input-wrap { grid-template-columns: 1fr 1fr 1fr; }
    .input-wrap input { grid-column: 1 / -1; }
    .buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
    .result-section { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
    .result-media { width: 88px; }
    .buttons { grid-template-columns: 1fr; }
}
