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

:root {
    --primary-color: #0891B2;
    --secondary-color: #0E7490;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

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

/* Header */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

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

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-subtitle-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 3rem;
    min-height: calc(5 * 1.25rem * 1.6); /* 5 lines × font-size × line-height */
    display: flex;
    align-items: center;
    cursor: grab;
    user-select: none;
}

.hero-subtitle-container:active {
    cursor: grabbing;
}

.hero-subtitle {
    position: absolute;
    width: 100%;
    opacity: 0;
    font-size: 1.25rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    padding-bottom: 0.5rem;
    transition: opacity 0.3s ease;
}

.hero-subtitle.active {
    opacity: 1;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s;
    padding: 8px;
    margin: 0 4px;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: inherit;
    transition: all 0.3s;
}

/* Devices with hover capability - dots use proximity effect via JS */
@media (hover: hover) {
    .dot {
        padding: 6px;
        opacity: 0.7;
    }
    .dot::before {
        width: 8px;
        height: 8px;
    }
    .dot.active {
        opacity: 1;
    }
    .dot.active::before {
        background: var(--primary-color);
        width: 10px;
        height: 10px;
    }
}

/* Touch devices - keep current size */
@media (hover: none) {
    .dot.active::before {
        background: var(--primary-color);
        transform: translate(-50%, -50%) scale(1.2);
    }
    .dot:hover::before {
        background: var(--secondary-color);
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Ripple effect container */
.btn-primary::after, .btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    opacity: 0;
    pointer-events: none;
}

/* Trigger ripple on click */
.btn-primary:active::after, .btn-secondary:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Different ripple color for secondary button */
.btn-secondary::after {
    background: rgba(6, 182, 212, 0.3);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

/* About Section */
.about {
    padding: 4rem 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.story-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.story-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Problem/Solution Section */
.problem-solution {
    padding: 4rem 0;
    background: var(--bg-light);
}

.problem-solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.problem h2, .solution h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.problem ul, .solution ul {
    list-style: none;
}

.problem li, .solution li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.problem li:before {
    content: "×";
    position: absolute;
    left: 0;
    color: #DC2626;
    font-size: 1.2rem;
    font-weight: bold;
    top: 0.6rem;
}

.solution li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.5rem;
    top: 0.5rem;
}

/* Use Cases Section */
.use-cases {
    padding: 4rem 0;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.use-case {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.use-case h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.use-case ul {
    list-style: none;
}

.use-case li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-case li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.use-case-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Philosophy Section */
.philosophy {
    padding: 4rem 0;
    background: var(--bg-light);
}

.philosophy h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.philosophy-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.philosophy-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.point {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.point h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.feature {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.feature-icon {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    line-height: 1;
}

/* Support Section */
.support {
    padding: 4rem 0;
    background: var(--bg-light);
}

.support h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.support-intro h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.milestones {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.milestone-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.milestone-item:last-child {
    border-bottom: none;
}

.milestone-item strong {
    color: var(--primary-color);
}

.milestone-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.donation-options h3 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Primary Platform */
.primary-platform {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.platform-card.featured {
    background: var(--bg-light);
    border: 3px solid var(--accent-color);
    transform: scale(1.02);
}

.btn-primary-platform {
    font-size: 1.125rem;
    padding: 1rem 2rem;
}

.platform-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-style: italic;
}

.platform-note-small {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Alternative Platforms Dropdown */
.alternative-platforms {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.alternative-platforms summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem;
    text-align: center;
    user-select: none;
}

.alternative-platforms summary:hover {
    color: var(--secondary-color);
}

.alternative-platforms[open] summary {
    margin-bottom: 1rem;
}

.transparency-note {
    text-align: center;
    color: var(--text-light);
    margin: 1rem 0 2rem;
    font-size: 0.875rem;
}

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

.platform-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    position: relative;
}

.platform-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.platform-tag {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.platform-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.platform-section {
    margin-bottom: 1.5rem;
}

.platform-section:last-of-type {
    margin-bottom: 1rem;
}

.platform-section h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-features {
    background: #F3F4F6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0;
    border: 1px solid #9CA3AF;
}

.platform-features li {
    color: var(--text-dark);
}

.platform-details {
    background: #F3F4F6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0;
    border: 1px solid #9CA3AF;
}

.platform-details li {
    color: var(--text-dark);
    font-size: 0.875rem;
}

.platform-card li {
    padding: 0.375rem 0;
    font-size: 0.8125rem;
}

.btn-platform {
    display: block;
    text-align: center;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.btn-platform:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Support Tiers */
.support-tiers h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.tiers-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.tier {
    background: white;
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 220px;
    max-width: 240px;
    flex: 1 1 220px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, opacity 0.6s, translate 0.6s;
    cursor: pointer;
    opacity: 0;
    translate: 0 20px;
    border: 2px solid transparent;
}

.tier.animate-in {
    opacity: 1;
    translate: 0 0;
}

/* Instant show for fast scrolling - no transition */
.tier.animate-in-fast {
    opacity: 1;
    translate: 0 0;
    transition: none;
}

.tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}


.tier h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tier h5 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.tier ul {
    list-style: none;
    text-align: left;
    font-size: 0.8125rem;
    padding-left: 0.5rem;
}

.tier li {
    padding: 0.3rem 0;
    line-height: 1.4;
    position: relative;
    padding-left: 1.2rem;
}

.tier li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Roadmap Section */
.roadmap {
    padding: 4rem 0;
}

.roadmap h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.milestone {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 0.5rem;
    border-top: 4px solid var(--border-color);
}

.milestone.current {
    border-top-color: var(--accent-color);
}

.milestone h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.milestone p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.milestone ul {
    list-style: none;
    font-size: 0.875rem;
}

.milestone li {
    padding: 0.25rem 0;
}

/* Demo Section */
.demo {
    padding: 4rem 0;
    background: var(--bg-light);
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.demo-placeholder {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.demo-placeholder p {
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

footer h4 {
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
}

footer li {
    padding: 0.25rem 0;
}

footer a {
    color: #D1D5DB;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 0.25rem;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* Back to top button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background: var(--secondary-color);
}

#back-to-top:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle-container {
        min-height: calc(8 * 1.25rem * 1.6); /* More lines for mobile */
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .problem-solution .container {
        grid-template-columns: 1fr;
    }
    
    /* Mobile navigation */
    #mobile-menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        z-index: 999;
    }
    
    .nav-links.mobile-open {
        display: flex;
    }
    
    .nav-links a, .nav-links button {
        padding: 0.75rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        margin: 0 !important;
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    nav {
        position: relative;
    }
    
    .tiers-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .tier {
        width: 100%;
        max-width: 350px;
        min-width: unset;
    }
    
    .tier ul {
        padding-left: 1rem;
        padding-right: 0.5rem;
    }
}


/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #06B6D4;
        --secondary-color: #0891B2;
        --accent-color: #FCD34D;
        --text-dark: #F8FAFC;
        --text-light: #CBD5E1;
        --bg-light: #1E293B;
        --bg-white: #0F172A;
        --border-color: #334155;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    }
    
    body {
        background-color: #0F172A;
        color: #F8FAFC;
    }
    
    /* Show dark mode icon, hide light mode icon */
    .adventure-icon-light {
        display: none !important;
    }
    
    .adventure-icon-dark {
        display: inline-block !important;
    }
    
    /* Header adjustments */
    header {
        background: #0F172A;
        border-bottom-color: #334155;
    }
    
    .nav-links a {
        color: #F8FAFC;
    }
    
    .nav-links a:hover {
        color: #06B6D4;
    }
    
    /* Hero section */
    .hero {
        background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    }
    
    .hero h1 {
        color: #F8FAFC;
    }
    
    .hero-subtitle {
        color: #CBD5E1;
    }
    
    .dot {
        background: #475569;
    }
    
    .dot.active {
        background: #06B6D4;
    }
    
    /* Cards and sections */
    .story-card, .use-case, .point, .feature, .milestones, .tier, .milestone, .platform-card, .alternative-platforms {
        background: #1E293B;
        color: #F8FAFC;
    }
    
    .alternative-platforms {
        border-color: #475569;
    }
    
    .story-card h3, .use-case h3, .point h3, .feature h3 {
        color: #06B6D4;
    }
    
    /* Problem/Solution section */
    .problem-solution {
        background: #1E293B;
    }
    
    .problem h2, .solution h2 {
        color: #F8FAFC;
    }
    
    /* Philosophy section */
    .philosophy {
        background: #1E293B;
    }
    
    .philosophy-intro {
        color: #CBD5E1;
    }
    
    /* Support section */
    .support {
        background: #1E293B;
    }
    
    .support h2, .support h3 {
        color: #F8FAFC;
    }
    
    /* Platform cards */
    .platform-features, .platform-details {
        background: #0F172A;
        border-color: #475569;
    }
    
    .platform-features li, .platform-details li {
        color: #E5E7EB;
    }
    
    /* Buttons */
    .btn-secondary {
        background: #1E293B;
        color: #06B6D4;
        border-color: #06B6D4;
    }
    
    .btn-secondary:hover {
        background: #06B6D4;
        color: #0F172A;
    }
    
    /* Footer */
    footer {
        background: #000000;
    }
    
    /* Demo section */
    .demo {
        background: #1E293B;
    }
    
    .demo-placeholder p {
        color: #CBD5E1;
    }
    
    /* Mobile menu in dark mode */
    .nav-links {
        background: #0F172A;
    }
    
    .nav-links a, .nav-links button {
        border-bottom-color: #334155;
    }
}
