/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Ethereal portal theme with soft pastels */
    --background: oklch(0.99 0.005 85);
    --foreground: oklch(0.35 0.02 85);
    --card: oklch(0.98 0.008 85);
    --card-foreground: oklch(0.35 0.02 85);
    --primary: oklch(0.65 0.08 160);
    --primary-foreground: oklch(0.99 0.005 85);
    --secondary: oklch(0.92 0.015 85);
    --muted: oklch(0.94 0.012 85);
    --muted-foreground: oklch(0.55 0.03 85);
    --border: oklch(0.9 0.015 85);
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: oklch(from var(--background) l c h / 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid oklch(from var(--border) l c h / 0.3);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-logo:hover {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--foreground);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -10;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(from var(--background) l c h / 0.8),
        oklch(from var(--background) l c h / 0.5),
        oklch(from var(--background) l c h / 0.8)
    );
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: -10;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: oklch(from var(--primary) l c h / 0.1);
    filter: blur(3rem);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-text {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 7rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.25rem;
    color: oklch(from var(--muted-foreground) l c h / 0.8);
}

.hero-button-container {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.hero-button {
    position: relative;
    overflow: hidden;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    display: inline-block;
}

.button-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(from var(--primary) l c h / 0.2),
        oklch(from var(--primary) l c h / 0.4),
        oklch(from var(--primary) l c h / 0.2)
    );
    filter: blur(1.5rem);
    transition: filter 0.7s;
}

.hero-button:hover .button-glow {
    filter: blur(2rem);
}

.button-content {
    position: relative;
    padding: 5rem 4rem;
    border: 2px solid oklch(from var(--primary) l c h / 0.3);
    background: oklch(from var(--background) l c h / 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.5s;
}

.hero-button:hover .button-content {
    border-color: oklch(from var(--primary) l c h / 0.6);
}

.button-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--foreground);
    transition: color 0.5s;
}

.hero-button:hover .button-text {
    color: var(--primary);
}

/* Portal Cards Section */
.portal-cards-section {
    padding: 8rem 1.5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3.125rem;
    }
}

.portal-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .portal-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portal-card {
    position: relative;
    overflow: hidden;
    transition: all 0.7s;
}

.portal-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.portal-card.locked:hover .portal-card-inner {
    border-color: oklch(from var(--border) l c h / 0.5);
    transform: none;
}

.portal-card.locked:hover .portal-image {
    transform: none;
}

.portal-card-inner {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--card);
    border: 1px solid oklch(from var(--border) l c h / 0.5);
    transition: all 0.5s;
}

.portal-card.active:hover .portal-card-inner {
    border-color: oklch(from var(--primary) l c h / 0.3);
}

.portal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s;
}

.portal-card.locked .portal-image {
    filter: grayscale(100%);
    opacity: 0.4;
}

.portal-card.active:hover .portal-image {
    transform: scale(1.05);
}

.portal-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(from var(--primary) l c h / 0),
        oklch(from var(--primary) l c h / 0.1),
        oklch(from var(--primary) l c h / 0.2)
    );
    opacity: 0;
    transition: opacity 0.7s;
}

.portal-card.active:hover .portal-glow {
    opacity: 1;
}

.portal-card.locked:hover .portal-glow {
    opacity: 0;
}

.portal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent,
        transparent,
        oklch(from var(--background) l c h / 0.9)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.portal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.portal-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.portal-button {
    position: relative;
    overflow: hidden;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    text-decoration: none;
    display: inline-block;
}

.portal-button-glow {
    position: absolute;
    inset: 0;
    background: oklch(from var(--primary) l c h / 0.2);
    filter: blur(1rem);
    transition: filter 0.5s;
}

.portal-button:hover .portal-button-glow {
    filter: blur(1.5rem);
}

.portal-button-content {
    position: relative;
    padding: 0.75rem 2rem;
    border: 1px solid oklch(from var(--primary) l c h / 0.4);
    background: oklch(from var(--background) l c h / 0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.portal-button:hover .portal-button-content {
    border-color: oklch(from var(--primary) l c h / 0.6);
}

.portal-button-content span {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--foreground);
}

.portal-button.locked {
    cursor: not-allowed;
    pointer-events: none;
}

.portal-button.locked .portal-button-content {
    border-color: oklch(from var(--border) l c h / 0.3);
    background: oklch(from var(--muted) l c h / 0.5);
    opacity: 0.6;
}

.portal-button.locked .portal-button-content span {
    color: oklch(from var(--muted-foreground) l c h / 0.5);
}

.portal-lock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.lock-icon {
    width: 4rem;
    height: 4rem;
    border: 2px solid oklch(from var(--muted-foreground) l c h / 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(from var(--background) l c h / 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px oklch(from var(--foreground) l c h / 0.1);
}

.lock-svg {
    width: 2rem;
    height: 2rem;
    color: oklch(from var(--muted-foreground) l c h / 0.6);
}

/* About Section */
.about-section {
    padding: 6rem 1.5rem;
}

.about-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-note {
    font-size: 1rem;
}

/* Universal Portals Section */
.universal-portals-section {
    padding: 8rem 1.5rem;
    background: oklch(from var(--muted) l c h / 0.3);
}

.universal-portals-circle {
    position: relative;
    aspect-ratio: 1;
    max-width: 48rem;
    margin: 0 auto;
}

.circle-border {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-border::before {
    content: '';
    width: 75%;
    height: 75%;
    border: 1px solid oklch(from var(--primary) l c h / 0.2);
    border-radius: 50%;
}

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

.portal-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.portal-glow-line {
    width: 0.75rem;
    height: 3rem;
    background: linear-gradient(
        to bottom,
        oklch(from var(--primary) l c h / 0.6),
        oklch(from var(--primary) l c h / 0.3),
        transparent
    );
    filter: blur(0.25rem);
    transition: filter 0.5s;
}

.portal-item:hover .portal-glow-line {
    filter: blur(0.5rem);
}

.portal-label {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
    white-space: nowrap;
    transition: color 0.3s;
}

.portal-item:hover .portal-label {
    color: var(--foreground);
}

.universal-portals-note {
    text-align: center;
    color: var(--muted-foreground);
    margin-top: 4rem;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 1.5rem;
}

.cta-button {
    position: relative;
    overflow: hidden;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 64rem;
    margin: 0 auto;
    text-decoration: none;
}

.cta-button-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        oklch(from var(--primary) l c h / 0.1),
        oklch(from var(--primary) l c h / 0.3),
        oklch(from var(--primary) l c h / 0.1)
    );
    filter: blur(2rem);
    transition: filter 0.7s;
}

.cta-button:hover .cta-button-glow {
    filter: blur(3rem);
}

.cta-button-content {
    position: relative;
    padding: 4rem 5rem;
    border: 2px solid oklch(from var(--primary) l c h / 0.3);
    background: oklch(from var(--background) l c h / 0.5);
    backdrop-filter: blur(4px);
    transition: all 0.5s;
}

.cta-button:hover .cta-button-content {
    border-color: oklch(from var(--primary) l c h / 0.6);
}

.cta-button-text {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--foreground);
    transition: color 0.5s;
}

.cta-button:hover .cta-button-text {
    color: var(--primary);
}

/* Footer Invitation */
.footer-invitation {
    padding: 6rem 1.5rem;
    border-top: 1px solid oklch(from var(--border) l c h / 0.3);
}

.footer-invitation .container {
    max-width: 42rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-text {
    color: var(--muted-foreground);
    line-height: 1.75;
}

.footer-note {
    font-size: 0.875rem;
    color: oklch(from var(--muted-foreground) l c h / 0.6);
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .button-content {
        padding: 3rem 2rem;
    }
    
    .cta-button-content {
        padding: 3rem 2rem;
    }
}

