:root {
    --navy: #1A2F4A;
    --coral: #FF6B6B;
    --cream: #FFF8F0;
    --deep-navy: #0F1C2E;
    --muted-coral: #FF8A80;
    --shadow-color: rgba(26, 47, 74, 0.3);
}

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

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: linear-gradient(165deg, var(--deep-navy) 0%, #0A1220 50%, #000810 100%);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Atmospheric grain texture */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    animation: grain 0.5s steps(6) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 0); }
    30% { transform: translate(-2%, 2%); }
    40% { transform: translate(0, -2%); }
    50% { transform: translate(2%, 2%); }
    60% { transform: translate(-2%, 0); }
    70% { transform: translate(0, 2%); }
    80% { transform: translate(2%, -2%); }
    90% { transform: translate(-2%, -2%); }
}

/* Spline background */
.spline-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spline-container.absolute {
    position: fixed;
}

.spline-container.w-full {
    width: 100%;
}

.spline-container.h-full {
    height: 100%;
}

.spline-container.top-0 {
    top: 0;
}

.spline-container.left-0 {
    left: 0;
}

.spline-container.-z-10 {
    z-index: 0;
}

#aura-spline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Red/coral overlay to tint the Spline animation */
.red-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 107, 107, 0.2) 0%,
        rgba(255, 107, 107, 0.15) 30%,
        rgba(255, 138, 128, 0.1) 50%,
        rgba(26, 47, 74, 0.2) 80%,
        transparent 100%
    );
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo-container {
    opacity: 0;
    animation: fade-slide-down 1s ease-out 0.2s forwards;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 4px 20px rgba(255, 107, 107, 0.3));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.01em;
    margin: 0;
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content section */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

/* Headline */
.headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.headline-line {
    display: block;
    opacity: 0;
    animation: fade-slide-up 1s ease-out forwards;
}

.headline-line:first-child {
    animation-delay: 0.4s;
    color: rgba(255, 248, 240, 0.5);
    font-weight: 600;
}

.headline-emphasis {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, var(--cream) 0%, var(--muted-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subheadline */
.subheadline {
    margin-bottom: 2.5rem;
}

.subheadline-line {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: rgba(255, 248, 240, 0.6);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fade-slide-up 0.8s ease-out forwards;
}

.subheadline-line:nth-child(1) {
    animation-delay: 0.8s;
}

.subheadline-emphasis {
    animation-delay: 1s;
    color: var(--coral);
    font-weight: 700;
}

/* Revelation section - the layers */
.revelation {
    margin-bottom: 3rem;
    padding-left: 2rem;
    border-left: 2px solid rgba(255, 107, 107, 0.3);
}

.revelation-line {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    color: rgba(255, 248, 240, 0.7);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fade-slide-left 0.8s ease-out forwards;
}

.revelation-line:nth-child(1) { animation-delay: 1.2s; }
.revelation-line:nth-child(2) { animation-delay: 1.4s; }
.revelation-line:nth-child(3) { animation-delay: 1.6s; }

@keyframes fade-slide-left {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mission statement */
.mission {
    margin-bottom: 2rem;
    opacity: 0;
    animation: fade-in 1s ease-out 1.8s forwards;
}

.mission p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--cream);
    font-weight: 400;
}

.highlight {
    color: var(--coral);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--coral), transparent);
    opacity: 0.5;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Coming soon */
.coming-soon {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-style: italic;
    color: rgba(255, 248, 240, 0.5);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fade-in 1s ease-out 2s forwards;
}

/* Email form */
.email-form {
    opacity: 0;
    animation: fade-slide-up 1s ease-out 2.2s forwards;
}

.form-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

/* Override JotForm default styles */
.jotform-form .form-textbox,
.jotform-form input[type="email"],
input[type="email"] {
    flex: 1;
    min-width: 280px;
    padding: 1.2rem 1.5rem !important;
    font-size: 1.1rem !important;
    font-family: 'DM Sans', sans-serif !important;
    background: rgba(255, 248, 240, 0.05) !important;
    border: 2px solid rgba(255, 248, 240, 0.1) !important;
    border-radius: 12px !important;
    color: var(--cream) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-sizing: border-box !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

.jotform-form .form-textbox::placeholder,
.jotform-form input[type="email"]::placeholder,
input[type="email"]::placeholder {
    color: rgba(255, 248, 240, 0.4) !important;
}

.jotform-form .form-textbox:focus,
.jotform-form input[type="email"]:focus,
input[type="email"]:focus {
    outline: none !important;
    background: rgba(255, 248, 240, 0.08) !important;
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1),
                0 8px 24px rgba(255, 107, 107, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Hide JotForm labels and other elements */
.jotform-form .form-label,
.jotform-form .form-required {
    display: none !important;
}

.jotform-form .form-line {
    margin: 0 !important;
    padding: 0 !important;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--coral) 0%, var(--muted-coral) 100%);
    color: var(--deep-navy);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3),
                0 0 0 0 rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4),
                0 0 0 8px rgba(255, 107, 107, 0.1);
}

.cta-button:active {
    transform: translateY(-1px);
}

.button-text,
.button-arrow {
    position: relative;
    z-index: 1;
}

.button-arrow {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1.5rem;
    }

    .logo-container {
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .content {
        padding: 0;
    }

    .revelation {
        padding-left: 1rem;
    }

    .form-group {
        flex-direction: column;
    }

    input[type="email"],
    .cta-button {
        width: 100%;
        min-width: 100%;
    }

    .layer-1,
    .layer-2,
    .layer-3 {
        filter: blur(60px);
    }
}

@media (max-width: 480px) {
    .headline {
        margin-bottom: 2rem;
    }

    .revelation {
        margin-bottom: 2rem;
    }

    .mission {
        margin-bottom: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--coral);
    color: var(--deep-navy);
}

::-moz-selection {
    background: var(--coral);
    color: var(--deep-navy);
}
