:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    --secondary-glow: rgba(56, 189, 248, 0.4);
    --nav-height: 72px;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    top: -150px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #0ea5e9;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #db2777;
    top: 40%;
    left: 40%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9) rotate(-5deg);
    }

    100% {
        transform: translate(40px, 60px) scale(1.2) rotate(15deg);
    }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-panel {
    background: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-left: none;
    border-right: none;
    border-top: none;
    height: var(--nav-height);
}

/* Prevent anchored headings from being hidden behind the fixed navbar */
html {
    scroll-padding-top: calc(var(--nav-height) + 8px);
    scroll-behavior: smooth;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 300;
}

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

.nav-links a:not(.nav-btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.nav-links a:not(.nav-btn):hover::after {
    width: 100%;
}

/* Active / current page link */
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #e0e7ff;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.1);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.highlight {
    background: linear-gradient(135deg, #38bdf8, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

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

/* Hero-specific store buttons: horizontal and centered */
.hero-store-buttons {
    display: flex;
    /* Force horizontal layout and center for the hero variant. Use strong overrides
       in case generic .store-buttons rules set a different direction elsewhere. */
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 900px;
}

/* Store badge shown next to store buttons when status is pending/review */
.store-review-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    background: linear-gradient(180deg, #ffcb80 0%, #f0ad4e 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(240, 170, 80, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.store-review-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(240, 170, 80, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Store buttons layout */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.store-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-btn {
    min-width: 260px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-image-container {
    width: 100%;
    max-width: 1050px;
    perspective: 1200px;
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transform: rotateX(8deg) scale(0.95);
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
    position: relative;
    border-radius: 12px;
}

.glow-effect {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: var(--accent-color);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    transition: opacity 1s ease;
}

.hero-image-container:hover .hero-image {
    transform: rotateX(0deg) scale(1);
}

.hero-image-container:hover .glow-effect {
    opacity: 0.25;
}

/* Sections */
main {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    padding: 8rem 0;
}

/* Video embed: center and responsive */
.video-wrapper {
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 960px;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 12px;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

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

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

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

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
}

.icon {
    font-size: 1.8rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-card h3,
.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.instruction-card p,
.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.feature-list {
    margin-top: 1.5rem;
    padding-left: 0;
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.feature-list strong {
    color: var(--text-primary);
}

/* Customization Section */
.customization-wrapper {
    display: flex;
    padding: 5rem;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.customization-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.customization-wrapper .text-content {
    flex: 1;
    z-index: 2;
}

.customization-wrapper .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.styled-list {
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.styled-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.styled-list li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 2px;
}

.visual-content {
    flex: 1;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.abstract-visual::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.4;
    }
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 5% 3rem;
    margin-top: 8rem;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.05));
}

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

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-logo span {
    color: var(--text-secondary);
    font-weight: 300;
}

.brand-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-links-group h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.store-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Changelog */
.changelog-entry {
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-self: start;
}

#changelog .grid-2 {
    align-items: start;
}

.version-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.12), rgba(56, 189, 248, 0.08));
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
}

.changelog-list {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    list-style: disc;
    padding-left: 1.25rem;
}

.changelog-list li {
    margin-bottom: 0.6rem;
}

/* Changelog Collapsible */
.changelog-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: inherit;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.changelog-toggle:hover {
    opacity: 0.8;
}

.changelog-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1;
}

.changelog-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(0deg);
}

.changelog-toggle[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

.changelog-groups {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
    max-height: 2000px;
    opacity: 1;
    margin-top: 0.75rem;
}

.changelog-toggle[aria-expanded="false"]+.changelog-groups {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

.store-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
    line-height: 1;
}

.store-buttons .store-btn.disabled .store-icon,
.btn.disabled .store-icon {
    filter: invert(1) opacity(.85);
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 900px) {
    .customization-wrapper {
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .visual-content {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 8rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Space between card titles and their content */
.glass-card h2,
.glass-card h3,
.glass-card .section-title {
    margin-bottom: 1.25rem;
}

/* page-specific spacing tweaks originally defined in index.html */
.glass-card {
    margin-bottom: 28px;
}

.section-container {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ===== Inline styles moved from privacy-policy.html ===== */
/* small page-specific overrides for privacy page layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 8px) 5% 48px;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
    margin-top: 0;
}

/* privacy-specific glass card spacing */
.glass-card.privacy-page {
    margin-bottom: 32px;
}

.glass-card p,
.container>p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section-container {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* helper class for mailto links moved from inline style */
.mailto-accent {
    color: var(--accent-color);
    text-decoration: none;
}