/* ===================================
   Optimized CSS - Lightning Fast
   =================================== */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #f7f7f7;
    --text-primary: #1b1b1b;
    --text-secondary: #636363;
    --text-tertiary: #8a8a8a;
    --border-color: #cbcbcb;
    --button-bg: #000000;
    --button-text: #f7f7f7;
    --toast-bg: #0a7542;
    --toast-text: #f7f7f7;
    --error-color: #b2002a;
    --warning-color: #f38629;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    opacity: 0;
    animation: pageLoad 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

/* ===================================
   Header - Sticky
   =================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 26px 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-color);
    contain: layout style;
}

.logo {
    width: 142px;
    height: 28px;
}

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

/* ===================================
   Main Content
   =================================== */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    margin-top: 82px;
}

.content-wrapper {
    max-width: 666px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
    width: 100%;
    contain: layout style paint;
}

/* 3D Logo Render */
.logo-render {
    width: auto;
    height: auto;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    perspective: 1000px;
    max-width: 300px;
    will-change: transform;
    transform: translateZ(0);
}

.logo-render-img {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    position: relative;
    filter: grayscale(100%);
    will-change: opacity;
    transform: translateZ(0);
    opacity: 0;
    animation: logoFadeIn 1.2s ease-out 0.2s forwards;
    backface-visibility: hidden;
    object-fit: contain;
}

/* Hero Text Container */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    margin: -20px 0;
}

.main-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 56px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.38;
    margin: 0;
    filter: blur(15px);
    opacity: 0;
    animation: textBlurReveal 1.2s ease-out 0.5s forwards;
    will-change: filter, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.subtitle {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.38;
    margin: 0;
    filter: blur(12px);
    opacity: 0;
    animation: textBlurReveal 1.2s ease-out 0.8s forwards;
    will-change: filter, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Professional Blur Reveal Animation - No Container Boundaries */
@keyframes textBlurReveal {
    0% {
        filter: blur(15px);
        opacity: 0;
    }
    50% {
        filter: blur(8px);
        opacity: 0.6;
    }
    100% {
        filter: blur(0px);
        opacity: 1;
    }
}

/* Simple Logo Fade In Animation */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Page Load Animation */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/* ===================================
   Signup Section
   =================================== */
.signup-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
    contain: layout style;
}

.signup-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.signup-title {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.signup-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
}

/* ===================================
   Form Styles
   =================================== */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.form-group {
    width: 100%;
    max-width: 496px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-container {
    position: relative;
    width: 100%;
}

.email-input {
    width: 100%;
    padding: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

.email-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.email-input.error {
    border-color: var(--error-color);
}

.cursor-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMlYxOE0xOCAxMEgyIiBzdHJva2U9IiMxYjFiMWIiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.email-input:not(:placeholder-shown) + .cursor-icon {
    opacity: 1;
}

.error-message {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--error-color);
    line-height: 20px;
    display: none;
    transition: all 0.3s ease;
}

.error-message.show {
    display: block;
}

.notify-btn {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--button-text);
    background-color: var(--button-bg);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    width: 100%;
    max-width: 496px;
    cursor: pointer;
    position: relative;
    box-shadow: 
        0px 2px 4px 0px rgba(0, 0, 0, 0.3),
        0px 7px 13px -3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.notify-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    box-shadow: inset 0px -3px 0px 0px rgba(88, 88, 88, 0.2);
}

.notify-btn:hover:not(:disabled) {
    background-color: #222222;
}

.notify-btn:hover:not(:disabled)::before {
    box-shadow: inset 0px -3px 0px 0px rgba(0, 0, 0, 0.3);
}

.notify-btn:active:not(:disabled) {
    background-color: #222222;
    box-shadow: 
        0px 1px 2px 0px rgba(0, 0, 0, 0.4),
        0px 7px 13px -3px rgba(0, 0, 0, 0.2);
}

.notify-btn:active:not(:disabled)::before {
    box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.3);
}

.notify-btn:disabled {
    background-color: #dedede;
    color: var(--button-text);
    cursor: not-allowed;
    box-shadow: 
        0px 1px 2px 0px rgba(0, 0, 0, 0.1),
        0px 7px 13px -3px rgba(0, 0, 0, 0.1);
}

.notify-btn:disabled::before {
    box-shadow: inset 0px -1px 0px 0px rgba(0, 0, 0, 0.1);
}

.notify-btn:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ===================================
   Toast Notification
   =================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    will-change: opacity;
}

.toast-container.show {
    opacity: 1;
    pointer-events: auto;
}

.toast {
    background-color: var(--toast-bg);
    color: var(--toast-text);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 
        0px 4px 12px rgba(0, 0, 0, 0.15),
        0px 2px 4px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 90vw;
    transition: all 0.3s ease;
}

.toast-message {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    white-space: nowrap;
}

.toast.success {
    background-color: var(--toast-bg);
    color: var(--toast-text);
}

.toast.error {
    background-color: var(--warning-color);
    color: var(--text-primary);
}

.toast.duplicate {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* ===================================
   Responsive Design
   =================================== */
@media screen and (max-width: 1024px) {
    .header {
        padding: 40px 60px;
    }
    .main-content {
        margin-top: 74px;
    }
    .logo {
        width: 120px;
        height: 24px;
    }
    .content-wrapper {
        gap: 32px;
    }
    .logo-render {
        max-width: 250px;
    }
    .logo-render-img {
        max-width: 250px;
        max-height: 250px;
    }
    .hero-section {
        gap: 32px;
    }
    .subtitle {
        font-size: 20px;
    }
    .main-title {
        font-size: 48px;
    }
    .signup-title {
        font-size: 16px;
    }
    .signup-subtitle {
        font-size: 13px;
    }
    .form-group {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 32px 24px;
    }
    .main-content {
        margin-top: 66px;
    }
    .logo {
        width: 140px;
        height: 28px;
    }
    .content-wrapper {
        gap: 24px;
        padding: 0 16px;
    }
    .hero-section {
        gap: 24px;
    }
    .logo-render {
        max-width: 200px;
    }
    .logo-render-img {
        max-width: 200px;
        max-height: 200px;
    }
    .subtitle {
        font-size: 18px;
    }
    .main-title {
        font-size: 40px;
    }
    .signup-section {
        gap: 32px;
    }
    .signup-title {
        font-size: 16px;
    }
    .signup-subtitle {
        font-size: 14px;
    }
    .email-input {
        font-size: 14px;
        padding: 12px;
        height: 54px;
    }
    .notify-btn {
        font-size: 14px;
        padding: 12px 18px;
        height: 54px;
    }
    .toast-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    .toast {
        width: 100%;
        padding: 14px 16px;
    }
    .toast-message {
        font-size: 14px;
        white-space: normal;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .header {
        padding: 24px 16px;
    }
    .main-content {
        margin-top: 52px;
    }
    .logo {
        width: 100px;
        height: 20px;
    }
    .content-wrapper {
        gap: 20px;
    }
    .hero-section {
        gap: 20px;
    }
    .logo-render {
        max-width: 160px;
    }
    .logo-render-img {
        max-width: 160px;
        max-height: 160px;
    }
    .subtitle {
        font-size: 16px;
    }
    .main-title {
        font-size: 32px;
    }
    .signup-title {
        font-size: 14px;
    }
    .signup-subtitle {
        font-size: 12px;
    }
    .email-input {
        height: 54px;
    }
    .notify-btn {
        height: 54px;
    }
    .toast-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    .toast {
        padding: 12px 14px;
        width: 100%;
    }
    .toast-message {
        font-size: 13px;
        white-space: normal;
    }
}