:root {
    --bg-dark: #04120F;
    --bg-light: #f4fdf8;
    --emerald: #10B981;
    --mint: #34D399;
    --text-white: #FFFFFF;
    --text-dark: #0f172a;
    
    --bg-color: var(--bg-dark);
    --text-color: var(--text-white);
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --nav-bg: rgba(4, 18, 15, 0.6);
    --card-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(16, 185, 129, 0.4);
}

[data-theme="light"] {
    --bg-color: var(--bg-light);
    --text-color: var(--text-dark);
    --text-muted: rgba(15, 23, 42, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(16, 185, 129, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.1);
    --nav-bg: rgba(244, 253, 248, 0.7);
    --card-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --glow: 0 0 20px rgba(16, 185, 129, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(52, 211, 153, 0.05), transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--emerald);
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-bevel), var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.nav-container.pill-bar {
    pointer-events: auto;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.logo a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.route-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--mint);
    background: rgba(52, 211, 153, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-glow {
    background: linear-gradient(135deg, var(--emerald), var(--mint));
    color: #04120F !important;
    box-shadow: var(--glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(16, 185, 129, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--emerald);
    color: var(--emerald) !important;
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.headline {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--text-color), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-headline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-interactive {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.allocation-ring {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    transition: all 0.3s;
}

.allocation-ring.active {
    border-color: var(--emerald);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2) inset;
}

.ring-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(52,211,153,0.1));
    backdrop-filter: blur(10px);
    border: 1px solid var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--mint);
    z-index: 10;
    box-shadow: var(--glow);
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--emerald);
    opacity: 0;
    pointer-events: none;
}

.allocation-ring.active .ripple {
    animation: ripple-anim 2s linear infinite;
}
.allocation-ring.active .ripple.delay-1 {
    animation-delay: 1s;
}

@keyframes ripple-anim {
    0% { width: 100px; height: 100px; opacity: 1; }
    100% { width: 350px; height: 350px; opacity: 0; }
}

.device-tokens {
    display: flex;
    gap: 20px;
}

.token {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: grab;
    backdrop-filter: blur(10px);
    color: var(--text-color);
    transition: all 0.2s;
    user-select: none;
}
.token:active {
    cursor: grabbing;
    transform: scale(0.9);
}
.token svg {
    color: var(--emerald);
}
.interaction-hint {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.token.dropped {
    opacity: 0.5;
    pointer-events: none;
    transform: scale(0.8);
}

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

.bento-item {
    padding: 40px 30px;
}

.bento-item:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-5px);
}

.card-icon {
    color: var(--emerald);
    margin-bottom: 20px;
}

.bento-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.bento-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card {
    padding: 50px 30px 40px;
    display: flex;
    flex-direction: column;
}

.pledge-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    padding: 4px 40px;
    font-size: 0.75rem;
    transform: rotate(45deg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: bold;
}

.pricing-card.popular {
    border-color: var(--emerald);
    transform: scale(1.05);
    z-index: 1;
}
.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--emerald), var(--mint));
    color: #04120F;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text-color);
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.features-list li::before {
    content: "✓";
    color: var(--emerald);
    margin-right: 10px;
    font-weight: bold;
}
.features-list li:last-child {
    border-bottom: none;
}

.review-card {
    padding: 30px;
}
.quote-icon {
    font-size: 4rem;
    color: var(--emerald);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -20px;
    font-family: serif;
}
.review-card p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.user-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    padding: 25px 30px;
}
.faq-item h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}
.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer {
    border-radius: 20px 20px 0 0;
    margin-top: 50px;
    padding: 40px 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--emerald);
}

/* Page Contents Style (for about, terms, etc.) */
.content h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--emerald); }
.content p, .content ul { margin-bottom: 1rem; color: var(--text-muted); }
.content ul li { margin-bottom: 0.5rem; }
.content a { text-decoration: underline; color: var(--mint); }

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-interactive { margin-top: 40px; }
    .headline { font-size: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: none; }
    .pricing-card.popular:hover { transform: translateY(-5px); }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .headline { font-size: 2.2rem; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-container.pill-bar { padding: 10px 15px; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }
    .route-status { display: none; }
}
