:root {
    --primary-cyan: #5CE1E6;
    --black: #000000;
    --near-black: #050505;
    --white: #FAFAFA;
    --gray-dim: #404040;
    --gray-border: #1A1A1A;
    --font-main: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --spacing-unit: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/stars.jpg') center/cover no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, #000 75%);
    z-index: 1;
}

#mesh-canvas {
    width: 160px;
    height: 160px;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}

.mark-container {
    perspective: 1000px;
    position: relative;
}

/* Subtle glow beneath the 7 */
.mark-container::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(92, 225, 230, 0.25) 0%, transparent 70%);
    filter: blur(15px);
    z-index: -1;
}

.mark {
    font-size: clamp(56px, 8vw, 80px);
    font-weight: 300;
    line-height: 1;
    margin: 0;
    color: var(--primary-cyan);
    position: relative;
    text-shadow: 0 0 15px rgba(92, 225, 230, 0.2);
}

.degree {
    color: inherit;
    display: inline-block;
    font-size: 0.55em;
    vertical-align: top;
    margin-left: 0.02em;
    margin-top: 0.05em;
    position: relative;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
        text-shadow: 0 0 10px rgba(92, 225, 230, 0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        text-shadow: 0 0 25px rgba(92, 225, 230, 0.9);
    }
}

.tagline {
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    max-width: 600px;
    letter-spacing: -0.01em;
}

.waitlist-form {
    display: flex;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
    width: 100%;
    max-width: 400px;
}

.waitlist-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gray-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.2s ease;
}

.waitlist-form input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.waitlist-form input::placeholder {
    color: var(--gray-dim);
}

.waitlist-form button {
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.waitlist-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.waitlist-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.platform-indicators {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.store-badges {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.store-badge {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.store-badge:hover {
    opacity: 1;
}

.coming-soon {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-dim);
}

/* Moments Section */
.moments {
    background: var(--black);
}

.moment-card {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.proximity-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.moment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.8);
    transition: transform 8s ease-out, filter 0.8s ease;
}

.moment-card:hover .moment-image {
    transform: scale(1.02);
    filter: brightness(0.6) saturate(0.9);
}

.moment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.moment-text {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.moment-statement {
    padding: 20vh 0;
    text-align: center;
    background: var(--black);
}

.moment-statement p {
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.moment-statement .moment-subtle {
    font-size: clamp(14px, 2vw, 24px);
    font-weight: 400;
    color: var(--gray-dim);
    margin-top: calc(var(--spacing-unit) * 2);
}

/* Trust Section */
.trust {
    padding: 15vh 0;
    background: var(--near-black);
    border-top: 1px solid var(--gray-border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 3);
}

.feature-card {
    padding: calc(var(--spacing-unit) * 5);
    border: 1px solid var(--gray-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: rgba(92, 225, 230, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(92, 225, 230, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.icon-wrapper {
    color: var(--primary-cyan);
    margin-bottom: calc(var(--spacing-unit) * 2);
    opacity: 0.9;
}

.feature-card h3 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    letter-spacing: -0.02em;
    color: var(--white);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.footer {
    padding: 10vh 0;
    border-top: 1px solid var(--gray-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/stars.jpg') center/cover no-repeat;
    opacity: 0.5;
    z-index: 0;
}

.footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, #000 80%);
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    position: relative;
    z-index: 2;
}

.footer-mark {
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-cyan);
}

.footer-statement {
    font-size: 20px;
    color: var(--gray-dim);
}

.cta-button {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: calc(var(--spacing-unit) * 2);
}

.cta-button:hover {
    background: var(--white);
    color: var(--black);
}

.footer-tags {
    font-size: 12px;
    color: var(--gray-dim);
    margin-top: calc(var(--spacing-unit) * 4);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--white);
    color: var(--black);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .container {
        padding: 0 calc(var(--spacing-unit) * 3);
    }

    .moment-card {
        height: 70vh;
    }

    .moment-text {
        font-size: clamp(36px, 10vw, 64px);
    }

    .feature-card {
        padding: calc(var(--spacing-unit) * 4);
    }

    .moment-statement {
        padding: 15vh 5vw;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
