/* ═══════════════════════════════════════════════════════
   HostCheck — Professional Landing Page
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    --bg: #050505;
    --bg-raised: #0c0c0e;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-border: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(255, 255, 255, 0.04);
    --bg-input-hover: rgba(255, 255, 255, 0.06);
    --bg-input-focus: rgba(255, 255, 255, 0.08);

    --text: #ededed;
    --text-2: #999;
    --text-3: #555;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-bg: rgba(99, 102, 241, 0.1);
    --accent-border: rgba(99, 102, 241, 0.2);
    --accent-glow: rgba(99, 102, 241, 0.15);

    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --green-border: rgba(34, 197, 94, 0.2);

    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.08);
    --red-border: rgba(239, 68, 68, 0.15);

    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 100px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ── Reset ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Ambient Background ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    top: -200px;
    left: -100px;
    animation: orbFloat1 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
    top: 40%;
    right: -150px;
    animation: orbFloat2 25s ease-in-out infinite alternate;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent 70%);
    bottom: -100px;
    left: 30%;
    animation: orbFloat3 18s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 40px);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-40px, 60px);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, -30px);
    }
}

/* Subtle noise texture */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ── Navigation ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 10;
    padding: 5rem 1.5rem 3rem;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

/* Pill / Badge */
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem 0.35rem 0.65rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 2rem;
    animation: fadeUp 0.6s ease both;
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-light);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    animation: fadeUp 0.6s ease 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, #c084fc 40%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.2s both;
}

/* ── Tool Card (Main Form) ── */
.tool-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    text-align: left;
    animation: fadeUp 0.6s ease 0.3s both;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tool-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.field-path {
    grid-column: 1 / -1;
}

.field label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-left: 0.15rem;
}

.field-optional {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--text-3);
    text-transform: none;
    letter-spacing: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

.field-input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
    opacity: 0.6;
}

.field-input-wrap input {
    width: 100%;
    padding: 0.95rem 1.15rem 0.95rem 2.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.field-input-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.field-input-wrap input:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.field-input-wrap input:focus {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.15) inset;
}

.field-input-wrap:focus-within .field-icon {
    color: var(--accent-light);
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}

/* Submit Button */
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.95rem 1.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

.tool-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tool-btn:hover {
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.tool-btn:hover::before {
    opacity: 1;
}

.tool-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

.tool-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.tool-btn.loading svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Error */
.error-msg {
    display: none;
    margin-top: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

.error-msg.show {
    display: block;
    animation: shake 0.35s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ── Result ── */
.result {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.result.show {
    display: block;
    animation: fadeUp 0.4s ease;
}

.result-header {
    margin-bottom: 0.75rem;
}

.result-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.result-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

.result-url-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    overflow-x: auto;
}

.result-url {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-light);
    word-break: break-all;
    text-decoration: none;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.result-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
}

.result-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    color: var(--text);
}

.result-btn-primary {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    color: var(--accent-light);
}

.result-btn-primary:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
}

.result-btn.copied {
    background: var(--green-bg);
    border-color: var(--green-border);
    color: var(--green);
}

/* ── Trust Bar ── */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    animation: fadeUp 0.6s ease 0.5s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-3);
    font-weight: 500;
}

.trust-item svg {
    color: var(--text-3);
    flex-shrink: 0;
}

/* ── Sections ── */
.section {
    position: relative;
    z-index: 10;
    padding: 5rem 1.5rem;
}

.section-alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease;
}

.section-heading {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease 0.05s;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.5s ease 0.1s;
}

.section-label.revealed,
.section-heading.revealed,
.section-desc.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Steps ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s ease;
}

.step.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step:hover {
    background: rgba(255, 255, 255, 0.02);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-light);
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.2px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
}

.step-line {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin-left: calc(1.5rem + 20px);
    flex-shrink: 0;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feat {
    background: var(--bg-raised);
    padding: 1.75rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
}

.feat.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feat:hover {
    background: var(--bg-card-hover);
}

.feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-md);
    color: var(--accent-light);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feat:hover .feat-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    transform: scale(1.05);
}

.feat h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.2px;
}

.feat p {
    font-size: 0.83rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── Use Cases ── */
.usecases {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.usecase {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
}

.usecase.revealed {
    opacity: 1;
    transform: translateY(0);
}

.usecase:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.usecase-emoji {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.usecase h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.2px;
}

.usecase p {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.6;
}

/* ── FAQ ── */
.faq-list {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s ease;
}

.faq-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq-item summary {
    padding: 1.15rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-3);
    transition: transform 0.3s ease, color 0.2s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--accent-light);
}

.faq-item summary:hover {
    color: var(--accent-light);
}

.faq-item p {
    padding: 0 0 1.15rem;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.7;
    animation: fadeUp 0.3s ease;
}

.faq-item code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-light);
}

/* ── CTA Section ── */
.cta-section {
    position: relative;
    z-index: 10;
    padding: 5rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.cta-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 0.5rem;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-2);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-2px);
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 500px;
    margin: 0 auto;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.footer-text {
    font-size: 0.83rem;
    color: var(--text-3);
    margin-bottom: 0;
}

.footer-sep {
    width: 40px;
    height: 1px;
    background: var(--border);
    margin: 1.25rem auto;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-3);
}

/* ── Shared Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ── Selection ── */
::selection {
    background: rgba(99, 102, 241, 0.25);
    color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .tool-card {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .tool-fields {
        grid-template-columns: 1fr;
    }

    .field-path {
        grid-column: auto;
    }

    .tool-btn {
        width: 100%;
    }

    .trust-bar {
        gap: 1rem;
    }

    .section {
        padding: 3.5rem 1.25rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .usecases {
        grid-template-columns: 1fr;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.55rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .trust-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ═══════════════════════════════════════════════════════
   Legal / Content Pages
   ═══════════════════════════════════════════════════════ */
.legal-page {
    position: relative;
    z-index: 10;
    padding: 3rem 1.5rem 5rem;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: var(--text-3);
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 2.5rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text);
}

.legal-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--text-2);
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--text-2);
}

.legal-content li {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.legal-content a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.15s ease;
}

.legal-content a:hover {
    color: #c084fc;
    text-decoration: underline;
}

.legal-content code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-light);
}

.legal-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ── Cookie / Comparison Tables ── */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cookie-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.cookie-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: top;
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.cookie-table code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: var(--accent-light);
}

.cookie-table a {
    color: var(--accent-light);
    text-decoration: none;
}

.cookie-table a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   Blog
   ═══════════════════════════════════════════════════════ */
.blog-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s ease;
}

.blog-card:hover {
    border-color: var(--border-hover);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.blog-meta time {
    font-size: 0.78rem;
    color: var(--text-3);
    font-weight: 500;
}

.blog-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    color: var(--accent-light);
}

.blog-card h2 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.blog-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
    letter-spacing: -0.2px;
}

.blog-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1.5rem 0 0.4rem;
    color: var(--text-2);
}

.blog-body p {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.blog-body ul,
.blog-body ol {
    margin: 0.5rem 0 1rem 1.25rem;
    color: var(--text-2);
}

.blog-body li {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.blog-body a {
    color: var(--accent-light);
    text-decoration: none;
}

.blog-body a:hover {
    text-decoration: underline;
}

.blog-body code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-light);
}

.blog-body strong {
    color: var(--text);
    font-weight: 600;
}

.blog-body em {
    font-style: italic;
    color: var(--text);
}

.blog-cta {
    margin: 2rem 0 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1rem;
    margin: -0.75rem 0 1.5rem;
    font-size: 0.82rem;
    color: var(--text-3);
}

.article-byline a {
    color: var(--accent-light);
    text-decoration: none;
}

.article-byline a:hover {
    text-decoration: underline;
}

.author-note {
    margin-top: 1.75rem;
    padding: 1.1rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.author-note p:last-child {
    margin-bottom: 0;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.info-card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
}

.info-card h3 {
    margin: 0 0 0.45rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
}

.info-card p,
.info-card li {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.7;
}

.info-card ul {
    margin: 0.5rem 0 0 1.15rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.contact-method {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
}

.contact-method h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    font-size: 1rem;
}

.contact-method p {
    margin-bottom: 0.55rem;
}

.contact-method a {
    color: var(--accent-light);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.support-checklist {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.support-checklist h2 {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.resource-hero {
    margin-bottom: 1.5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.resource-card {
    display: block;
    text-decoration: none;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.resource-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1rem;
    color: var(--text);
}

.resource-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-2);
}

.resource-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.75rem;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.callout-panel {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
}

.callout-panel p:last-child {
    margin-bottom: 0;
}

.inline-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 1rem 0 0;
}

.inline-link-list a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.inline-link-list a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════
   Contact Form
   ═══════════════════════════════════════════════════════ */
.contact-form {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1.15rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    font-weight: 400;
    line-height: 1.6;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    resize: vertical;
    min-height: 140px;
}

.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.contact-form textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-form textarea:focus {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.15) inset;
}

.contact-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-md);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.contact-alt {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-alt h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-alt p {
    font-size: 0.9rem;
    color: var(--text-2);
    margin-bottom: 0.25rem;
}

.contact-alt strong {
    color: var(--accent-light);
}

/* ═══════════════════════════════════════════════════════
   Ad Slots
   ═══════════════════════════════════════════════════════ */
.ad-slot {
    min-height: 100px;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-slot-top {
    margin-top: 0;
}

/* ═══════════════════════════════════════════════════════
   Footer Links
   ═══════════════════════════════════════════════════════ */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin-top: 0.5rem;
}

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text-2);
}

/* ═══════════════════════════════════════════════════════
   Cookie Consent Banner
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideUp 0.4s ease;
}

.cookie-banner.show {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-text {
    font-size: 0.85rem;
    color: var(--text-2);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--accent-light);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    outline: none;
}

.cookie-btn-accept {
    background: var(--accent);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: var(--accent-light);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* ── Responsive for new pages ── */
@media (max-width: 768px) {
    .legal-page {
        padding: 2rem 1.25rem 3.5rem;
    }

    .blog-card {
        padding: 1.5rem;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .contact-methods,
    .info-card-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cookie-table {
        font-size: 0.78rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.55rem 0.65rem;
    }

    .footer-links {
        gap: 0.15rem 0.75rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   Blog Grid & Article Body
   ═══════════════════════════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-grid .blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-grid .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 2rem 0 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text);
}

.blog-body h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--text-2);
}

.blog-body p {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.blog-body ul,
.blog-body ol {
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-body li {
    font-size: 0.92rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 0.35rem;
}

.blog-body code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-light);
}

.blog-body a {
    color: var(--accent-light);
    text-decoration: none;
}

.blog-body a:hover {
    text-decoration: underline;
}

.blog-body table {
    width: 100%;
    margin: 1rem 0;
}