/* ==============================
   Design Tokens
============================== */

:root {
    --bg: #000;
    --fg: #fff;

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-title: "Montserrat", sans-serif;

    --purple: rgb(185, 79, 255);

    /* Logo */
    --ps-width: 380px;
    --ps-aspect: 1.4 / 1;

    /* Geometry */
    --ps-stroke: 6px;
    --ps-radius: 4px;
    --ps-inset-x: 14%;
    --ps-inset-y: 22%;

    /* Glow */
    --ps-glow-blur: 38px;
    --ps-glow-alpha: 0.9;

    /* Spacing (desktop) */
    --pad-x: 1.5rem;
    --pad-top: 4.5rem;
    --pad-bottom: 4rem;

    /* Type (desktop) */
    --title1-size: 30px;
    --title2-size: 45px;
    --copy-size: 20px;

    /* Rhythm (desktop) */
    --space-title-after: 3.5rem;
    --space-coming-after: 4.5rem;
    --space-desc-after: 4rem;
    --space-year-after: 5rem;
}

/* ==============================
   Reset + Base
============================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

/* ==============================
   Layout
============================== */

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    max-width: 44rem;
    margin: 0 auto;
    padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
    text-align: center;
}

/* ==============================
   Title Block
============================== */

.title-block {
    font-family: var(--font-title);
    margin-bottom: var(--space-title-after);
    text-align: center;
    line-height: 1;
    margin-top: 30px;
}

.title-line {
    text-transform: uppercase;
    letter-spacing: 0.85em;
    font-family: var(--font-title);
}

.title-line-1 {
    font-size: var(--title1-size);
    margin-bottom: 1rem;
    padding-left: 20px;
}

.title-line-1 .thin {
    font-weight: 300;
    opacity: 0.8;
}

.title-line-1 .bold {
    font-weight: 600;
    opacity: 1;
}

.title-line-2 {
    font-size: var(--title2-size);
    font-weight: 600;
    letter-spacing: 0.15em;
}

/* ==============================
   Content Typography
============================== */

.coming-soon {
    font-family: var(--font-title);
    font-size: calc(var(--copy-size) * 0.8);
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: var(--space-coming-after);
}

.description {
    font-family: var(--font-title);
    font-size: var(--copy-size);
    line-height: 1.7;
    font-weight: 400;
    max-width: 550px;
    margin: 1rem auto var(--space-desc-after);
    opacity: 0.82;
}

.year {
    font-family: var(--font-title);
    font-size: var(--copy-size);
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: var(--space-year-after);
}

/* ==============================
   Learn More Button
============================== */

.learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 181px;
    height: 56px;

    background: #000;
    border: 2px solid #fff;
    border-radius: 4px;

    font-family: var(--font-title);
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 0 30px 8px rgba(185, 79, 255, 0.8);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.learn-more:hover {
    box-shadow: 0 0 40px 14px rgba(185, 79, 255, 0.85);
    transform: translateY(-2px);
}

/* ==============================
   PNG Logo
============================== */

.logo-wrap {
    margin-bottom: 1rem;
}

.logo-wrap,
.title-block {
    transition: transform 0.8s cubic-bezier(.22, 1, .36, 1);
}

.logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 0;
}

/* ==============================
   SVG Logo (P·S)
============================== */

.ps-logo {
    width: min(var(--ps-width), 80vw);
    aspect-ratio: var(--ps-aspect);
    margin: 0 auto;
}

.ps-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ps-logo::before,
.ps-logo::after {
    content: none;
}

/* ==============================
   Interest Form
============================== */

.interest-form {
    margin-top: 0.75rem;
    margin-bottom: 6rem;

    opacity: 0;
    transform: translateY(100px);

    transition:
        opacity 1.7s cubic-bezier(.22, 1, .36, 1),
        transform 1.7s cubic-bezier(.22, 1, .36, 1);
}

/* Form appears in contact mode */
.hero.contact-mode .interest-form {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   Form Fields
============================== */

.form-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.form-email {
    flex: 1;
    background: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 0.9rem 1rem;
    color: #fff;
    font-family: var(--font-title);
    font-size: 1rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-email:focus {
    border-color: var(--purple);
    box-shadow: inset 0 0 1px rgba(185, 79, 255, 0.6);
    outline: none;
}

.form-submit {
    width: 120px;
    background: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-title);
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 0 20px 6px rgba(185, 79, 255, 0.7);
}

.form-submit:hover {
    box-shadow: 0 0 35px 12px rgba(185, 79, 255, 0.85);
    transform: translateY(-2px);
}

.form-message {
    width: 100%;
    background: #000;
    border: 2px solid #fff;
    border-radius: 4px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-title);
    font-size: 0.95rem;
    resize: vertical;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-message:focus {
    border-color: var(--purple);
    box-shadow: inset 0 0 1px rgba(185, 79, 255, 0.6);
    outline: none;
}

/* ==============================
   Hero Transition System
============================== */

.hero {
    transition: padding 0s cubic-bezier(.22, 1, .36, 1);
}

/* Fade typography first */
.hero.fade-out .coming-soon,
.hero.fade-out .description,
.hero.fade-out .year,
.hero.fade-out .learn-more {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(.22, 1, .36, 1);
}

/* Collapse spacing smoothly */
.coming-soon,
.description,
.year,
.learn-more {
    overflow: hidden;
    transition:
        opacity 0.6s cubic-bezier(.22, 1, .36, 1),
        max-height 0.6s cubic-bezier(.22, 1, .36, 1),
        margin 0.6s cubic-bezier(.22, 1, .36, 1);
}

/* Phase 1: fade */
.hero.fade-out .coming-soon,
.hero.fade-out .description,
.hero.fade-out .year,
.hero.fade-out .learn-more {
    opacity: 0;
}

/* Phase 2: collapse height */
.hero.contact-mode .coming-soon,
.hero.contact-mode .description,
.hero.contact-mode .year,
.hero.contact-mode .learn-more {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* Move logo + title upward */
.hero.contact-mode {
    padding-top: 10.5rem;
    transition: margin 1.6s cubic-bezier(.22, 1, .36, 1);
}

/* Reduce title spacing in contact mode */
.hero.contact-mode .title-block {
    margin-bottom: 1.25rem;
    transition: margin 0.6s cubic-bezier(.22, 1, .36, 1);
}

/* ==============================
   Mobile Scaling
============================== */

@media (max-width: 520px) {

    .hero {
        padding: clamp(2.25rem, 6vw, 3rem) 1.25rem clamp(2.75rem, 7vw, 3.25rem);
        max-width: 100%;
    }

    .title-block {
        margin-bottom: clamp(1.75rem, 5vw, 2.25rem);
        line-height: 1.55;
    }

    .title-line-1 {
        letter-spacing: 0.86em;
        font-size: clamp(1.05rem, 2.6vw, 1.05rem);
        margin-bottom: clamp(0.5rem, 1.8vw, 0.75rem);
        padding-left: 0.85em;
    }

    .title-line-2 {
        font-size: clamp(1.6rem, 5.4vw, 2.05rem);
        letter-spacing: 0.14em;
    }

    .logo {
        max-width: clamp(220px, 70vw, 300px);
    }

    .logo-wrap {
        margin-bottom: clamp(1rem, 3.2vw, 1.5rem);
    }

    .coming-soon {
        font-size: clamp(0.8rem, 2.8vw, 0.99em);
        margin-bottom: clamp(1.4rem, 4.5vw, 2rem);
    }

    .description {
        font-size: clamp(1rem, 3.2vw, 1.15rem);
        line-height: 1.75;
        max-width: 24rem;
        margin-top: clamp(0.5rem, 2vw, 0.85rem);
        margin-bottom: clamp(1.9rem, 5.5vw, 2.5rem);
    }

    .year {
        font-size: clamp(0.95rem, 2.8vw, 1.05rem);
        margin-bottom: clamp(4.5rem, 9vw, 5.5rem);
    }

    .learn-more {
        font-size: clamp(1.05rem, 3.6vw, 1.2rem);
        padding: 0.8rem clamp(1.75rem, 7vw, 2.2rem);
        box-shadow: 0 0 clamp(14px, 4.5vw, 18px) clamp(3px, 1.2vw, 4px) rgba(185, 79, 255, 0.65);
    }

    .ps-logo {
        width: min(320px, 82vw);
    }

    :root {
        --ps-stroke: 5px;
        --ps-inset: 7%;
        --ps-glow-blur: 20px;
    }
}

/* Extra-small phones (320–360px) */
@media (max-width: 360px) {

    .ps-logo {
        width: min(290px, 86vw);
    }
}
