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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #F4EDE0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.6rem, 6.5vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Glassmorphic Card System */
.glass-card {
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    background: rgba(244, 237, 224, 0.12);
    border: 1px solid rgba(244, 237, 224, 0.18);
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: scale(1.05);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    background: rgba(244, 237, 224, 0.18);
    border-color: rgba(244, 237, 224, 0.28);
}

/* Unique blob-shaped border-radius for each card */
.card-1 { border-radius: 45% 55% 52% 48% / 48% 45% 55% 52%; }
.card-2 { border-radius: 55% 45% 48% 52% / 52% 48% 45% 55%; }
.card-3 { border-radius: 50% 50% 45% 55% / 55% 45% 50% 50%; }
.card-4 { border-radius: 45% 50% 55% 50% / 50% 55% 45% 50%; }
.card-5 { border-radius: 55% 48% 50% 47% / 47% 50% 48% 55%; }
.card-6 { border-radius: 48% 52% 47% 53% / 53% 47% 52% 48%; }
.card-7 { border-radius: 52% 48% 55% 45% / 45% 55% 48% 52%; }
.card-8 { border-radius: 47% 53% 50% 50% / 50% 50% 53% 47%; }
.card-9 { border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%; }
.card-10 { border-radius: 55% 50% 47% 48% / 48% 47% 50% 55%; }
.card-11 { border-radius: 45% 55% 48% 52% / 52% 48% 55% 45%; }
.card-12 { border-radius: 50% 50% 50% 50% / 47% 53% 47% 53%; }
.card-13 { border-radius: 48% 52% 52% 48% / 45% 55% 45% 55%; }
.card-14 { border-radius: 53% 47% 53% 47% / 55% 45% 55% 45%; }

/* Card Links */
.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: #E8A840;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.card-link:hover {
    color: #F4EDE0;
    transform: translateX(4px);
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E8A840;
    transition: width 0.3s ease;
}

.card-link:hover::after {
    width: 100%;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section Styling */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Section 1: Overview Ridge */
.overview-ridge {
    background: linear-gradient(180deg, #2B4570 0%, #E8D5B7 100%);
}

.overview-ridge .section-container {
    text-align: center;
}

.title-main {
    color: #F4EDE0;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.8s ease;
}

.subtitle {
    font-size: 1.5rem;
    color: #E8A840;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

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

.grid-1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease 0.4s both;
}

/* Section 2: License Types Valley */
.license-valley {
    background: linear-gradient(180deg, #E8D5B7 0%, #3A6090 100%);
    color: #1E3450;
}

.license-valley .glass-card {
    background: rgba(43, 69, 112, 0.08);
    border: 1px solid rgba(43, 69, 112, 0.12);
    color: #1E3450;
}

.license-valley .glass-card:hover {
    background: rgba(43, 69, 112, 0.15);
    border-color: rgba(43, 69, 112, 0.22);
}

.license-valley h2,
.license-valley h3 {
    color: #1E3450;
}

.license-valley p {
    color: #2B4570;
}

.section-title {
    text-align: center;
    color: #1E3450;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Section 3: Exchange Mechanism */
.exchange-mechanism {
    background: linear-gradient(180deg, #3A4A60 0%, #2B4570 100%);
}

.flow-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.flow-arrow {
    text-align: center;
    font-size: 2rem;
    color: #E8A840;
    animation: pulse 2s infinite;
}

/* Section 4: Community Panorama */
.community-panorama {
    background: linear-gradient(180deg, #2B4570 0%, #1E3450 100%);
}

.community-panorama .section-title {
    color: #F4EDE0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .flow-diagram {
        grid-template-columns: 1fr;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 2rem 1rem;
    }

    .grid-1, .grid-2, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    background: #7A8A9A;
}

::-webkit-scrollbar-track {
    background: rgba(43, 69, 112, 0.1);
}

::-webkit-scrollbar-thumb {
    background: #E8A840;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F4EDE0;
}
