:root {
    font-size: 14px;
    letter-spacing: 0.1em;
    --font-title: 'Orbitron', sans-serif;
    --font-base: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --bg: #090d12;
    --bg-strong: #070a0f;
    --surface: #111823;
    --surface-elev: #172131;
    --surface-glass: rgba(16, 22, 33, 0.72);
    --surface-glow: rgba(29, 47, 72, 0.6);
    --panel-border: rgba(137, 164, 204, 0.18);
    --panel-border-strong: rgba(137, 164, 204, 0.32);
    --text: #e7edf7;
    --text-muted: #9fb1cc;
    --text-soft: #6f87a6;
    --accent: #5fe6ff;
    --accent-tint: #5fe6ffdd;
    --accent-strong: #8fffe8;
    --accent-warm: #ff8c42;
    --accent-danger: #ff6f76;
    --accent-success: #5ee3a1;
    --accent-success-tint: #5ee3a1dd;
    --shadow-strong: 0 30px 60px rgba(4, 6, 12, 0.65);
    --shadow-soft: 0 14px 30px rgba(7, 10, 18, 0.5);
    --radius-lg: 0px;
    --radius-md: 0px;
    --radius-sm: 0px;
    --radius-pill: 4px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --transition-fast: 160ms var(--ease-soft);
    --transition-medium: 260ms var(--ease-out);
    --transition-slow: 420ms var(--ease-out);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base), sans-serif;
    color: var(--text);
    background: var(--bg-strong);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(94, 227, 161, 0.12), transparent 52%),
    radial-gradient(circle at 30% 10%, rgba(95, 230, 255, 0.2), transparent 48%),
    linear-gradient(130deg, #070a0f 0%, #0c121b 50%, #0b0f16 100%);
    pointer-events: none;
    z-index: -1;
}

a {
    color: var(--accent-warm);
    text-decoration: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 32px;
    background: rgba(9, 13, 18, 0.8);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--panel-border);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title), sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
}

/* Brand Glow Animation */
@keyframes brandGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(95, 230, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(95, 230, 255, 0.6));
    }
}

.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    animation: brandGlow 3s ease-in-out infinite;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    font-family: var(--font-title), sans-serif;
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-title), sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.1em;
    line-height: 1.1;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.eula {
    margin: 2rem auto;
    max-width: 600px;
}

/* Buttons */
.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--bg-strong);
    font-family: var(--font-title), sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(95, 230, 255, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(95, 230, 255, 0.4);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-title), sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(95, 230, 255, 0.1);
}

/* Download Button Styles */
.download-button-wrapper {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    gap: 0;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 8px 16px 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--bg-strong);
    font-family: var(--font-title), sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(95, 230, 255, 0.3);
    position: relative;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(95, 230, 255, 0.4);
}

.download-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-success), var(--accent));
    border-radius: var(--radius-pill);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(10px);
}

.download-button:hover::before {
    opacity: 0.5;
}

.download-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.download-content span:first-child {
    font-size: 0.875rem;
    font-weight: 600;
}

.download-subtext {
    font-size: 0.65rem;
    opacity: 0.85;
    letter-spacing: 0.05em;
}

.dropdown-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out);
    font-size: 0.6rem;
}

.dropdown-arrow::after {
    content: '▼';
    display: block;
    font-size: 1rem;
    transition: transform 0.3s var(--ease-out);
}

.download-button.open .dropdown-arrow::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface-elev);
    border: 1px solid var(--panel-border-strong);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out);
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu .option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font-base), sans-serif;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-menu .option:hover {
    background: rgba(95, 230, 255, 0.1);
    color: var(--accent);
}

.dropdown-menu .option.active {
    background: rgba(95, 230, 255, 0.15);
    color: var(--accent);
    font-weight: 600;
}

.os-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: currentColor;
}

/* Screenshots Section */
.screenshots {
    padding: 120px 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 22, 33, 0.5) 50%, transparent 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-eyebrow {
    font-family: var(--font-title), sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-success);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-title), sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.screenshot-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
}

.screenshot-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: none;
}

.screenshot-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.screenshot-card.wide {
    grid-column: span 2;
    grid-row: span 1;
}

.screenshot-card.tall {
    grid-column: span 1;
    grid-row: span 2;
}

@media (max-width: 1200px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .screenshot-card.large,
    .screenshot-card.wide,
    .screenshot-card.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.screenshot-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.screenshot-image {
    width: 100%;
    /*height: 100%;*/
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    transition: none;
}

.screenshot-caption {
    background: linear-gradient(180deg, rgba(7, 10, 15, 0.6) 0%, rgba(7, 10, 15, 0.95) 100%);
    padding: 8px 24px 24px;
    margin-top: 0;
}

.screenshot-caption h3 {
    font-family: var(--font-title), sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    color: var(--text);
}

.screenshot-caption p {
    color: var(--text-soft);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 120px 32px;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--surface-glass);
    border: 1px solid var(--panel-border);
    padding: 40px;
    transition: all var(--transition-medium);
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.feature-content {
    flex: 1;
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(95, 230, 255, 0.05);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.feature-card h3 {
    font-family: var(--font-title), sans-serif;
    font-size: 1.125rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-soft);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 120px 32px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(94, 227, 161, 0.08) 50%, transparent 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-title), serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.cta-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 32px;
}

.price-original {
    font-size: 1.5rem;
    color: var(--text-soft);
    text-decoration: line-through;
}

.price-current {
    font-family: var(--font-title), sans-serif;
    font-size: 3rem;
    color: var(--accent-success);
}

.price-note {
    font-size: 0.875rem;
    color: var(--text-soft);
}

/* Footer */
.footer {
    padding: 48px 32px;
    border-top: 1px solid var(--panel-border);
    text-align: center;
}

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

.footer-brand {
    font-family: var(--font-title), sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
}

.footer p {
    color: var(--text-soft);
    font-size: 0.875rem;
}

.api-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--surface-glass);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono), monospace;
    font-size: 0.75rem;
    color: var(--text-soft);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.offline {
    background: var(--accent-danger);
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .screenshots,
    .features,
    .cta-section {
        padding: 80px 16px;
    }

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

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

/* Corner accents for panels */
.corner-accent {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-warm);
    pointer-events: none;
}

.corner-accent-tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.corner-accent-tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.corner-accent-bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.corner-accent-br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.hero-content {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) forwards;
}

.hero-eyebrow {
    opacity: 0;
    animation: fadeInDown 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}

.hero-actions {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-out) 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s var(--ease-out);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s var(--ease-out);
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) {
    transition-delay: 0ms;
}

.feature-card:nth-child(2) {
    transition-delay: 100ms;
}

.feature-card:nth-child(3) {
    transition-delay: 200ms;
}

.feature-card:nth-child(4) {
    transition-delay: 300ms;
}

.feature-card:nth-child(5) {
    transition-delay: 400ms;
}

.feature-card:nth-child(6) {
    transition-delay: 500ms;
}

.feature-card:hover {
    border-color: var(--accent);
    background: rgba(95, 230, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(95, 230, 255, 0.1);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--accent));
}

.feature-icon {
    transition: all 0.4s var(--ease-out);
}

.screenshot-card {
    opacity: 1;
    transform: none;
    transform-style: flat;
    perspective: none;
    transition: none;
}

.screenshot-card.revealed {
    opacity: 1;
    transform: none;
}

.screenshot-card[data-delay="0"].revealed,
.screenshot-card[data-delay="100"].revealed,
.screenshot-card[data-delay="200"].revealed {
    transition-delay: 0ms;
}

.screenshot-card {
    position: relative;
    overflow: hidden;
}

.screenshot-card .screenshot-image {
    transition: none;
}

.screenshot-card:hover .screenshot-image {
    transform: none;
}

.screenshot-card::before {
    content: none;
}

/* Gradient Border Animation */
@keyframes gradientRotate {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.primary-button {
    background-size: 200% 200%;
    animation: gradientRotate 3s ease infinite;
}

/* Glowing Button Effect */
.primary-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), var(--accent-success), var(--accent));
    border-radius: var(--radius-pill);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    filter: blur(10px);
}

.primary-button {
    position: relative;
}

.primary-button:hover::before {
    opacity: 0.5;
}

/* Navigation Link Hover Effect */
.nav-links a {
    position: relative;
}

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

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


/* Section Header Animations */
.section-header .section-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.section-header .section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out) 0.1s;
}

.section-header .section-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out) 0.2s;
}

.section-header.revealed .section-eyebrow,
.section-header.revealed .section-title,
.section-header.revealed .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section Special Animation */
.cta-section .price-tag {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s var(--ease-out) 0.3s;
}

.cta-section.revealed .price-tag {
    opacity: 1;
    transform: scale(1);
}

/* Price Tag Pulse */
@keyframes pricePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.price-current {
    animation: pricePulse 2s ease-in-out infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}