/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #09090b;
    color: #fafafa;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
    --bg-primary: #09090b;
    --bg-card: #111113;
    --bg-card-hover: #18181b;
    --bg-elevated: #1c1c1f;
    --border-subtle: #27272a;
    --border-medium: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.08);
    --gradient-start: #e4e4e7;
    --gradient-end: #71717a;
    --glow: rgba(255, 255, 255, 0.04);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --max-width: 1200px;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAV
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(9, 9, 11, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.nav-brand .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

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

.nav-links .nav-link-icon svg {
    width: 18px;
    height: 18px;
}

.nav-links .nav-link-danger {
    color: #f87171;
    font-weight: 600;
}

.nav-links .nav-link-danger:hover {
    color: #fca5a5;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 18px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
}

/* Mobile nav */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 8px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--accent-dim);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 24px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 32px rgba(0, 0, 0, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--accent-dim);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ========================================
   APP PREVIEW
   ======================================== */
.app-preview {
    padding: 0 0 120px;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.preview-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.preview-window {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(255, 255, 255, 0.02);
}

.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-subtle);
}

.preview-dot:nth-child(1) {
    background: #ef4444;
}

.preview-dot:nth-child(2) {
    background: #eab308;
}

.preview-dot:nth-child(3) {
    background: #22c55e;
}

.preview-body {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.preview-slideshow {
    position: relative;
    width: 100%;
}

.preview-slideshow img {
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.preview-slideshow img.active {
    position: relative;
    opacity: 1;
}

.preview-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.preview-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.preview-dots button.active {
    background: var(--text-primary);
    transform: scale(1.3);
}

/* Glow effect behind preview */
.preview-container::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   FEATURES
   ======================================== */
.features {
    padding: 80px 0 120px;
}

.features-header {
    text-align: center;
    margin-bottom: 64px;
}

.features-header .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.features-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.features-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-4px);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xs);
    background: var(--accent-dim);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
}

.footer-socials a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero {
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 16px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .preview-body {
        padding: 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .app-preview {
        padding-bottom: 80px;
    }
}

/* ========================================
   DOT GRID BACKGROUND
   ======================================== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -10;
    opacity: 0.4;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   DISCLAIMER
   ======================================== */
.disclaimer {
    padding: 80px 0;
}

.disclaimer-box {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.1) 0%, #161619 50%);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius);
    padding: 48px 48px 40px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(239, 68, 68, 0.04), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.disclaimer-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444 30%, #f87171 50%, #ef4444 70%, transparent);
}

.disclaimer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.disclaimer-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xs);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.disclaimer-icon svg {
    width: 24px;
    height: 24px;
    color: #f87171;
}

.disclaimer-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f87171;
    margin-bottom: 4px;
    opacity: 0.8;
}

.disclaimer-box h2 {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fca5a5;
    line-height: 1;
}

.disclaimer-lead {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.12);
}

.disclaimer-lead strong {
    color: #f87171;
    font-weight: 600;
}

.disclaimer-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.disclaimer-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.disclaimer-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-item-icon svg {
    width: 16px;
    height: 16px;
    color: #f87171;
}

.disclaimer-item strong {
    display: inline;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fca5a5;
    margin-bottom: 4px;
}

.disclaimer-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.disclaimer-item p strong {
    color: #f87171;
}

/* ========================================
   LINUX SETUP
   ======================================== */
.linux-setup {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
    background: rgba(34, 197, 94, 0.04);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: left;
    position: relative;
    overflow: hidden;
    max-width: 620px;
}

.linux-setup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.4), transparent);
}

.linux-setup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #4ade80;
    text-transform: uppercase;
}

.linux-setup-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.85;
    fill: #4ade80;
}

.linux-setup-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.linux-setup-steps li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #4ade80;
    flex-shrink: 0;
}

.step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.step-content code {
    font-family: 'SFMono-Regular', 'Cascadia Code', 'Fira Code', Consolas, monospace;
    font-size: 0.83rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    color: #e4e4e7;
    letter-spacing: 0.01em;
}

@media (max-width: 640px) {
    .linux-setup {
        width: 100%;
        max-width: 100%;
    }

    .disclaimer-box {
        padding: 32px 24px;
    }
}