/* ============================================
   KayingAIShell Official Website Styles
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
    /* Colors - Dark Theme Inspired by Catppuccin */
    --bg-darker: #0a0a0f;
    --bg-dark: #11111b;
    --bg-base: #1e1e2e;
    --bg-surface: #181825;
    --bg-muted: #313244;
    --bg-subtle: #45475a;

    --text-primary: #cdd6f4;
    --text-secondary: #bac2de;
    --text-muted: #6c7086;
    --text-subtle: #585b70;

    --accent-primary: #89b4fa;
    --accent-secondary: #cba6f7;
    --accent-tertiary: #f5c2e7;
    --accent-success: #a6e3a1;
    --accent-warning: #f9e2af;
    --accent-danger: #f38ba8;
    --accent-cyan: #94e2d5;
    --accent-orange: #fab387;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #89b4fa, #cba6f7);
    --gradient-hero: linear-gradient(135deg, #89b4fa 0%, #cba6f7 50%, #f5c2e7 100%);
    --gradient-card: linear-gradient(145deg, rgba(49, 50, 68, 0.5) 0%, rgba(24, 24, 37, 0.8) 100%);
    --gradient-glow: radial-gradient(circle, rgba(137, 180, 250, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(137, 180, 250, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Layout */
    --container-max: 1200px;
    --nav-height: 72px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(17, 17, 27, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(69, 71, 90, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
}

.nav-logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

.nav-link-github {
    padding: 0.5rem 1rem;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    border: 1px solid var(--bg-subtle);
}

.nav-link-github:hover {
    background: var(--bg-subtle);
}

.nav-github-icon {
    width: 18px;
    height: 18px;
}

/* Language Selector */
.nav-language-selector {
    position: relative;
}

.nav-language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: var(--bg-muted);
    border: 1px solid var(--bg-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
}

.nav-language-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--text-muted);
}

.nav-language-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.nav-language-current {
    font-weight: 500;
}

.nav-language-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.nav-language-selector.active .nav-language-arrow {
    transform: rotate(180deg);
}

.nav-language-dropdown {
    position: absolute;
    top: calc(100% + var(--space-sm));
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--bg-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.nav-language-selector.active .nav-language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-language-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    font-size: 0.9rem;
}

.nav-language-option:hover {
    background: var(--bg-muted);
}

.nav-language-option:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.nav-language-option:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(17, 17, 27, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-xl);
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 99;
    border-bottom: 1px solid var(--bg-subtle);
}

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

.mobile-menu-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--bg-muted);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + var(--space-4xl));
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(137, 180, 250, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(203, 166, 247, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(137, 180, 250, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(203, 166, 247, 0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(137, 180, 250, 0.2), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(166, 227, 161, 0.15), transparent),
        radial-gradient(3px 3px at 130px 80px, rgba(245, 194, 231, 0.2), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(148, 226, 213, 0.15), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid rgba(137, 180, 250, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title-line {
    display: block;
}

.hero-title-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-subtle);
}

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

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

/* Hero Terminal */
.hero-terminal {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: var(--space-4xl) auto 0;
    padding: 0 var(--space-xl);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.terminal-window {
    background: var(--bg-surface);
    border: 1px solid var(--bg-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.terminal-header {
    background: var(--bg-base);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    border-bottom: 1px solid var(--bg-muted);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

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

.terminal-btn-close {
    background: #f38ba8;
}

.terminal-btn-minimize {
    background: #f9e2af;
}

.terminal-btn-maximize {
    background: #a6e3a1;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

.terminal-tabs {
    display: flex;
    gap: var(--space-xs);
    margin-left: auto;
}

.terminal-tab {
    padding: 0.35rem 0.75rem;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.terminal-tab-active {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.terminal-tab-add {
    padding: 0.35rem 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    min-height: 280px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.terminal-line-output {
    padding-left: var(--space-lg);
}

.terminal-prompt {
    color: var(--accent-success);
    font-weight: 600;
}

.terminal-prompt-remote {
    color: var(--accent-secondary);
}

.terminal-path {
    color: var(--accent-cyan);
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-info {
    color: var(--text-muted);
}

.terminal-success {
    color: var(--accent-success);
}

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

.terminal-table-header {
    color: var(--text-muted);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(137, 180, 250, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-muted);
    border-color: var(--text-muted);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid rgba(137, 180, 250, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.section-tag-dark {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-title-light {
    color: #fff;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-description-light {
    color: rgba(255, 255, 255, 0.8);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-4xl) 0;
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-subtle);
    box-shadow: var(--shadow-lg);
}

.feature-card-main {
    grid-row: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon-blue {
    background: rgba(137, 180, 250, 0.15);
    color: var(--accent-primary);
}

.feature-icon-purple {
    background: rgba(203, 166, 247, 0.15);
    color: var(--accent-secondary);
}

.feature-icon-pink {
    background: rgba(245, 194, 231, 0.15);
    color: var(--accent-tertiary);
}

.feature-icon-green {
    background: rgba(166, 227, 161, 0.15);
    color: var(--accent-success);
}

.feature-icon-orange {
    background: rgba(250, 179, 135, 0.15);
    color: var(--accent-orange);
}

.feature-icon-cyan {
    background: rgba(148, 226, 213, 0.15);
    color: var(--accent-cyan);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-lg);
}

.feature-list li {
    padding: var(--space-sm) 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-success);
    font-weight: 600;
}

/* ============================================
   Terminal Features Section
   ============================================ */
.terminal-features {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.terminal-features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.terminal-features-text {
    max-width: 500px;
}

.terminal-features-list {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.terminal-feature-item {
    display: flex;
    gap: var(--space-lg);
}

.terminal-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.terminal-feature-icon svg {
    width: 20px;
    height: 20px;
}

.terminal-feature-content h4 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.terminal-feature-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Code Block */
.code-block {
    background: var(--bg-surface);
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: var(--bg-base);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px solid var(--bg-muted);
}

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

.code-dot-red {
    background: #f38ba8;
}

.code-dot-yellow {
    background: #f9e2af;
}

.code-dot-green {
    background: #a6e3a1;
}

.code-title {
    margin-left: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.code-content {
    padding: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    display: block;
}

.code-keyword {
    color: var(--accent-secondary);
}

.code-property {
    color: var(--accent-primary);
}

.code-string {
    color: var(--accent-success);
}

.code-number {
    color: var(--accent-orange);
}

.code-boolean {
    color: var(--accent-tertiary);
}

/* ============================================
   Platforms Section
   ============================================ */
.platforms {
    padding: var(--space-4xl) 0;
    background: var(--bg-darker);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.platform-card {
    background: var(--gradient-card);
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    transition: all var(--transition-normal);
}

.platform-card:hover {
    transform: translateY(-4px);
    border-color: var(--bg-subtle);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.platform-icon svg {
    width: 40px;
    height: 40px;
}

.platform-icon-macos {
    background: linear-gradient(135deg, #3a3a3c, #1c1c1e);
    color: #fff;
}

.platform-icon-windows {
    background: linear-gradient(135deg, #00a4ef, #0078d4);
    color: #fff;
}

.platform-icon-harmonyos {
    background: linear-gradient(135deg, #e84033, #d93025);
    color: #fff;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.platform-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.platform-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-muted);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Shortcuts Section
   ============================================ */
.shortcuts {
    padding: var(--space-4xl) 0;
    background: var(--bg-dark);
}

.shortcuts-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    align-items: start;
}

.shortcuts-text {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.shortcut-item {
    background: var(--bg-surface);
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all var(--transition-fast);
}

.shortcut-item:hover {
    border-color: var(--bg-subtle);
    background: var(--bg-base);
}

.shortcut-keys {
    display: flex;
    gap: var(--space-xs);
}

.shortcut-keys kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--space-sm);
    background: var(--bg-muted);
    border: 1px solid var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: 0 2px 0 var(--bg-subtle);
}

.shortcut-action {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   Tech Stack Section
   ============================================ */
.tech-stack {
    padding: var(--space-4xl) 0;
    background: var(--bg-darker);
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-surface);
    border: 1px solid var(--bg-muted);
    border-radius: var(--radius-xl);
    min-width: 140px;
    transition: all var(--transition-normal);
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--bg-subtle);
    box-shadow: var(--shadow-md);
}

.tech-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.tech-logo svg {
    width: 40px;
    height: 40px;
}

.tech-logo-electron {
    color: var(--accent-cyan);
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

.download-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.download-text {
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-2xl);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.download-btn-icon {
    width: 40px;
    height: 40px;
    color: var(--text-primary);
}

.download-btn-text {
    text-align: left;
}

.download-btn-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.download-btn-platform {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-note {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-note a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.download-glow {
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(137, 180, 250, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: var(--space-4xl) 0 var(--space-2xl);
    border-top: 1px solid var(--bg-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

.footer-link-group h4 {
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.footer-link-group a {
    display: block;
    padding: var(--space-xs) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--bg-muted);
}

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

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

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

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

    .feature-card-main {
        grid-row: span 1;
    }

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

    .terminal-features-visual {
        order: -1;
    }

    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms-grid .platform-card:last-child {
        grid-column: span 2;
        max-width: 400px;
        justify-self: center;
    }

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

    .shortcuts-text {
        position: static;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--nav-height) + var(--space-2xl));
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .hero-stat-divider {
        display: none;
    }

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

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

    .platforms-grid .platform-card:last-child {
        grid-column: span 1;
        max-width: none;
    }

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

    .tech-grid {
        gap: var(--space-lg);
    }

    .tech-item {
        min-width: 120px;
        padding: var(--space-lg);
    }

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

    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .terminal-tabs {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-lg);
    }

    .hero-terminal {
        padding: 0 var(--space-md);
    }

    .terminal-body {
        padding: var(--space-md);
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }
}

/* Smooth scroll offset for anchor links */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + var(--space-xl));
}
