/* 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;
}


/* 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;
    }
}


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

/* Hero Section */
.bali-hero {
    position: relative;
    padding-top: 4rem;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        oklch(from #e1dcd7 l c h / 0.2),
        oklch(from #b4c8be l c h / 0.1),
        oklch(from #c8d7dc l c h / 0.15)
    );
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: oklch(from var(--foreground) l c h / 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--foreground);
}

.back-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.back-text {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-in;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: oklch(from var(--foreground) l c h / 0.9);
}

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

.hero-subtitle {
    font-size: 2rem;
    font-weight: 200;
    color: oklch(from var(--foreground) l c h / 0.7);
    letter-spacing: 0.1em;
}

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

.hero-description {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    margin-top: 2rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-cta-button {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    position: relative;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: transparent;
    border: 1px solid oklch(from var(--foreground) l c h / 0.2);
    cursor: pointer;
    transition: all 0.5s;
    overflow: hidden;
}

.hero-cta-button:hover {
    border-color: oklch(from var(--foreground) l c h / 0.4);
}

.button-glow-line {
    position: absolute;
    inset: 0;
    width: 0.25rem;
    background: linear-gradient(
        to bottom,
        transparent,
        oklch(from var(--primary) l c h / 0.3),
        transparent
    );
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.7s ease-out;
}

.hero-cta-button:hover .button-glow-line {
    width: 100%;
}

.button-text {
    position: relative;
    z-index: 10;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    font-weight: 300;
    color: var(--foreground);
    transition: color 0.5s;
}

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

/* Intro Section */
.bali-intro {
    padding: 8rem 1.5rem;
    background: var(--background);
}

.intro-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: oklch(from var(--foreground) l c h / 0.9);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.75;
}

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

.intro-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--muted-foreground);
    line-height: 1.75;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .intro-text {
        font-size: 1.25rem;
    }
}

.intro-quote {
    font-size: 1.25rem;
    font-weight: 300;
    color: oklch(from var(--foreground) l c h / 0.8);
    font-style: italic;
    text-align: center;
}

@media (min-width: 768px) {
    .intro-quote {
        font-size: 1.5rem;
    }
}

/* States Section */
.bali-states {
    padding: 8rem 1.5rem;
    background: oklch(from var(--muted) l c h / 0.3);
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 5rem;
    color: oklch(from var(--foreground) l c h / 0.9);
}

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

.states-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .states-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .states-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.state-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.state-circle {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 1px solid oklch(from var(--foreground) l c h / 0.2);
    background: linear-gradient(
        to bottom right,
        var(--background),
        oklch(from var(--muted) l c h / 0.4),
        oklch(from var(--accent) l c h / 0.2)
    );
    transition: all 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .state-circle {
        width: 7rem;
        height: 7rem;
    }
}

.state-item:hover .state-circle {
    transform: scale(1.1);
    box-shadow: 0 0 30px oklch(from #b4c8be l c h / 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.state-line {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.state-line::before {
    content: '';
    width: 0.25rem;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        oklch(from var(--foreground) l c h / 0.1),
        transparent
    );
}

.state-label {
    font-size: 0.875rem;
    font-weight: 300;
    text-align: center;
    color: oklch(from var(--foreground) l c h / 0.7);
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .state-label {
        font-size: 1rem;
    }
}

/* How It Works Section */
.bali-how-it-works {
    padding: 8rem 1.5rem;
    background: var(--background);
}

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

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

.info-card {
    position: relative;
    padding: 2rem;
    background: oklch(from var(--card) l c h / 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid oklch(from var(--border) l c h / 0.5);
    transition: all 0.5s;
    cursor: pointer;
}

@media (min-width: 768px) {
    .info-card {
        padding: 2.5rem;
    }
}

.info-card:hover {
    border-color: oklch(from var(--primary) l c h / 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-glow-line {
    position: absolute;
    inset: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        oklch(from var(--primary) l c h / 0.2),
        transparent
    );
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s;
}

.info-card:hover .card-glow-line {
    opacity: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: oklch(from var(--foreground) l c h / 0.9);
}

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

.card-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--muted-foreground);
    line-height: 1.75;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .card-text {
        font-size: 1.125rem;
    }
}

/* Journey Section */
.bali-journey {
    padding: 8rem 1.5rem;
    background: oklch(from var(--muted) l c h / 0.3);
}

.journey-steps {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journey-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    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)
    );
}

.step-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}

.step-number {
    position: relative;
    z-index: 10;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 2px solid oklch(from var(--primary) l c h / 0.3);
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: oklch(from var(--foreground) l c h / 0.6);
    font-weight: 300;
    transition: all 0.3s;
}

.step-item:hover .step-number {
    border-color: oklch(from var(--primary) l c h / 0.6);
    background: oklch(from var(--primary) l c h / 0.05);
}

.step-content {
    flex: 1;
    padding: 1.5rem;
    background: oklch(from var(--card) l c h / 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid oklch(from var(--border) l c h / 0.5);
    transition: all 0.3s;
}

.step-item:hover .step-content {
    border-color: oklch(from var(--primary) l c h / 0.3);
}

.step-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: oklch(from var(--foreground) l c h / 0.8);
}

@media (min-width: 768px) {
    .step-text {
        font-size: 1.25rem;
    }
}

/* CTA Section */
.bali-cta {
    padding: 8rem 1.5rem;
    background: var(--background);
}

.cta-button {
    position: relative;
    padding: 2rem 3rem;
    background: transparent;
    border: 1px solid oklch(from var(--foreground) l c h / 0.2);
    cursor: pointer;
    transition: all 0.5s;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    text-decoration: none;
    color: inherit;
}

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

.cta-glow-line {
    position: absolute;
    inset: 0;
    width: 0.25rem;
    background: linear-gradient(
        to bottom,
        transparent,
        oklch(from var(--primary) l c h / 0.4),
        transparent
    );
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.7s ease-out;
}

.cta-button:hover .cta-glow-line {
    width: 100%;
}

.cta-button-text {
    position: relative;
    z-index: 10;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    font-weight: 300;
    color: var(--foreground);
    transition: color 0.5s;
}

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

.cta-note {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--muted-foreground);
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .cta-note {
        font-size: 1rem;
    }
}

/* For Who Section */
.bali-for-who {
    padding: 8rem 1.5rem;
    background: oklch(from var(--muted) l c h / 0.3);
}

.audience-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.audience-item {
    padding: 1.5rem;
    background: oklch(from var(--card) l c h / 0.3);
    backdrop-filter: blur(4px);
    border-left: 2px solid oklch(from var(--primary) l c h / 0.3);
    text-align: left;
}

.audience-text {
    font-size: 1.125rem;
    font-weight: 300;
    color: oklch(from var(--foreground) l c h / 0.8);
    font-style: italic;
}

@media (min-width: 768px) {
    .audience-text {
        font-size: 1.25rem;
    }
}

/* Audio Section */
.bali-audio {
    padding: 8rem 1.5rem;
    background: var(--background);
}

.audio-button {
    position: relative;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 2px solid oklch(from var(--primary) l c h / 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

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

.play-icon,
.pause-icon {
    width: 2rem;
    height: 2rem;
    color: oklch(from var(--foreground) l c h / 0.7);
    transition: color 0.3s;
    margin-left: 0.25rem;
}

.audio-button:hover .play-icon,
.audio-button:hover .pause-icon {
    color: var(--primary);
}

.audio-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-weight: 300;
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

/* Closing Section */
.bali-closing {
    padding: 10rem 1.5rem;
    background: linear-gradient(
        to bottom,
        oklch(from var(--muted) l c h / 0.3),
        var(--background),
        oklch(from var(--muted) l c h / 0.2)
    );
}

.closing-text {
    font-size: 1.25rem;
    font-weight: 300;
    color: oklch(from var(--foreground) l c h / 0.8);
    line-height: 1.75;
    text-align: center;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .closing-text {
        font-size: 1.5rem;
    }
}

.closing-quote {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--muted-foreground);
    font-style: italic;
    text-align: center;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .closing-quote {
        font-size: 1.875rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .back-link {
        top: 1rem;
        left: 1rem;
    }
}

