:root {
    --bg-base: #0a0a0a;
    --bg-surface: #111111;
    --bg-surface-hover: #161616;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.18);
    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dotted Dark Background */
.dotted-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center center;
    z-index: -10;
    pointer-events: none;
}

@keyframes navSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-wrapper {
    position: sticky;
    top: 1.5rem;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    animation: navSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.light-theme {
    --bg-base: #f4f4f5;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f9f9f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(0, 0, 0, 0.18);
    --text-main: #09090b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
}
html.light-theme .capsule-nav {
    background: rgba(255, 255, 255, 0.85);
}
html.light-theme .nav-tabs .tab.active {
    background: #e5e5e5;
    color: #09090b;
}
html.light-theme .btn-primary {
    background: #09090b;
    color: #ffffff;
}
html.light-theme .btn-theme-toggle {
    background: #09090b;
    color: #ffffff;
}

.capsule-nav {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    padding: 0.35rem 0.5rem 0.35rem 0.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-bag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-bag:hover {
    transform: scale(1.05);
}

.nav-sep {
    width: 1px;
    height: 16px;
    background: var(--border-color);
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-tabs .tab {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.9rem;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.nav-tabs .tab:hover {
    color: var(--text-main);
}

.nav-tabs .tab.active {
    background: #222222;
    color: var(--text-main);
    font-weight: 600;
}

.btn-theme-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-theme-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-theme-toggle .icon-moon {
    display: flex !important;
}

.btn-theme-toggle .icon-sun {
    display: none !important;
}

html.light-theme .btn-theme-toggle .icon-moon {
    display: none !important;
}

html.light-theme .btn-theme-toggle .icon-sun {
    display: flex !important;
}

.btn-theme-toggle:hover {
    transform: scale(1.05);
    background: #e5e5e5;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

/* Hero Section */
@keyframes initialZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-section {
    max-width: 1140px;
    margin: 4rem auto 0 auto;
    padding: 0 2rem;
    text-align: center;
    animation: initialZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-inner {
    max-width: 720px;
    margin: 0 auto 0.5rem auto;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 3-Phone Showcase Gallery */
.showcase-gallery {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1rem;
    overflow: hidden;
}

.phones-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    height: 980px;
}

.phone-mockup {
    position: absolute;
    width: 680px;
    border-radius: 46px;
    box-shadow: none;
    background: transparent;
}

.phone-mockup img {
    display: block;
    width: 100%;
    height: auto;
}

.center-phone {
    z-index: 10;
    top: -130px;
    transform: scale(1.08);
}

.side-phone {
    z-index: 5;
    top: -50px;
}

.left-phone {
    left: -90px;
    transform: rotate(-8deg) scale(0.95);
}

.right-phone {
    right: -90px;
    transform: rotate(8deg) scale(0.95);
}

.gallery-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-base) 90%);
    z-index: 20;
    pointer-events: none;
}

/* Sections General */
section {
    max-width: 1140px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.features-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 3rem;
}

/* Bento Grid (Exact StikStore Replica) */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bento-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.theme-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.theme-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
}

/* Divider */
.much-more-divider {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.much-more-divider::before, .much-more-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.much-more-divider span {
    padding: 0 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* Community Section */
.community-section {
    text-align: center;
    margin: 6rem auto;
}

.community-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.community-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-community {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-discord {
    background: #5865f2;
    color: #ffffff;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.btn-github-community {
    background: #181818;
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-github-community:hover {
    background: #222222;
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

/* Setup Grid */
.setup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.setup-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
}

.setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.method-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.method-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.method-badge.recommended {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.setup-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.setup-steps {
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setup-steps li code, .setup-steps li em {
    color: var(--text-main);
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

/* Centered Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem;
    margin-top: 8rem;
}

.footer-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.footer-disclaimer, .footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid, .setup-grid {
        grid-template-columns: 1fr;
    }
    .phones-container {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .phone-mockup {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: 500px;
        max-width: 95vw;
        transform: none !important;
    }
    .gallery-fade {
        display: none;
    }
    .capsule-nav {
        gap: 0.75rem;
    }
    .nav-tabs {
        display: none;
    }
    .hero-heading {
        font-size: 2.5rem;
    }
    .community-buttons {
        flex-direction: column;
    }
}
