/* ==========================================================================
   VideoBox — AI Video Downloader
   Dark, high-contrast design system on top of Bootstrap 5
   ========================================================================== */

:root {
    --bg: #06080f;
    --bg-soft: #0a0e1b;
    --surface: #101528;
    --surface-2: #151c34;
    --surface-3: #1b2342;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef1ff;
    --muted: #98a2c6;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --accent-3: #f472b6;
    --success: #34d399;
    --danger: #fb7185;
    --gradient: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
    --gradient-soft: linear-gradient(135deg, rgba(124, 92, 255, 0.18) 0%, rgba(34, 211, 238, 0.12) 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 24px 60px rgba(3, 6, 20, 0.55);
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7ee7f8;
}

img {
    border: 0;
}

::selection {
    background: rgba(124, 92, 255, 0.45);
    color: #fff;
}

.site-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header ---------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 8, 15, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-navbar {
    padding: 10px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 0;
    margin-right: 0;
    text-decoration: none;
}

.site-nav .nav-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navbar-toggler {
    border-color: var(--border-strong);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.35);
}

/* Buttons --------------------------------------------------------------- */

.btn-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-ai:hover,
.btn-ai:focus {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 14px 36px rgba(124, 92, 255, 0.45);
}

.btn-ai:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.btn.is-loading,
.btn-ai.is-loading {
    pointer-events: none;
}

.btn.is-loading > svg {
    display: none;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-bottom-color: transparent;
    display: inline-block;
    flex: none;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    background: transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Hero ------------------------------------------------------------------ */

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 64px;
    background:
        radial-gradient(900px 480px at 18% -10%, rgba(124, 92, 255, 0.28), transparent 60%),
        radial-gradient(760px 420px at 88% 8%, rgba(34, 211, 238, 0.20), transparent 60%),
        radial-gradient(600px 360px at 50% 110%, rgba(244, 114, 182, 0.12), transparent 70%),
        var(--bg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    animation: rise 0.6s ease both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(124, 92, 255, 0.45);
    background: rgba(124, 92, 255, 0.12);
    color: #c9c2ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.9);
}

.hero-title {
    margin: 20px 0 10px;
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 auto 30px;
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.hero-search {
    max-width: 720px;
    margin: 0 auto;
}

.search-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    background: rgba(16, 21, 40, 0.92);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-shell:focus-within {
    border-color: rgba(124, 92, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18), var(--shadow);
}

.search-icon {
    flex: 0 0 auto;
    color: var(--muted);
    display: flex;
}

.hero-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    padding: 10px 0;
}

.hero-search-input::placeholder {
    color: #6f7899;
}

.btn-hero {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 15px;
}

.hero-hints {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.hint-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.hint-chip svg {
    color: var(--accent-2);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-top: 38px;
}

.hero-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat span {
    color: var(--muted);
    font-size: 13px;
}

/* Sections -------------------------------------------------------------- */

.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 720px;
    margin: 0 0 34px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-eyebrow {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a99cff;
}

.section-title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Result card ----------------------------------------------------------- */

.result-section {
    padding-top: 8px;
    scroll-margin-top: 92px;
}

.result-card {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 26px;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.result-thumb {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    aspect-ratio: 16 / 9;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.result-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.result-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.formats-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a99cff;
}

.format-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.format-chip {
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.format-chip:hover {
    border-color: rgba(124, 92, 255, 0.65);
    transform: translateY(-1px);
}

.format-chip.active {
    border-color: transparent;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35);
}

.robot-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.robot-box input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.robot-box.robot-required {
    border-color: rgba(251, 113, 133, 0.65);
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.15);
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.btn-download {
    padding: 14px 30px;
    font-size: 15px;
    border-radius: 14px;
}

.download-progress {
    margin-top: 16px;
    min-height: 0;
}

.download-progress[hidden] {
    display: none;
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--gradient);
    transition: width 0.5s ease;
}

.download-status {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--muted);
}

.download-status.is-error {
    color: var(--danger);
}

.alert-error {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.1);
    color: #ffd7dd;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* Video cards ----------------------------------------------------------- */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 18px;
}

.video-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: 0 18px 40px rgba(4, 8, 24, 0.55);
    color: inherit;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--surface-2);
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.04);
}

.badge-duration,
.badge-age {
    position: absolute;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(6, 8, 15, 0.82);
    backdrop-filter: blur(4px);
}

.badge-duration {
    right: 8px;
    bottom: 8px;
}

.badge-age {
    left: 8px;
    top: 8px;
    background: rgba(220, 38, 38, 0.9);
}

.video-body {
    padding: 12px 14px 14px;
}

.video-title {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Features -------------------------------------------------------------- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--gradient-soft);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #c9c2ff;
}

.feature-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
}

.feature-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Steps ----------------------------------------------------------------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 22px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    font-weight: 800;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.35);
}

.step h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
    font-weight: 700;
}

.step p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Day chips ------------------------------------------------------------- */

.day-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.day-chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.day-chip:hover,
.day-chip.active {
    color: #fff;
    border-color: rgba(124, 92, 255, 0.6);
    background: rgba(124, 92, 255, 0.16);
}

/* Sites page ------------------------------------------------------------ */

.sites-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sites-count {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gradient-soft);
    border: 1px solid rgba(124, 92, 255, 0.35);
    color: #c9c2ff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sites-search {
    flex: 1 1 280px;
}

.sites-search input {
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    padding: 11px 18px;
    font-size: 14px;
    outline: none;
}

.sites-search input:focus {
    border-color: rgba(124, 92, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.sites-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-item {
    padding: 7px 12px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.sites-empty {
    color: var(--muted);
    padding: 18px 0;
}

/* Contact --------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.card-panel {
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-control,
.form-select {
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    background: var(--surface-2);
    color: var(--text);
    border-color: rgba(124, 92, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.form-control::placeholder {
    color: #6f7899;
}

textarea.form-control {
    min-height: 130px;
}

.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.captcha-box img {
    border-radius: 6px;
    background: #fff;
}

.captcha-hint {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.field-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 4px;
}

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
}

.notice-success {
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
    color: #bbf7e2;
}

.notice-error {
    border: 1px solid rgba(251, 113, 133, 0.4);
    background: rgba(251, 113, 133, 0.1);
    color: #ffd7dd;
}

/* Generic page header --------------------------------------------------- */

.page-head {
    padding: 56px 0 34px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.page-title {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* Player / legacy download --------------------------------------------- */

.player-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.player-card video {
    width: 100%;
    border-radius: var(--radius-sm);
    background: #000;
}

.player-hint {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.player-hint img {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 10px;
}

/* Prose (Terms) --------------------------------------------------------- */

.prose {
    max-width: 900px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 15px;
}

.prose p {
    margin: 0 0 14px;
}

.prose b,
.prose strong {
    color: var(--text);
}

.prose font[color="Red"] {
    color: var(--danger) !important;
}

.prose p > b:only-child {
    display: block;
    margin-top: 22px;
    font-size: 15px;
    color: var(--text);
}

/* FAQ ------------------------------------------------------------------- */

.faq .accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) !important;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq .accordion-button {
    background: transparent;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    padding: 16px 18px;
    box-shadow: none;
}

.faq .accordion-button:not(.collapsed) {
    color: #fff;
    background: rgba(124, 92, 255, 0.12);
}

.faq .accordion-button::after {
    filter: invert(1) grayscale(1);
    opacity: 0.7;
}

.faq .accordion-body {
    color: var(--muted);
    font-size: 14.5px;
    padding: 0 18px 18px;
}

/* CTA ------------------------------------------------------------------- */

.cta-band {
    padding: 46px 0;
    background:
        radial-gradient(700px 300px at 20% 0%, rgba(124, 92, 255, 0.28), transparent 65%),
        radial-gradient(600px 280px at 85% 30%, rgba(34, 211, 238, 0.2), transparent 65%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cta-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cta-text {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
    padding: 48px 0 26px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
}

.footer-brand-link {
    display: inline-flex;
    margin-bottom: 12px;
}

.footer-brand .brand-mark {
    font-size: 20px;
    gap: 6px;
}

.footer-brand .brand-play {
    width: 23px;
    height: 16px;
}

.footer-tagline {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    max-width: 280px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a99cff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: #6f7899;
    font-size: 12.5px;
}

/* Cookie banner (kept compatible with cookie-consent.js) ---------------- */

.eupopup-container {
    background-color: rgba(12, 16, 32, 0.96);
    color: #eef1ff;
    border-top: 1px solid var(--border-strong);
    padding: 14px 20px;
    font-size: 13px;
    text-align: center;
    z-index: 9999999;
    backdrop-filter: blur(12px);
}

.eupopup-head {
    font-weight: 700;
    color: #fff;
}

.eupopup-body {
    color: var(--muted);
}

.eupopup-button_1 {
    color: var(--accent-2);
    font-weight: 700;
}

.eupopup-closebutton {
    color: var(--muted);
}

.eupopup-closebutton:hover {
    color: #fff;
}

.eupopup-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Error page ------------------------------------------------------------ */

.error-page {
    padding: 90px 0;
    text-align: center;
}

.error-code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-title {
    margin: 8px 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.error-text {
    color: var(--muted);
    margin: 0 0 24px;
}

/* Utilities ------------------------------------------------------------- */

.text-muted-soft {
    color: var(--muted) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 991.98px) {
    .hero {
        padding: 62px 0 48px;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 46px 0 36px;
    }

    .search-shell {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 12px;
    }

    .hero-search-input {
        flex-basis: 100%;
        padding: 6px 6px 10px;
    }

    .btn-hero {
        width: 100%;
    }

    .hero-stats {
        gap: 22px;
    }

    .section {
        padding: 46px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        padding: 38px 0 26px;
    }

    .search-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
