@import url('/static/css/root.css');

/* Loading state */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    transition: opacity 0.4s ease-out;
}

body.loading .loading-overlay {
    opacity: 1;
}

body:not(.loading) .loading-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Disable all animations while loading */
body.loading * {
    animation-play-state: paused !important;
}

body.loading .logo,
body.loading .landing-card,
body.loading .floating-icon,
body.loading .landing-title,
body.loading .landing-subtitle,
body.loading .waitlist-form {
    opacity: 0 !important;
}

/* Force animations to restart when loading completes */
body:not(.loading) * {
    animation-play-state: running !important;
}

body {
    background-image: url('/static/images/blue_noise-min.jpg');
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
    overflow-x: hidden;
}

/* overlay yellow noise on top of blue background for animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/yellow_noise-min.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
    transform: translate(0, 0);
    animation: yellowNoiseMove 21.8s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

/* Keyframes for yellow overlay movement */
@keyframes yellowNoiseMove {
    0%    { transform: translate(0px, 0px); }
    5%    { transform: translate(40px, 30px); }
    10%   { transform: translate(80px, 60px); }
    15%   { transform: translate(40px, 80px); }
    20%   { transform: translate(0px, 60px); }
    25%   { transform: translate(-40px, 40px); }
    30%   { transform: translate(-80px, 60px); }
    35%   { transform: translate(-120px, 30px); }
    40%   { transform: translate(-100px, 0px); }
    45%   { transform: translate(-80px, -30px); }
    50%   { transform: translate(-40px, -60px); }
    55%   { transform: translate(0px, -80px); }
    60%   { transform: translate(40px, -60px); }
    65%   { transform: translate(80px, -30px); }
    70%   { transform: translate(120px, 0px); }
    75%   { transform: translate(80px, 30px); }
    80%   { transform: translate(40px, 60px); }
    85%   { transform: translate(0px, 80px); }
    90%   { transform: translate(-40px, 60px); }
    95%   { transform: translate(-80px, 30px); }
    100%  { transform: translate(0px, 0px); }
    106%  { transform: translate(10px, 10px); }
    112%  { transform: translate(-8px, 12px); }
    118%  { transform: translate(-12px, -10px); }
    124%  { transform: translate(8px, -8px); }
    130%  { transform: translate(0px, 0px); }
    136%  { transform: translate(7px, 6px); }
    142%  { transform: translate(-6px, 7px); }
    148%  { transform: translate(-7px, -6px); }
    154%  { transform: translate(6px, -7px); }
    160%  { transform: translate(0px, 0px); }
    165%  { transform: translate(-80px, 30px); }
    170%  { transform: translate(-120px, 0px); }
    175%  { transform: translate(-80px, -30px); }
    180%  { transform: translate(-40px, -60px); }
    185%  { transform: translate(0px, -80px); }
    190%  { transform: translate(40px, -60px); }
    195%  { transform: translate(80px, -30px); }
    200%  { transform: translate(0px, 0px); }
}

/* Landing page layout */
.header {
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: "all-round-gothic", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 36px;
    color: var(--text-dark-color);
    letter-spacing: 0.025em;
    cursor: default;
    animation: fadeInDown 0.8s ease-out;
}

.landing-page {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90vw;
    height: 90%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    animation: fadeIn 0.6s ease-out;
}

.visual-area {
    flex: 0 0 55%;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.notion-icon {
    top: 25%;
    left: 20%;
    opacity: 0;
    animation: fadeInScaleRotateNeg5 0.6s ease-out 0.2s forwards, float-1 6s ease-in-out 0.8s infinite;
}

.gmail-icon {
    top: 40%;
    right: 10%;
    opacity: 0;
    animation: fadeInScaleRotate3 0.6s ease-out 0.3s forwards, float-2 8s ease-in-out 0.9s infinite;
}

.docs-icon {
    top: 30%;
    left: 40%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.4s forwards, float-3 7s ease-in-out 1s infinite;
}

.chrome-icon {
    top: 18%;
    right: 24%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.5s forwards, float-4 9s ease-in-out 1.1s infinite;
}

.slack-icon {
    top: 58%;
    left: 48%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.6s forwards, float-5 7.5s ease-in-out 1.2s infinite;
}

.x-icon {
    top: 63%;
    left: 30%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.7s forwards, float-6 8.5s ease-in-out 1.3s infinite;
}

.message-icon {
    top: 60%;
    right: 25%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.8s forwards, float-7 6.5s ease-in-out 1.4s infinite;
}

.calendar-icon {
    top: 60%;
    left: 10%;
    opacity: 0;
    animation: fadeInScaleRotateNeg3 0.6s ease-out 0.9s forwards, float-8 7s ease-in-out 1.5s infinite;
}

/* Floating animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(-3deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-4 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-5 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-6 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-7 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-8 {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.landing-title {
    font-size: clamp(32px, 6vw, 64px);
    color: var(--text-dark-color);
    text-align: center;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400;
    margin: 1.25rem 0 0 0;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.25s forwards;
}

.landing-subtitle {
    font-size: clamp(18px, 2.2vw, 21px);
    color: #5e5a5ae5;
    text-align: center;
    margin-top: 1rem;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.7s forwards;
}

/* Hide subtitle break by default */
.subtitle-break {
    display: none;
}

/* Hide title break by default */
.title-break {
    display: none;
}

/* Waitlist form */
.waitlist-form {
    display: flex;
    gap: 10px;
    margin-top: 40px;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.9s forwards;
}

.waitlist-success {
    width: fit-content;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: green;
    font-size: 14px;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400;
    margin-top: 10px;
    width: 100%;
}

.waitlist-success .success-dot,
.waitlist-success .success-text {
    color: green;
}

.success-dot {
    font-size: 16px;
    line-height: 1;
}

.waitlist-input {
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-dark-color);
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    width: 240px;
    outline: none;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    font-weight: 400;
}

.waitlist-input::placeholder {
    color: var(--text-dark-color);
    opacity: 0.8;
}

.waitlist-button {
    display: flex;
    align-items: center;

    padding: 10px 42px 10px 20px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.4);
    color: var(--text-dark-color);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 400;
    font-family: "helvetica-neue-lt-pro", sans-serif;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    position: relative;
    flex-shrink: 0;
}

.waitlist-button:hover {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.waitlist-button:hover * {
    cursor: pointer;
}

.waitlist-button span {
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.waitlist-button svg {
    fill: var(--text-dark-color);
    opacity: 0.8;
    position: absolute;
    right: 20px;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.waitlist-button svg.arrow {
    opacity: 1;
    transform: translateX(0);
}

.waitlist-button svg.arrow-hover {
    opacity: 0;
    transform: translateX(-2px);
}

.waitlist-button:hover svg.arrow {
    opacity: 0;
    transform: translateX(-2px);
}

.waitlist-button:hover svg.arrow-hover {
    opacity: 1;
    transform: translateX(0);
}

/* Media queries */
@media screen and (max-width: 1050px) {
    .floating-icon {
        width: 96px; /* 80% of 120px */
    }
    
    .chrome-icon {
        top: 25%;
        right: 27%;
    }
}

@media screen and (max-width: 850px) {
    .message-icon {
        top: 65%;
        right: 20%;
    }
}

@media screen and (max-width: 800px) {
    .subtitle-break {
        display: inline;
    }
}

@media screen and (max-width: 715px) {
    .floating-icon {
        width: 72px; /* 75% of 96px */
    }
    
    .notion-icon {
        top: 30%; /* +5% */
    }
    
    .gmail-icon {
        top: 45%; /* +5% */
    }
    
    .docs-icon {
        top: 35%; /* +5% */
    }
    
    .chrome-icon {
        top: 30%; /* +5% from the 1050px media query value */
    }
    
    .slack-icon {
        top: 63%; /* +5% */
    }
    
    .x-icon {
        top: 68%; /* +5% */
    }
    
    .message-icon {
        top: 70%; /* +5% from the 850px media query value */
    }
    
    .calendar-icon {
        top: 65%; /* +5% */
    }
}

@media screen and (max-width: 635px) {
    .waitlist-input {
        width: 80%;
        font-size: 14px;
    }
    
    .waitlist-form {
        gap: 10px;
    }

    .waitlist-button {
        font-size: 13px;
        padding-left: 10px;
        padding-right: 30px;
    }
    
    .waitlist-button svg {
        right: 10px;
    }
    
    .waitlist-success {
        margin-top: 10px;
        text-align: left;
    }
}

@media screen and (max-width: 550px) {
    .message-icon {
        right: 10%;
    }

    .slack-icon {
        left: 50%;
    }
}

@media screen and (max-width: 505px) {
    .landing-card {
        width: 95vw;
        height: 95%;
    }
}

@media screen and (max-width: 470px) {
    .landing-subtitle {
        font-size: 16px;
    }

    .waitlist-input {
        font-size: 13px;
    }
}

@media screen and (max-width: 450px) {
    .floating-icon {
        width: 61px; /* 85% of 72px */
    }
    
    /* More organic, floaty layout for small screens */
    .notion-icon {
        top: 70%;
        left: 15%;
    }
    
    .chrome-icon {
        top: 25%;
        right: 20%;
    }
    
    .docs-icon {
        top: 32%;
        left: 35%;
    }
    
    .gmail-icon {
        top: 49%;
        right: 14%;
    }
    
    .x-icon {
        top: 42%;
        left: 12%;
    }
    
    .slack-icon {
        top: 53%;
        left: 42%;
    }
    
    .message-icon {
        top: 74%;
        right: 15%;
    }
    
    .calendar-icon {
        top: 78%;
        left: 40%;
    }
}

@media screen and (max-width: 445px) {
    .landing-title {
        font-size: 28px;
    }
}

/* Fade in animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScaleRotateNeg5 {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-5deg);
    }
}

@keyframes fadeInScaleRotate3 {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(3deg);
    }
}

@keyframes fadeInScaleRotateNeg3 {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(-3deg);
    }
}