/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #db1a1f;
    --red-light: #ff4d52;
    --black: #0a0a0a;
    --white: #ffffff;
    --cream: #fdfcfb;
    --gray-300: #d1cdc8;
    --gray-400: #9e9a95;
    --gray-500: #6b6763;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--black);
    margin: 0;
}


/* ===== Mouse Glow ===== */
.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(219, 26, 31, 0.08) 0%, rgba(219, 26, 31, 0.03) 35%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.mouse-glow.visible {
    opacity: 1;
}

/* ===== Dot Pattern ===== */
.dot-pattern {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--black) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.06;
}

/* ===== Logo Marquee ===== */
.logo-marquee {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(253, 252, 251, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 48px;
    width: max-content;
    animation: logo-scroll 30s linear infinite;
}

.marquee-logo {
    height: clamp(54px, 12vw, 76px);
    width: auto;
    filter: invert(1);
    flex-shrink: 0;
}

@keyframes logo-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ===== Landing ===== */
.landing {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 60px;
}

.landing-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
}

.landing-content {
    text-align: center;
    max-width: 560px;
    width: 100%;
}

.landing-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: var(--black);
    margin-bottom: 20px;
}

.landing-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--red);
}

.landing-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 440px;
    margin: 0 auto 40px;
}

.landing-highlight {
    text-decoration: none;
    position: relative;
    display: inline;
}

.landing-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='6' viewBox='0 0 120 6' fill='none'%3E%3Cpath d='M1 4C8 2 14 3.5 20 2.5C26 1.5 32 3.8 38 2.2C44 0.6 50 4.2 56 3C62 1.8 68 4.5 74 2.8C80 1.1 86 3.6 92 2.4C98 1.2 104 4 110 2.6C116 1.2 119 3 119 3' stroke='%233d3a37' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 120px 6px;
}

/* ===== Badge ===== */
.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.landing-badge svg {
    flex-shrink: 0;
}

/* ===== Form ===== */
.landing-form {
    max-width: 440px;
    margin: 0 auto;
}

.landing-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.landing-input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 1.5px solid var(--gray-300);
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--black);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
}

.landing-input-group input::placeholder {
    color: var(--gray-400);
}

.landing-input-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(219, 26, 31, 0.1);
}

.landing-btn {
    flex-shrink: 0;
    padding: 16px 28px;
    white-space: nowrap;
    border: none;
    border-radius: 100px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(219, 26, 31, 0.25);
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.landing-btn:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(219, 26, 31, 0.35);
}

.landing-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.landing-feedback {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
    display: none;
}

.landing-feedback.success {
    display: block;
    color: #16a34a;
}

.landing-feedback.error {
    display: block;
    color: var(--red);
}

.landing-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

/* ===== Phone Mockup ===== */
.landing-phone {
    flex-shrink: 0;
    perspective: 1000px;
}

.phone {
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 42px;
    padding: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 50px 100px -20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    width: 240px;
    height: 520px;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
}

.phone-placeholder span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===== Footer ===== */
.landing-footer {
    position: absolute;
    bottom: 24px;
    text-align: center;
}

.landing-footer p {
    font-size: 13px;
    color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .landing {
        padding: 90px 24px 48px;
    }

    .landing-inner {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .landing-content {
        text-align: center;
    }

    .landing-title {
        font-size: clamp(28px, 8vw, 40px);
        letter-spacing: -1.5px;
    }

    .landing-subtitle {
        font-size: 16px;
        margin: 0 auto 32px;
    }

    .landing-badge {
        margin-bottom: 24px;
    }

    .landing-form {
        margin: 0 auto;
    }

    .landing-input-group {
        flex-direction: column;
    }

    .landing-btn {
        width: 100%;
    }

    .phone-screen {
        width: 200px;
        height: 434px;
    }

    .phone-frame {
        border-radius: 36px;
        padding: 10px;
    }

    .phone-frame::before {
        width: 80px;
        height: 24px;
        top: 10px;
    }

    .phone-screen {
        border-radius: 28px;
    }
}

@media (max-width: 380px) {
    .landing {
        padding: 76px 20px 40px;
    }

    .landing-title {
        font-size: 26px;
    }

    .landing-subtitle {
        font-size: 15px;
    }

    .landing-input-group input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .landing-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}
