:root {
    --color-bg: #0d0d0d;
    --color-surface: #1a1a1a;
    --color-border: #3d3d3d;
    --color-text: #e8e8e8;
    --color-accent: #ff6700;
    --font-mono: 'JetBrains Mono', monospace;
}

@media (prefers-color-scheme: light) {
    :root {
        --color-bg: oklch(0.92 0.025 87.3);
        --color-surface: oklch(0.8595 0.0329 87.3);
        --color-border: oklch(0.65 0.04 87.3);
        --color-text: oklch(0.18 0.02 60);
        --color-accent: #e55a00;
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
}

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

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

* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--color-bg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

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

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

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

/* Buttons */
.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.3);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    box-shadow: 3px 3px 0 0 var(--color-border);
    transition: all 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 var(--color-border);
}

.btn-icon {
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    border: 1px solid var(--color-accent);
    border-radius: 2px;
    box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.3);
}

.btn-icon.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: 3px 3px 0 0 var(--color-border);
}

.btn-icon.btn-secondary:hover {
    box-shadow: 2px 2px 0 0 var(--color-border);
}

.btn-icon svg {
    flex-shrink: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-bg-svg {
    position: absolute;
    left: -10%;
    bottom: 5%;
    width: 500px;
    height: 500px;
    opacity: 0.15;
    transform: rotate(-35deg);
    z-index: 0;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.hero-content {
    z-index: 1;
}

.hero-screenshots {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-carousel {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.screenshot-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.screenshot.active {
    opacity: 1;
}

.screenshot-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background: var(--color-text);
    transform: scale(1.2);
}

.dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    animation: slideIn 0.8s ease-out backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.1s;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(3) {
    animation-delay: 0.3s;
}

.title-line.accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.8125rem;
    opacity: 0.6;
    font-style: italic;
    max-width: 500px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    max-width: 400px;
    animation: float 6s ease-in-out infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--color-accent);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--color-border);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.875rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.step {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.step-reverse {
    grid-template-columns: 1fr 300px;
}

.step-reverse .step-visual {
    order: 2;
}

.step-visual svg {
    width: 100%;
    height: auto;
}

.step-number {
    font-size: 0.875rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.step-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.9375rem;
    opacity: 0.8;
    line-height: 1.7;
}

/* Tailscale Section */
.tailscale {
    padding: 8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tailscale-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tailscale-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.tailscale-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.7;
}

.tailscale-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tailscale-features li {
    font-size: 0.9375rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    opacity: 0.8;
}

.tailscale-features li:before {
    content: "→ ";
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 0.5rem;
}

.tailscale-visual {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tailscale-visual svg {
    width: 100%;
    max-width: 300px;
}

/* Download Section */
.download {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.download-content>p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-note {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.download-disclaimer {
    font-size: 0.8125rem;
    opacity: 0.7;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

/* Footer */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-section a {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-section p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 6rem;
    }

    .hero-screenshots {
        order: -1;
    }

    .hero-bg-svg {
        width: 350px;
        height: 350px;
        left: 50%;
        transform: translateX(-50%) rotate(-15deg);
        bottom: auto;
        top: 15%;
    }

    .hero-title {
        font-size: 3rem;
    }

    .step,
    .step-reverse {
        grid-template-columns: 1fr;
    }

    .step-reverse .step-visual {
        order: 0;
    }

    .nav-links {
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .tailscale-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-buttons .btn-primary {
        width: 100%;
        max-width: 300px;
    }
}

/* Privacy Page */
.privacy-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.05em;
}

.privacy-section p {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.privacy-section ul {
    list-style: none;
    margin: 1rem 0;
}

.privacy-section ul li {
    font-size: 0.9375rem;
    line-height: 1.8;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    opacity: 0.9;
}

.privacy-section ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.privacy-section a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid var(--color-accent);
    transition: opacity 0.2s;
}

.privacy-section a:hover {
    opacity: 0.7;
}

.privacy-date {
    font-size: 0.875rem;
    opacity: 0.6;
    font-style: italic;
}

.privacy-cta {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .privacy-content h1 {
        font-size: 2rem;
    }

    .privacy-section h2 {
        font-size: 1.25rem;
    }

    .privacy-cta {
        flex-direction: column;
    }
}

/* Devlog Specific Styles */
.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.version-subtitle {
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.privacy-section h3 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}