/* ResQHub public splash - consumer-facing marketing surface */
:root {
    --bg-deep: #060912;
    --bg-base: #0b1120;
    --bg-elevated: #111827;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.12);
    --accent-2: #818cf8;
    --accent-3: #34d399;
    --danger: #f87171;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --nav-h: 72px;
    --max-w: 1180px;
    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body.splash-body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.splash-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 20%, rgba(129, 140, 248, 0.1), transparent 50%),
        radial-gradient(ellipse 40% 30% at 0% 80%, rgba(52, 211, 153, 0.08), transparent 50%);
    z-index: 0;
}

.splash-page {
    position: relative;
    z-index: 1;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: min(var(--max-w), calc(100% - 48px));
    margin: 0 auto;
}

/* Nav */
.splash-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.splash-nav.scrolled {
    background: rgba(6, 9, 18, 0.82);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}

.splash-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 24px;
}

.splash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text);
}

.splash-brand img,
.splash-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 40px;
    max-width: min(190px, 38vw);
    object-fit: contain;
    object-position: left center;
}

.splash-brand-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.splash-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.splash-nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.splash-nav-links a:hover { color: var(--text); text-decoration: none; }

.splash-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: #042f2e;
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover { color: #042f2e; box-shadow: 0 12px 40px rgba(34, 211, 238, 0.35); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.4);
}

.btn-outline:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Hero */
.hero {
    padding: calc(var(--nav-h) + 80px) 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 10px var(--accent-3);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

.stat-card {
    padding: 20px 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Sections */
.section {
    padding: 96px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 0 48px;
    line-height: 1.7;
}

.section-header-center {
    text-align: center;
}

.section-header-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* Problem grid */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.problem-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.problem-list li:last-child { border-bottom: none; }

.problem-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.solution-highlight {
    padding: 36px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.08), rgba(129, 140, 248, 0.06));
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.solution-highlight h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 700;
}

.solution-highlight p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Platform pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pillar-card {
    padding: 28px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.pillar-card:hover {
    border-color: rgba(34, 211, 238, 0.3);
    background: var(--surface-hover);
    transform: translateY(-4px);
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.pillar-icon.cyan { background: rgba(34, 211, 238, 0.15); color: var(--accent); }
.pillar-icon.indigo { background: rgba(129, 140, 248, 0.15); color: var(--accent-2); }
.pillar-icon.green { background: rgba(52, 211, 153, 0.15); color: var(--accent-3); }
.pillar-icon.amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.pillar-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.pillar-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Solutions */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.7;
}

.solution-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.solution-card h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
}

.solution-card p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-features li {
    font-size: 0.88rem;
    color: var(--text-dim);
    padding: 6px 0 6px 22px;
    position: relative;
}

.solution-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-3);
    font-weight: 700;
}

/* Flow */
.flow-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.flow-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 48px;
}

.flow-step {
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
}

.flow-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.flow-step h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.flow-step p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.flow-arrow {
    display: flex;
    align-items: center;
    color: var(--text-dim);
    font-size: 1.2rem;
    padding: 0 4px;
    align-self: center;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.audience-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.audience-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.note-banner {
    margin-top: 40px;
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid rgba(129, 140, 248, 0.2);
    font-size: 0.92rem;
    color: var(--text-muted);
    text-align: center;
}

.note-banner strong { color: var(--text); }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-info p {
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.7;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-panel {
    padding: 36px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.5);
}

.form-row textarea { min-height: 120px; resize: vertical; }

.form-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.inquiry-success {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--accent-3);
    margin-bottom: 18px;
    font-size: 0.92rem;
}

.inquiry-error {
    padding: 16px 40px 16px 16px;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
    margin-bottom: 18px;
    font-size: 0.92rem;
    position: relative;
}

.banner-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.banner-close:hover {
    background: rgba(248, 113, 113, 0.15);
}

body.modal-open {
    overflow: hidden;
}

.modal-overlay.modal-sticky .modal-panel {
    box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}

.field-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.recaptcha-row {
    margin-bottom: 18px;
}

/* Footer */
.splash-footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-links a:hover { color: var(--text-muted); }

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Login modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-panel {
    width: min(420px, 100%);
    padding: 36px 32px 28px;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    position: relative;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
}

.modal-close:hover { color: var(--text); background: var(--surface); }

.modal-panel h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.88rem;
    margin: 0 0 24px;
}

.modal-logo {
    display: block;
    width: auto;
    height: auto;
    max-height: 56px;
    max-width: min(220px, 80vw);
    object-fit: contain;
    margin: 0 auto 20px;
}

.login-error {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
    font-size: 0.88rem;
    margin-bottom: 16px;
    text-align: center;
}

.modal-panel .form-group { margin-bottom: 16px; }

.modal-panel .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.modal-panel .form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font-size: 0.95rem;
}

.modal-panel .btn-login {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #0891b2);
    color: #042f2e;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.modal-panel .btn-login:hover { filter: brightness(1.05); }

.modal-footer-links {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
}

.modal-footer-links a { color: var(--text-dim); }

.text-danger { color: var(--danger); font-size: 0.82rem; }

/* Mobile nav drawer */
@media (max-width: 960px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .problem-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .splash-nav-links {
        display: none;
    }

    .splash-nav-inner {
        gap: 10px;
    }

    .splash-nav-actions {
        gap: 8px;
    }

    .splash-nav-actions .btn-nav-cta,
    .splash-nav-actions .btn-nav-login {
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .splash-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(6, 9, 18, 0.96);
        backdrop-filter: blur(16px);
        padding: 20px 24px 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .splash-nav-actions.open-mobile {
        display: flex;
        position: absolute;
        top: calc(var(--nav-h) + 180px);
        left: 24px;
        right: 24px;
    }

    .solutions-grid,
    .audience-grid { grid-template-columns: 1fr; }
    .flow-arrow { display: none; }
    .flow-diagram { flex-direction: column; align-items: center; }
    .form-row.two-col { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 32px); }
    .hero { padding-bottom: 64px; }
    .section { padding: 64px 0; }
    .pillar-grid { grid-template-columns: 1fr; }

    .splash-nav-actions .btn-nav-cta {
        padding: 8px 10px;
    }

    .splash-nav-actions .btn-nav-login {
        padding: 8px 10px;
    }

    .splash-brand img,
    .splash-brand-logo {
        max-height: 32px;
        max-width: min(150px, 36vw);
    }
}
