:root {
    --bg: #050505;
    --bg-soft: #0b0b0d;
    --panel: rgba(18, 18, 20, .82);
    --panel-solid: #111113;
    --text: #f7f7f7;
    --muted: #b8b8bd;
    --dim: #7e7e86;
    --red: #e50914;
    --red-dark: #9f050c;
    --silver: #e7e7e7;
    --line: rgba(255, 255, 255, .12);
    --shadow: 0 24px 80px rgba(0, 0, 0, .55);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 10%, rgba(229, 9, 20, .17), transparent 28%),
        radial-gradient(circle at 78% 30%, rgba(229, 9, 20, .10), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,.02), transparent 20%);
    z-index: -2;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--red); padding: 12px; z-index: 1000; }
.skip-link:focus { left: 0; }

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.18));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border .25s ease;
}
.site-header.scrolled { background: rgba(5,5,5,.88); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 14px; box-shadow: 0 0 24px rgba(229,9,20,.18); }
.brand strong { color: var(--red); }
.main-nav { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: .92rem; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid rgba(229,9,20,.6); padding: 10px 16px; border-radius: 999px; background: rgba(229,9,20,.1); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; transition: transform .2s ease; }

.hero { min-height: 100svh; position: relative; display: grid; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero-bg, .community-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-film-tv-crew-network.webp');
    background-size: cover;
    background-position: center;
    opacity: .55;
    transform: scale(1.02);
}
.hero-overlay, .community-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.96) 0%, rgba(0,0,0,.78) 38%, rgba(0,0,0,.35) 100%), linear-gradient(180deg, rgba(0,0,0,.25), #050505 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr .74fr; align-items: center; gap: 44px; }
.eyebrow { color: var(--red); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin: 0 0 14px; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; line-height: .98; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 7.5rem); letter-spacing: -.07em; max-width: 850px; }
h2 { font-size: clamp(2.2rem, 5.5vw, 5.2rem); letter-spacing: -.055em; }
h3 { font-size: 1.35rem; letter-spacing: -.03em; }
.hero-text { max-width: 660px; color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.35rem); margin: 24px 0 32px; }
.hero-actions, .phone-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    padding: 14px 24px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 18px 40px rgba(229, 9, 20, .28); }
.btn-outline { border-color: rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.06); }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); }
.trust-row span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); }
.trust-row strong { color: var(--text); }

.phone-stage { position: relative; justify-self: center; width: min(390px, 100%); }
.phone-glow { position: absolute; inset: 12% -18%; background: radial-gradient(circle, rgba(229,9,20,.36), transparent 62%); filter: blur(30px); }
.phone-shell {
    position: relative;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 42px;
    background: linear-gradient(160deg, #17171a, #030303);
    padding: 18px;
    min-height: 690px;
    box-shadow: var(--shadow), inset 0 0 0 8px rgba(255,255,255,.035);
    overflow: hidden;
}
.phone-top { display: flex; justify-content: space-between; color: var(--silver); font-size: .82rem; margin-bottom: 18px; padding: 0 8px; }
.phone-brand { text-align: center; margin-bottom: 16px; }
.phone-brand img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; margin: 0 auto 8px; }
.phone-brand p { color: var(--muted); margin: 0; font-size: .85rem; }
.phone-actions { gap: 8px; margin-bottom: 18px; }
.phone-actions button, .full-width {
    flex: 1;
    border: 1px solid rgba(229,9,20,.5);
    color: #fff;
    background: rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-weight: 800;
}
.phone-actions button.active { background: var(--red); }
.app-panel { display: none; }
.app-panel.active { display: block; animation: fadeUp .24s ease both; }
.screen-label { display: block; color: var(--text); font-weight: 800; margin: 0 0 8px; }
.phone-shell input, .phone-shell select, .lead-form input, .lead-form textarea, .gig-preview-form input {
    width: 100%;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.065);
    color: var(--text);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
}
.phone-shell select { margin: 8px 0 12px; color-scheme: dark; }
.category-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.category-row button { border: 1px solid rgba(255,255,255,.1); color: var(--muted); background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 5px; font-size: .72rem; cursor: pointer; }
.category-row button.active { color: #fff; border-color: rgba(229,9,20,.7); background: rgba(229,9,20,.18); }
.gig-list { display: grid; gap: 9px; max-height: 260px; overflow: auto; padding-right: 4px; }
.gig-item, .mini-form-card {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.055);
    border-radius: 14px;
    padding: 12px;
}
.gig-item strong { display: block; }
.gig-item span, .mini-form-card span { color: var(--dim); font-size: .78rem; }
.gig-item small { color: var(--red); font-weight: 800; }
.mini-form-card { margin-bottom: 10px; }
.mini-form-card strong { display: block; margin-top: 4px; }
.pulse-button { background: var(--red); margin-top: 8px; animation: pulse 1.8s ease-in-out infinite; }
.phone-nav { position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-around; color: var(--dim); font-size: .72rem; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }

.quick-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.025); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stats-grid div { padding: 26px 10px; text-align: center; border-right: 1px solid var(--line); }
.stats-grid div:last-child { border-right: 0; }
.stats-grid strong { display: block; font-size: clamp(2rem, 5vw, 4rem); color: var(--text); line-height: 1; }
.stats-grid span { color: var(--muted); font-size: .88rem; }

.section { padding: clamp(72px, 12vw, 130px) 0; }
.split-grid, .app-builder-grid, .join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.section-copy p, .section-heading p, .community-content p, .join-copy p { color: var(--muted); font-size: 1.08rem; }
.feature-list { display: grid; gap: 16px; margin-top: 28px; }
.feature-list article { display: flex; gap: 15px; padding: 18px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature-list h3 { font-size: 1.05rem; }
.feature-list p { margin: 6px 0 0; font-size: .95rem; }
.icon-dot { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--red), #450005); font-weight: 900; }
.image-card, .panel, .job-preview, .lead-form {
    background: rgba(255,255,255,.045);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.image-card img { width: 100%; height: 100%; object-fit: cover; }
.section-heading { max-width: 860px; margin-bottom: 34px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(229,9,20,.55); }
.feature-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.feature-card div { padding: 22px; }
.feature-card p { color: var(--muted); }
.panel { padding: 30px; }
.gig-preview-form { display: grid; gap: 14px; margin-top: 22px; }
.gig-preview-form label, .lead-form label { display: grid; gap: 7px; color: var(--muted); font-size: .88rem; font-weight: 700; }
.job-preview { padding: 32px; min-height: 360px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, rgba(229,9,20,.15), rgba(255,255,255,.04)); }
.preview-header { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 24px; }
.preview-header strong { color: #fff; background: var(--red); border-radius: 999px; padding: 5px 9px; font-size: .78rem; }
.job-preview h3 { font-size: clamp(2.2rem, 5vw, 4rem); }
.job-preview p { color: var(--muted); margin: 8px 0; }
.preview-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.preview-tags span { border: 1px solid rgba(255,255,255,.14); padding: 8px 10px; border-radius: 999px; color: var(--muted); font-size: .82rem; }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.profile-card { min-height: 210px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); position: relative; overflow: hidden; }
.profile-card::after { content: ""; position: absolute; inset: auto -20px -40px auto; width: 120px; height: 120px; background: radial-gradient(circle, rgba(229,9,20,.25), transparent 68%); }
.profile-card span { color: var(--red); text-transform: uppercase; font-weight: 900; font-size: .72rem; letter-spacing: .09em; }
.profile-card p { color: var(--muted); }
.profile-card strong { color: var(--silver); }

.community-section { position: relative; min-height: 680px; display: grid; align-items: center; overflow: hidden; }
.community-bg { background-image: url('../images/crew-love-networking.webp'); opacity: .62; }
.community-overlay { background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.84) 34%, rgba(5,5,5,.36) 100%), linear-gradient(180deg, transparent, #050505 100%); }
.community-content { position: relative; max-width: 640px; }
.role-ticker { margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(0,0,0,.45); }
.ticker-track { display: flex; gap: 12px; width: max-content; padding: 14px; animation: ticker 28s linear infinite; }
.ticker-track span { color: var(--muted); padding: 9px 14px; background: rgba(255,255,255,.07); border-radius: 999px; white-space: nowrap; }
.join-section { background: radial-gradient(circle at 75% 30%, rgba(229,9,20,.16), transparent 32%); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--red); font-weight: 900; margin-right: 10px; }
.lead-form { padding: 28px; display: grid; gap: 16px; }
.lead-form h3 { font-size: 2rem; }
.lead-form textarea { resize: vertical; min-height: 110px; }
.form-note { color: var(--dim); font-size: .78rem; margin: 0; }
.form-note code { color: var(--silver); }
.form-success, .form-error { margin: 0; border-radius: 14px; padding: 12px; font-weight: 800; }
.form-success { background: rgba(36, 160, 80, .14); color: #d9ffe5; border: 1px solid rgba(36,160,80,.28); }
.form-error { background: rgba(229,9,20,.14); color: #ffd6d8; border: 1px solid rgba(229,9,20,.28); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; background: #030303; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; color: var(--muted); }
.footer-brand img { width: 44px; height: 44px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: #fff; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(229,9,20,.34); } 50% { box-shadow: 0 0 0 10px rgba(229,9,20,0); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; top: 76px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 18px; background: rgba(8,8,9,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px; }
    .hero { padding-top: 104px; }
    .hero-grid, .split-grid, .app-builder-grid, .join-grid { grid-template-columns: 1fr; }
    .phone-stage { width: min(390px, 100%); }
    .cards-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 640px) {
    .container { width: min(calc(100% - 24px), var(--container)); }
    .brand span { font-size: .88rem; }
    .brand img { width: 44px; height: 44px; }
    .hero-bg { background-position: 62% center; }
    .hero-overlay { background: linear-gradient(180deg, rgba(0,0,0,.92), rgba(0,0,0,.74) 52%, #050505 100%); }
    h1 { font-size: clamp(2.75rem, 17vw, 4.8rem); }
    h2 { font-size: clamp(2.25rem, 12vw, 3.5rem); }
    .hero-actions .btn { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid div:nth-child(2) { border-right: 0; }
    .section { padding: 76px 0; }
    .phone-shell { min-height: 650px; border-radius: 34px; padding: 16px; }
    .category-row { grid-template-columns: repeat(2, 1fr); }
    .feature-list article { padding: 15px; }
    .profile-grid { grid-template-columns: 1fr; }
    .community-section { min-height: 620px; }
    .community-bg { background-position: 64% center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
