/* =================================
   Cheshire Studio - Minimal Design
   ================================= */

:root {
    /* Colors */
    --color-white: #ffffff;
    --color-grey-bg: rgba(128, 128, 128, 0.8);
    --color-grey-border: #808080;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Borders & Radius */
    --radius-sm: 4px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* =================================
   Reset & Base Styles
   ================================= */

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

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

body {
    font-family: var(--font-primary);
    color: var(--color-white);
    background-color: #000;
    overflow: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* =================================
   Background Layers
   ================================= */

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/cheshire_cat_snow.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    opacity: 1;
    transition: opacity 1s ease;
}

.background-image.fade-out {
    opacity: 0;
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1s ease;
}

.background-video.loaded {
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

/* =================================
   Main Content
   ================================= */

.content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--spacing-lg);
    padding-right: 0;
    padding-bottom: 0;
}

/* =================================
   Info Block (Bottom-Right)
   ================================= */

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 250px;
    position: relative;
}

/* Brand Text (Lines 1-2) */
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
}

.brand-line {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.3;
    white-space: nowrap;
}

.tagline-line {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.3;
    white-space: nowrap;
    font-style: italic;
}

/* Bottom Row: Icons + Alice Image (Lines 3-4) */
.bottom-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* Reduced from 1rem to move icons closer to Alice */
    margin-top: var(--spacing-sm);
    width: 100%;
}

/* Icon Links (Left side, stacked) */
.icon-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.icon-link {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    padding: 0;
}

.icon-link svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    fill: var(--color-white);
    stroke: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transition: all var(--transition-medium);
}

.icon-link:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

/* Alice Image (Right side) */
.alice-image-container {
    width: 220px;
    height: 120px;
    /* Increased from 100px to show more of Alice */
    border: none;
    overflow: visible;
    flex-shrink: 0;
}

.alice-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    /* Shift image down to prevent head-cut */
    display: block;
    border: none;
}

/* Veo Cover (Snowflake) */
.veo-cover {
    position: fixed;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 48px;
    /* Increased from 32px to better cover VEO */
    height: 48px;
    color: var(--color-white);
    opacity: 0.9;
    z-index: 100;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.veo-cover svg {
    width: 100%;
    height: 100%;
}

/* =================================
   Newsletter Modal
   ================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid var(--color-grey-border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    opacity: 0.7;
}

.modal-close:hover {
    opacity: 1;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    font-weight: 600;
}

.modal-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* =================================
   Newsletter Form
   ================================= */

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: left;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-group .required {
    color: #ff6b6b;
}

.form-input {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-submit {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    margin-top: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
    width: 100%;
}

.form-submit:hover {
    background: linear-gradient(135deg, #ae6cf0 0%, #9d4edd 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

.form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(157, 78, 221, 0.4);
}

.response {
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
}

#mce-error-response {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

#mce-success-response {
    background: rgba(68, 217, 132, 0.2);
    border: 1px solid #44d984;
    color: #44d984;
}

/* =================================
   Responsive Design
   ================================= */

@media (max-width: 768px) {
    .content {
        padding: var(--spacing-md);
    }

    .info-block {
        width: 200px;
    }

    .brand-line {
        font-size: 1rem;
    }

    .tagline-line {
        font-size: 0.75rem;
    }

    .icon-link {
        width: 40px;
        height: 40px;
    }

    .icon-link svg {
        width: 20px;
        height: 20px;
    }

    .alice-image-container {
        width: 160px;
        height: 80px;
        border-width: 2px;
    }

    .modal-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .content {
        padding: var(--spacing-sm);
    }

    .info-block {
        width: 180px;
    }

    .brand-line {
        font-size: 0.875rem;
    }

    .tagline-line {
        font-size: 0.7rem;
    }

    .icon-link {
        width: 36px;
        height: 36px;
    }

    .icon-link svg {
        width: 18px;
        height: 18px;
    }

    .alice-image-container {
        width: 144px;
        height: 72px;
    }
}

/* =================================
   Accessibility
   ================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}