/**
 * Lowd Code landing styles.
 * Optical glass stack (Clear over media). Not OS Liquid Glass.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gunmetal: #1a1d23;
    --gunmetal-light: #252930;
    --ice-cyan: #4BB8C9;
    --text-primary: #ffffff;
    --text-secondary: rgba(232, 234, 237, 0.72);
    --border-glass: rgba(255, 255, 255, 0.10);
    --glass-bg: rgba(0, 0, 0, 0.30);
}

html, body {
    height: 100dvh;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--gunmetal);
    color: var(--text-primary);
    line-height: 1.5;
}

.hero-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        opacity: 0.85;
    }
}

.linkedin-icon {
    position: fixed;
    top: 0.85rem;
    right: 0.95rem;
    z-index: 12;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(232, 234, 237, 0.7);
}

.linkedin-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.linkedin-icon:hover { color: var(--ice-cyan); }
.linkedin-icon:focus {
    outline: 2px solid var(--ice-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

.dock {
    position: fixed;
    z-index: 10;
    left: 4.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: min(26.5rem, 34vw);
}

.intake-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 1.45rem 1.5rem 1.2rem;
    border-radius: 18px;
    /* 1 frost  2 tint  3 rim  4 glare  5 depth  6 lift
       Recipe: Apple Clear over media + webtricks optical stack.
       Web stand-in. Not OS Liquid Glass. */
    background: rgba(8, 10, 14, 0.22);
    backdrop-filter: blur(8px) saturate(160%) brightness(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(160%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.50),
        inset 0 -8px 16px rgba(0, 0, 0, 0.22),
        inset 0 -1px 1px rgba(255, 255, 255, 0.16),
        inset 1px 0 1px rgba(255, 255, 255, 0.16),
        inset -1px 0 1px rgba(255, 255, 255, 0.10);
}

/* Localized dim under the pane (Clear needs a dimming layer). */
.intake-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.18);
}

/* Specular glare / sheen. */
.intake-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.10) 26%,
        transparent 56%
    );
    mix-blend-mode: screen;
}

.card-face {
    position: relative;
    z-index: 2;
}

.glass-filter {
    position: absolute;
    width: 0;
    height: 0;
}

@supports (backdrop-filter: url(#lowd-refract)) {
    .intake-card {
        backdrop-filter: blur(4px) saturate(160%) brightness(1.05) url(#lowd-refract);
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .intake-card {
        background: rgba(20, 22, 26, 0.88);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .intake-card {
        background: rgba(20, 22, 26, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    }
    .intake-card::before,
    .intake-card::after {
        display: none;
    }
}

.card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.wordmark {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #fff;
}

.form-label {
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.25;
    color: #fff;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.form-textarea {
    width: 100%;
    min-height: 13.5rem;
    height: 13.5rem;
    max-width: 100%;
    max-height: 46vh;
    padding: 0.95rem 1rem;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
    /* Recessed fill. Not a second glass pane. */
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: both;
    overflow: auto;
    scrollbar-width: thin;
}

.form-textarea::placeholder {
    color: rgba(232, 234, 237, 0.45);
}

.form-textarea:focus {
    outline: none;
    border-color: rgba(75, 184, 201, 0.45);
}

.char-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
}

.char-count.over-limit {
    color: #ea4335;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.btn-attach {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.15rem;
    background: transparent;
    border: none;
    color: rgba(232, 234, 237, 0.72);
    font-size: 0.92rem;
    font-weight: 400;
    cursor: pointer;
}

.btn-attach:hover { color: #fff; }
.btn-attach:focus {
    outline: 2px solid var(--ice-cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

.icon-paperclip {
    width: 18px;
    height: 18px;
}

.btn-submit {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.65rem 1.65rem;
    border: none;
    border-radius: 999px;
    color: #0b1214;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #7ee0ec 0%, #4BB8C9 52%, #3aa8b8 100%);
    box-shadow: 0 0 22px rgba(75, 184, 201, 0.55), 0 2px 10px rgba(75, 184, 201, 0.28);
}

.btn-submit:hover {
    background: linear-gradient(180deg, #8fe7f1 0%, #5ec4d3 52%, #4BB8C9 100%);
}

.btn-submit:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.file-list {
    padding: 0.75rem 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-item + .file-item {
    border-top: 1px solid var(--border-glass);
    margin-top: 0.4rem;
    padding-top: 0.55rem;
}

.file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    margin-left: 1rem;
}

.file-remove {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
}

.file-remove:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.response-message {
    padding: 1.5rem 0.5rem;
    text-align: left;
}

.response-message h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

.response-message.success h2 {
    color: var(--ice-cyan);
}

.response-message.error h2 {
    color: #ea4335;
}

@media (max-width: 900px) {
    .dock {
        left: 1.5rem;
        width: min(26rem, 52vw);
    }
}

@media (max-width: 640px) {
    .dock {
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: 1rem;
        transform: none;
        width: auto;
    }

    .form-label {
        font-size: 1.25rem;
    }

    .form-textarea {
        min-height: 10.5rem;
        height: 10.5rem;
        resize: vertical;
    }
}
