@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #080a10;
    --surface: #11151e;
    --surface-light: #1a202b;
    --border: #2b303c;
    --text: #f7f3ec;
    --muted: #adb1bc;
    --red: #d92732;
    --red-hover: #b91e29;
    --gold: #ffc15a;
    --font-display: 'Barlow Condensed', Impact, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

/* NAVIGATION */

.theatre-accent {
    height: 2px;
    background: linear-gradient(90deg, #ad1728, #ffc15a, #ad1728);
}

.navbar,
.theatre-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    min-height: 68px;
    padding: 10px clamp(24px, 5vw, 85px);
    background: rgba(7, 9, 14, .97);
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1;
    white-space: nowrap;
}

.brand-logo__improv {
    color: #fff5e6;
}

.brand-logo__timer {
    color: var(--gold);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
}

.navbar nav a {
    color: #dedee4;
    font-size: 13px;
    font-weight: 600;
    transition: color .2s;
}

.navbar nav a:hover {
    color: var(--gold);
}

.navbar nav .nav-login {
    padding: 10px 16px;
    background: var(--red);
    color: white;
    border-radius: 7px;
}

.navbar nav .nav-login:hover {
    background: var(--red-hover);
    color: white;
}

/* STAGE HERO */

.stage-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 900px;
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.32)),
        url('/static/images/improvtimer-stage-hero.webp')
        center center / cover no-repeat;
}

.stage-curtain,
.stage-lights,
.stage-floor {
    display: none;
}

.stage-hero__content {
    position: relative;
    z-index: 2;
    padding: 90px 30px;
    text-shadow: 0 4px 22px rgba(0,0,0,.65);
}

.stage-brand {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: .82;
    text-transform: uppercase;
    transform: rotate(-3deg);
    filter: drop-shadow(3px 7px 3px rgba(0,0,0,.6));
}

.stage-brand__improv {
    color: #fff5e6;
    font-size: clamp(82px, 12vw, 190px);
}

.stage-brand__timer {
    color: var(--gold);
    font-size: clamp(100px, 14vw, 220px);
}

.stage-tagline {
    margin: 32px 0 26px;
    color: #fff4e7;
    font-size: clamp(12px, 1.5vw, 19px);
    font-weight: 700;
    letter-spacing: .18em;
}

.stage-actions,
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* BUTTONS */

.btn,
.theatre-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 13px 22px;
    border-radius: 7px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}

.btn:hover,
.theatre-button:hover {
    transform: translateY(-2px);
}

.btn-primary,
.theatre-button--red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.btn-primary:hover,
.theatre-button--red:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

.btn-secondary,
.theatre-button--outline {
    background: rgba(7,9,14,.7);
    border-color: rgba(255,255,255,.7);
    color: white;
}

.btn-secondary:hover,
.theatre-button--outline:hover {
    background: rgba(255,255,255,.14);
}

.stage-play {
    color: var(--gold);
}

/* INTRO SECTION */

.hero--intro {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 60px;
    min-height: 460px;
    padding: 90px clamp(25px, 7vw, 120px);
    background: #0c1018;
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--text);
}

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.08;
}

.hero--intro h1 {
    margin: 18px 0 22px;
    font-size: clamp(48px, 5vw, 76px);
}

.hero--intro h1 span {
    color: var(--gold);
}

.hero--intro p {
    max-width: 550px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

/* TIMER */

.timer-preview {
    padding: 45px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(0,0,0,.3);
}

.timer-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.timer-digits {
    color: var(--gold);
    font-family: var(--font-body);
    font-size: clamp(65px, 8vw, 115px);
    font-weight: 800;
    letter-spacing: -.07em;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.timer-status {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

/* CONTENT SECTIONS */

.section {
    padding: 90px clamp(25px, 7vw, 120px);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.section h2 {
    font-size: clamp(38px, 4vw, 58px);
    margin: 15px 0 20px;
}

.section p {
    color: var(--muted);
    line-height: 1.8;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .2s, transform .2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: #7d5b3c;
}

.feature-icon {
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 30px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 12px;
}

.feature-card p {
    margin: 0;
    font-size: 14px;
}

.cloud-section {
    background: #11141e;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cloud-section > div {
    max-width: 760px;
}

.cloud-section .btn {
    margin-top: 18px;
}

.final-cta {
    text-align: center;
    background: #0a0d14;
}

.final-cta .btn {
    margin-top: 20px;
}

/* FOOTER */

.theatre-footer,
footer {
    padding: 35px 20px;
    text-align: center;
    color: var(--muted);
    background: #07090e;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

/* MOBILE */

@media (max-width: 1050px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .hero--intro {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 70px 25px;
    }

    .stage-hero {
        min-height: 650px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .brand-logo {
        font-size: 27px;
    }

    .stage-hero {
        min-height: 580px;
    }

    .stage-brand__improv {
        font-size: clamp(55px, 12vw, 90px);
    }

    .stage-brand__timer {
        font-size: clamp(68px, 15vw, 110px);
    }

    .stage-tagline {
        letter-spacing: .09em;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 65px 24px;
    }

    .timer-digits {
        font-size: 65px;
    }
}

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

/* SECOND SECTION: BACKSTAGE PHOTOGRAPH */

.hero--intro {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 90px clamp(30px, 7vw, 120px);
    background:
        linear-gradient(
            90deg,
            rgba(4, 6, 12, .93) 0%,
            rgba(4, 6, 12, .78) 34%,
            rgba(4, 6, 12, .25) 67%,
            rgba(4, 6, 12, .05) 100%
        ),
        url('/static/images/improvtimer-backstage.webp')
        center center / cover no-repeat;
}

.hero--intro .hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero--intro h1 {
    font-size: clamp(54px, 5.5vw, 88px);
}

.hero--intro p {
    color: #f0e9e4;
    max-width: 490px;
    text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

/* Hide the old timer preview in this section */
.hero--intro .timer-preview {
    display: none;
}

@media (max-width: 800px) {
    .hero--intro {
        min-height: 600px;
        padding: 70px 28px;
        background-position: center, 63% center;
    }
}



/* SECOND SECTION - SPLIT BACKSTAGE LAYOUT */

.hero--intro {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: stretch;
    gap: 0;
    min-height: 850px;
    padding: 0;
    background: #080b12;
    border-bottom: 1px solid #252a34;
}

.hero--intro .hero-content {
    width: 100%;
    max-width: none;
    align-self: center;
    padding: 85px clamp(32px, 5vw, 105px);
    position: relative;
    z-index: 1;
}

.hero--intro h1 {
    font-size: clamp(48px, 4.5vw, 78px);
    margin: 18px 0 22px;
}

.hero--intro .intro-description {
    color: #d2d0d5;
    font-size: 16px;
    line-height: 1.8;
    max-width: 550px;
    margin-bottom: 34px;
}

.intro-benefits {
    display: grid;
    gap: 19px;
    margin-bottom: 35px;
}

.intro-benefit {
    display: flex;
    align-items: center;
    gap: 17px;
}

.benefit-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    border-radius: 50%;
    background: #171b23;
    color: #ffc15a;
    font-size: 25px;
}

.intro-benefit h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff6e9;
}

.hero--intro .intro-benefit p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #aeb1bc;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.intro-photo {
    min-height: 850px;
    background-image:
        linear-gradient(
            90deg,
            #080b12 0%,
            rgba(8,11,18,.25) 12%,
            transparent 30%
        ),
        url('/static/images/improvtimer-backstage.webp');
    background-position: center, center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 950px) {
    .hero--intro {
        grid-template-columns: 1fr;
    }

    .hero--intro .hero-content {
        padding: 65px 30px;
    }

    .intro-photo {
        min-height: 480px;
        background-position: center, center 42%;
    }
}

@media (max-width: 600px) {
    .hero--intro h1 {
        font-size: 52px;
    }

    .intro-photo {
        min-height: 350px;
    }
}

/* Backstage image: show more of the full scene */
.intro-photo {
    background-color: #080b12;
    background-size: auto, auto 90%;
    background-position: center, center right;
    background-repeat: no-repeat;
}


/* BACKSTAGE SECTION - SEAMLESS SPLIT DESIGN */

.hero--intro {
    grid-template-columns: 48% 52%;
    min-height: 850px;
    background: #080b12;
    overflow: hidden;
}

.intro-photo {
    width: 100%;
    min-height: 850px;

    background-image:
        linear-gradient(
            90deg,
            #080b12 0%,
            rgba(8,11,18,.65) 12%,
            rgba(8,11,18,0) 35%
        ),
        url('/static/images/improvtimer-backstage.webp');

    background-size: 100% 100%, cover;
    background-position: center, center 50%;
    background-repeat: no-repeat;
}

@media (max-width: 950px) {
    .hero--intro {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .intro-photo {
        min-height: 550px;
        background-position: center, center 45%;
    }
}

/* Backstage section final adjustments */
@media (min-width: 951px) {
    .hero--intro {
        min-height: 920px;
    }

    .intro-photo {
        min-height: 920px;
        background-position: center, center 60%;
    }

    .hero--intro .hero-content {
        padding-top: 105px;
        padding-bottom: 105px;
    }
}

/* Backstage photograph: preserve microphone and stool */
@media (min-width: 951px) {
    .hero--intro {
        min-height: 920px;
    }

    .intro-photo {
        min-height: 920px;
        background-size: 100% 100%, auto 100%;
        background-position: center, right center;
        background-color: #080b12;
    }
}

/* Better proportions for the portrait backstage photo */
@media (min-width: 951px) {
    .hero--intro {
        grid-template-columns: 60% 40%;
        min-height: 850px;
    }

    .intro-photo {
        min-height: 850px;
        background-size: 100% 100%, cover;
        background-position: center, center top;
    }

    .hero--intro .hero-content {
        padding-top: 85px;
        padding-bottom: 85px;
    }
}
