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

:root {
    --primary-color: #16c79a;
    --primary-dark: #0fa37f;
    --primary-light: #7de3cf;
    --secondary-color: #0bb8a2;
    --text-primary: #ecfdf5;
    --text-secondary: #9cf0de;
    --text-light: #7de3cf;
    --background: #081614; /* deep teal charcoal */
    --background-secondary: #0b1d1a; /* slightly lighter teal */
    --background-tertiary: #102723; /* section blocks */
    --border-color: #0f3e38; /* emerald edge */
    --success: #10b981;
    --gradient: linear-gradient(135deg, #0fa37f 0%, #16c79a 50%, #7de3cf 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.55);
}

body {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    background: var(--background);
}

/* Fixed Logo */
.fixed-logo {
    position: fixed;
    top: 24px;
    left: 24px;
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fixed-logo:hover {
    transform: scale(1.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--background-tertiary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section with Mosaic Gallery */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--background);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.35) 60%, rgba(15, 23, 42, 0.55) 100%),
                radial-gradient(1200px 400px at 50% 0%, rgba(22, 199, 154, 0.15), transparent 70%),
                radial-gradient(800px 300px at 80% 20%, rgba(125, 227, 207, 0.12), transparent 70%),
                radial-gradient(800px 300px at 20% 20%, rgba(15, 163, 127, 0.12), transparent 70%);
}

.hero-overlay .container {
    width: 100%;
}

.hero-text-center {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(8, 22, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Ensure equal top/bottom spacing inside the hero frame */
.hero-text-center > *:last-child {
    margin-bottom: 0;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.6))
            drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.8;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Down Button */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: rgba(22, 199, 154, 0.7);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    padding: 20px;
}

.scroll-down-btn:hover {
    color: var(--primary-color);
    transform: translateX(-50%) translateY(-3px);
}

.scroll-down-arrow {
    display: block;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(22, 199, 154, 0.55))
            drop-shadow(0 0 15px rgba(22, 199, 154, 0.35));
}

.scroll-down-btn:hover .scroll-down-arrow {
    filter: drop-shadow(0 0 10px rgba(22, 199, 154, 0.75))
            drop-shadow(0 0 20px rgba(22, 199, 154, 0.45));
}

/* Mosaic Gallery - Square Grid */
.mosaic-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    padding: 14px;
    z-index: 1;
    overflow: hidden;
    align-content: start;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.mosaic-item .image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.mosaic-item .image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 163, 127, 0.22) 0%, rgba(22, 199, 154, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.mosaic-item:hover {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3);
    will-change: transform;
}

.mosaic-item:not(:hover) {
    will-change: auto;
}

.mosaic-item:hover .image-wrapper::after {
    opacity: 0.5;
}

.mosaic-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
    transition: filter 0.3s ease;
    content-visibility: auto;
    z-index: 0;
    border-radius: inherit;
}

/* Progressive fade/blur-up */
.mosaic-item img.progressive {
    opacity: 0;
    filter: blur(12px) brightness(0.65);
    transition: opacity 400ms ease, filter 400ms ease;
}

.mosaic-item img.progressive.loaded {
    opacity: 1;
    filter: brightness(0.75);
}

/* Lazy loading placeholder */
.mosaic-item img.lazy-image {
    background: var(--background-tertiary);
}

.mosaic-item:hover img {
    filter: brightness(0.9);
    will-change: filter;
}

.mosaic-item:not(:hover) img {
    will-change: auto;
}

/* Mission Section */
.mission {
    padding: 100px 0;
    background: var(--background-tertiary);
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hypurr-history {
    margin: 12px auto 32px;
    max-width: 900px;
}

.hypurr-history-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.hypurr-history-frame {
    border: 1px dashed var(--border-color);
    background: rgba(22, 199, 154, 0.04);
    border-radius: 16px;
    padding: 28px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hypurr-history-empty {
    color: var(--text-light);
    text-align: center;
    font-size: 14px;
}

.pool-progress {
    width: 100%;
    margin-top: 20px;
}

.pool-progress-title {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 999px 0 0 999px;
    transition: width 0.6s ease;
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 10px;
}

.progress-sep {
    opacity: 0.5;
}

.mission-header {
    text-align: center;
    margin-bottom: 36px;
}

.mission-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-top: 6px;
    color: var(--text-primary);
}

/* Tighter spacing between The Mission: and subtitle */
.mission-header .section-title {
    margin-bottom: 8px;
}

.mission-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mission-feature-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--background);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mission-feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.mission-feature-item h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.mission-feature-item p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* $PURRSTR token stat frames */
.token-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}

.token-stat-card {
    background: rgba(8, 22, 20, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.token-stat-card.full {
    grid-column: 1 / -1;
}
.token-actions {
    max-width: 880px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.token-action-card {
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    padding: 16px 20px;
    background: rgba(22, 199, 154, 0.20); /* light green tint */
    border-color: rgba(22, 199, 154, 0.38); /* light green border */
}

.token-action-card:hover {
    background: rgba(22, 199, 154, 0.28);
    border-color: rgba(22, 199, 154, 0.50);
}


/* Inline row for CA and copy icon */
.token-stat-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-right: 36px;
    position: relative;
}

.token-stat-row .token-stat-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
}

.copy-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 8px;
    transition: transform 0.15s ease, color 0.15s ease;
}

.copy-icon:hover {
    transform: translateY(-50%) scale(1.06);
    color: var(--primary-light);
}

.copy-icon:active {
    transform: translateY(-50%) scale(0.95);
}

.token-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.token-stat-value {
    font-size: 24px;
    font-weight: 500;
}

.blurred {
    filter: blur(6px);
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--background-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border: 1px solid var(--primary-light);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin: 0 auto 16px;
    background: transparent;
    box-shadow: none;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.step-content p {
    color: var(--text-secondary);
    padding: 0 8px;
}

.step-connector { display: none; }

/* Rates Section */
.rates {
    padding: 100px 0;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.rate-card {
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.rate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.rate-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.rate-header h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.rate-price {
    margin-bottom: 16px;
}

.rate-from {
    font-size: 14px;
    color: var(--text-secondary);
}

.rate-percentage {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 8px 0;
}

.rate-apr {
    font-size: 14px;
    color: var(--text-secondary);
}

.rate-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.rate-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.rate-features li {
    padding: 12px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 28px;
}

.rate-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.rate-card button {
    width: 100%;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-secondary);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-tertiary);
}

.faq-icon {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--gradient);
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-content .btn-primary:hover {
    background: var(--background-secondary);
}

/* Footer */
.footer {
    background: var(--background-tertiary);
    color: var(--text-primary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
    color: var(--primary-light);
    opacity: 1;
    transform: translateY(-1px);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}



.footer-disclaimer {
    font-size: 12px;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fixed-logo {
        font-size: 20px;
        top: 20px;
        left: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .scroll-down-btn {
        bottom: 20px;
        font-size: 20px;
    }

    .mosaic-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 6px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 640px;
    }

    .token-stats {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .token-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mosaic-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px;
    }

    .mission-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mission-subtitle {
        font-size: 28px;
    }

    .mission-description {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .token-stats {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .steps-container {
        flex-direction: column;
        gap: 32px;
    }

    .step-connector {
        width: 2px;
        height: 60px;
        margin: -16px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .rate-percentage {
        font-size: 36px;
    }
}


