@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #030712;
    --fg: #f9fafb;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --secondary: #8b5cf6;
    --accent: #10b981;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: screen;
    will-change: transform;
}

.bg-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: 1;
    pointer-events: none;
}

.glow-1 {
    width: 70vmax;
    height: 70vmax;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.9) 0%, transparent 70%);
    animation: swirl-fast 12s infinite linear;
}

.glow-2 {
    width: 80vmax;
    height: 80vmax;
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.9) 0%, transparent 70%);
    animation: swirl-fast 18s infinite linear reverse;
}

.glow-3 {
    width: 60vmax;
    height: 60vmax;
    top: 30%;
    left: 20%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.8) 0%, transparent 70%);
    animation: bounce-fast 15s infinite ease-in-out alternate;
}

@keyframes swirl-fast {
    0% { transform: rotate(0deg) translate(10vmax, 10vmax) rotate(0deg); }
    100% { transform: rotate(360deg) translate(10vmax, 10vmax) rotate(-360deg); }
}

@keyframes bounce-fast {
    0% { transform: translate(-20%, -20%) scale(1); }
    50% { transform: translate(40%, 20%) scale(1.4); }
    100% { transform: translate(-10%, 40%) scale(1); }
}

/* Content layer */
header, main, footer {
    position: relative;
    z-index: 10;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 2;
    opacity: 0.15;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(3, 7, 18, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--fg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    border: 1px solid var(--border);
}

.lang-btn {
    cursor: pointer;
    transition: color 0.3s;
    color: var(--text-muted);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-btn:hover:not(.active) {
    color: var(--fg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    padding: 0.6rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 2.5rem;
    background: linear-gradient(to bottom, #fff 40%, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: 1.5rem;
    margin-top: 6rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.bento-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.col-4 { grid-column: span 4; }
.col-2 { grid-column: span 2; }
.row-2 { grid-row: span 2; }

.bento-item h3 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Updated Icon Container with 40% Opacity Background */
.icon-container {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.4); /* 40% opacity white background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s infinite ease-in-out;
}

.icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-container i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Platform Section */
.platform-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.4s;
}

.platform-card:hover {
    border-color: var(--primary);
    transform: scale(1.03);
    background: rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-silicon {
    background: #ffffff;
    color: #000000;
    padding: 1.25rem 2.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.btn-silicon:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border);
    padding: 1.25rem 2.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s;
    font-size: 1.05rem;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* API Documentation */
.api-docs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 3rem;
    padding: 4rem;
    backdrop-filter: blur(20px);
    margin-bottom: 5rem;
}

.api-method {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.method-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--primary);
    color: white;
}

.api-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.api-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.api-code-block {
    background: #000;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.code-header {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.api-code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
    overflow-x: hidden;
    max-width: 100%;
    color: #e2e8f0;
}

.api-code-block code {
    line-height: 1.5;
}

@media (max-width: 992px) {
    .api-method { grid-template-columns: 1fr; gap: 2rem; }
    .api-docs-container { padding: 2rem; }
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.pricing-card.popular {
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--primary);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.bundle-size {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bundle-unit {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.bundle-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.bundle-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    vertical-align: middle;
    margin-right: 0.2rem;
}

.pricing-card .btn-glass, .pricing-card .btn-silicon {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
}

footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
    margin-top: 10rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .bento-grid { grid-template-columns: repeat(1, 1fr); }
    .col-4, .col-2 { grid-column: span 1; }
    .footer-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.5rem; }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero { padding: 8rem 0 4rem; }
    .hero h1 { font-size: 2.8rem; line-height: 1.1; }
    .hero p { font-size: 1rem; }
    .cta-group { flex-direction: column; width: 100%; gap: 1rem; }
    .cta-group .btn-silicon, .cta-group .btn-glass { width: 100%; text-align: center; justify-content: center; }
    
    .section-title h2 { font-size: 2.2rem; }
    .bento-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .col-4, .col-2 { grid-column: span 1; }
    
    .api-docs-container { padding: 1.5rem; border-radius: 2rem; }
    .api-method { grid-template-columns: 1fr; gap: 2rem; }
    
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    
    .nav-links { display: none; } /* Simplified for mobile experience */
    
    .container { padding: 0 1.5rem; }
}

/* Token Info Box Refinement */
.token-info-box {
    display: inline-flex;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.25rem 2.5rem;
    border-radius: 99px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.token-info-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

@media (max-width: 768px) {
    .token-info-box {
        display: flex;
        flex-direction: column;
        border-radius: 2rem;
        padding: 1.5rem 2rem;
        max-width: 100%;
        margin: 0 1.5rem 3rem;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
}

/* Pricing Mobile Optimization */
@media (max-width: 768px) {
    .pricing-grid {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem 1rem;
        border-radius: 1.5rem;
    }
    
    .bundle-size {
        font-size: 2rem;
        margin-bottom: 0.1rem;
    }
    
    .bundle-unit {
        margin-bottom: 1rem;
        font-size: 0.7rem;
    }
    
    .bundle-price {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card .btn-glass, .pricing-card .btn-silicon {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .popular-badge {
        top: -10px;
        padding: 0.25rem 0.8rem;
        font-size: 0.6rem;
    }
}

/* Commitment Banner Mobile Spacing */
@media (max-width: 768px) {
    .commitment-section {
        margin-top: 5rem !important;
        margin-bottom: 5rem !important;
    }
    .commitment-banner {
        padding: 2rem 1.5rem !important;
    }
}

.token-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 3rem;
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .token-note {
        margin-top: -2rem;
        padding: 0 2rem;
        font-size: 0.8rem;
    }
}
