html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #050507;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(24px);
    --code-bg: #0c0c12;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --section-padding: 120px 10%;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mesh Gradient Background */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(5, 5, 7, 1) 0%, transparent 100%);
    z-index: -1;
    transition: background 0.5s ease;
}

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 40%, #6366f1 70%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1.6px;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1.02;
    max-width: 9ch;
    min-height: 2.2em;
    animation: shine 10s linear infinite;
}

.gradient-text .typed-text {
    display: inline;
}

.gradient-text .typed-caret {
    display: inline-block;
    width: 0.08em;
    height: 0.88em;
    margin-left: 0.08em;
    border-radius: 2px;
    background: rgba(223, 228, 255, 0.95);
    vertical-align: -0.08em;
    animation: caret-blink 0.9s steps(1, end) infinite;
}

.gradient-text.typing-done .typed-caret {
    opacity: 0.8;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes caret-blink {
    0%,
    48% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-text .typed-caret {
        animation: none;
        opacity: 1;
    }
}

/* Navbar */
.navbar {
    padding: 1.5rem 10%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar.scrolled {
    padding: 1rem 10%;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-actions {
        justify-content: flex-start;
        gap: 2rem;
    }
}

/* ... existing button styles ... */

.version-tag {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-hero-kofi {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hero-kofi img {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 5px rgba(114, 165, 242, 0.5));
}

.btn-hero-kofi:hover {
    background: rgba(114, 165, 242, 0.1);
    border-color: #72A5F2;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(114, 165, 242, 0.2);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

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

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

.nav-links a:hover {
    color: #fff;
}

/* Buttons */
.btn-primary {
    background: #fff;
    color: #000;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: var(--glass-bg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 180px 8% 100px;
    text-align: center;
    gap: 4.5rem;
    overflow: hidden;
    max-width: 1800px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: 160px 10%;
        gap: 2.5rem;
    }

    .hero-content {
        flex: 1.35;
        max-width: 760px;
    }

    .hero-mockup {
        flex: 1.2;
        display: block;
    }
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1.4rem 0 2.4rem;
}

.version-tag {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: transform 0.5s;
}

.hero-mockup:hover .app-mockup {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: -50px;
    right: -50px;
    opacity: 0.2;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: #00f2ff;
    bottom: -50px;
    left: -50px;
    opacity: 0.1;
}

/* App Mockup Simulation */
.app-mockup-wrapper {
    perspective: 1000px;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.app-window {
    background: rgba(15, 15, 17, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.app-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.app-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 40px;
}

.app-content {
    padding: 2.5rem;
}

.dropdown-sim {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.timer-display {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #10b981;
    /* Emerald */
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.timer-part.blinking {
    animation: tick-flash 1s step-end infinite;
}

.app-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-sim {
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: default;
}

.btn-sim.start {
    background: #10b981;
    color: white;
}

.btn-sim.pause {
    background: #f59e0b;
    color: white;
}

.btn-sim.stop {
    background: #ef4444;
    color: white;
}

.pulsing {
    animation: pulse-glow 2s infinite;
}

.task-input-sim {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotateX(2deg) rotateY(-5deg);
    }

    50% {
        transform: translateY(-20px) rotateX(-2deg) rotateY(5deg);
    }
}

@keyframes tick-flash {
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Features */
.features {
    padding: var(--section-padding);
    max-width: 1800px;
    margin: 0 auto;
}

.section-header h2 {
    font-size: 3.5rem;
    letter-spacing: -2px;
    margin-bottom: 4rem;
    text-align: center;
}

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

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
}

.feature-card {
    padding: 3rem;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon,
.os-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon img,
.os-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon img,
.os-card:hover .os-icon img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Setup Section */
.setup {
    padding: var(--section-padding);
    max-width: 1800px;
    margin: 0 auto;
}

.setup-container {
    max-width: 900px;
    margin: 0 auto;
}

.setup-step {
    display: flex;
    gap: 3rem;
    margin-bottom: 6rem;
    align-items: flex-start;
}

.step-info {
    flex: 1;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.step-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.step-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.code-container {
    flex: 1.5;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.code-block pre {
    color: #e0e0e0;
}

.code-keyword {
    color: #c678dd;
}

.code-string {
    color: #98c379;
}

.code-property {
    color: #e06c75;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.code-inline {
    display: inline-block;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.16);
    border: 1px solid rgba(99, 102, 241, 0.36);
    color: #dfe3ff;
    font-family: var(--font-mono);
    font-size: 0.82em;
}

@media (max-width: 900px) {
    .setup-step {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Shortcuts Section */
.shortcuts {
    padding: var(--section-padding);
    max-width: 1800px;
    margin: 0 auto;
}

.shortcuts-intro {
    margin: 0.9rem auto 0;
    max-width: 760px;
    color: var(--text-secondary);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    gap: 2rem;
    align-items: start;
}

.shortcuts-card {
    padding: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.shortcuts-card h3 {
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.shortcuts-card>p {
    color: var(--text-secondary);
}

.shortcuts-prefix-banner {
    margin-top: 1.15rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.19), rgba(99, 102, 241, 0.06));
    color: #dbe2ff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.prefix-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(219, 226, 255, 0.85);
}

.shortcut-columns {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.shortcut-group {
    margin-top: 0;
}

.shortcut-group h4,
.shortcut-note h4 {
    color: #eef1ff;
    font-size: 0.94rem;
    letter-spacing: 0.2px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.shortcut-scope-meta {
    font-size: 0.74rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(170, 181, 228, 0.95);
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(170, 181, 228, 0.35);
    background: rgba(170, 181, 228, 0.1);
}

.shortcut-table {
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(11, 12, 22, 0.9), rgba(8, 9, 17, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.shortcut-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.82rem 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.22s ease;
}

.shortcut-row:first-child {
    border-top: 0;
}

.shortcut-row:hover {
    background: rgba(138, 153, 255, 0.09);
}

.shortcut-keys {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #f6f8ff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.38rem 0.65rem;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.shortcut-action {
    color: #f0f2ff;
    font-size: 0.91rem;
    font-weight: 600;
}

.setup-list {
    margin: 1.1rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
    color: rgba(227, 232, 255, 0.9);
    line-height: 1.45;
}

.setup-list li::marker {
    color: #8fa1ff;
    font-weight: 700;
}

.shortcut-note {
    margin-top: 1.6rem;
    border: 1px solid rgba(143, 161, 255, 0.28);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: rgba(143, 161, 255, 0.08);
}

.shortcut-note ul {
    list-style: none;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.55rem;
    color: #d8def8;
    font-size: 0.95rem;
}

.shortcut-note li {
    position: relative;
}

.shortcut-note li::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 0.63rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #92a5ff;
}

@media (max-width: 1200px) {
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-columns {
        grid-template-columns: 1fr;
    }
}

/* Download Section */
.download {
    padding: var(--section-padding);
    max-width: 1800px;
    margin: 0 auto;
}

.download-container {
    padding: 80px;
    text-align: center;
}

.download-container h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.download-intro {
    margin: -1.6rem auto 2.2rem;
    color: var(--text-secondary);
    max-width: 760px;
}

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

.os-card {
    padding: 2.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.os-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

.os-icon {
    margin-bottom: 1rem;
}

.btn-download {
    margin-top: 1.5rem;
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-download:hover {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(114, 165, 242, 0.3);
}

.download-note {
    margin-top: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.unsigned-warning {
    margin-top: 2rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 175, 109, 0.45);
    background: rgba(255, 175, 109, 0.09);
    color: #ffd7b0;
    text-align: left;
    font-size: 0.95rem;
}

.btn-kofi:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(114, 165, 242, 0.5);
    background: #5a91e6;
}

.btn-kofi img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Footer Section */
footer {
    padding: 40px 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        padding-top: 150px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-mockup {
        width: 100%;
    }

    .nav-links {
        display: none;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-columns {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .shortcuts-card {
        padding: 1.35rem;
    }

    .shortcuts-prefix-banner {
        align-items: flex-start;
    }

    .shortcut-group h4 {
        flex-direction: column;
        align-items: flex-start;
    }

    .shortcut-row {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .shortcut-keys {
        justify-self: start;
        white-space: normal;
        text-align: left;
    }
}
