/* ========================================
   CNMSB - 命令行智能补全工具
   CSS Stylesheet
   ======================================== */

/* ----------------------------------------
   CSS Variables
   ---------------------------------------- */
:root {
    --bg: #0a0a0a;
    --bg-elevated: #111111;
    --bg-card: #161616;
    --bg-card-hover: #1a1a1a;
    --accent: #d4ff00;
    --accent-dim: #a8cc00;
    --accent-glow: rgba(212, 255, 0, 0.1);
    --accent-strong-glow: rgba(212, 255, 0, 0.3);
    --text: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(212, 255, 0, 0.3);
    --red: #ff5f56;
    --yellow: #ffbd2e;
    --green: #27c93f;
}

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

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
}

/* ----------------------------------------
   Background Effects
   ---------------------------------------- */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 255, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* ----------------------------------------
   Loading Screen
   ---------------------------------------- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    overflow: visible;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Letter Animation Container */
.letter-animation-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    margin-bottom: 1rem;
}

#letterCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.formed-word {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: clamp(5px, 2vw, 12px);
    color: var(--accent);
    opacity: 0;
    transform: scale(0.8);
    text-shadow: 
        0 0 20px rgba(212, 255, 0, 0.8),
        0 0 40px rgba(212, 255, 0, 0.6),
        0 0 80px rgba(212, 255, 0, 0.4),
        0 0 120px rgba(212, 255, 0, 0.2);
    z-index: 102;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.formed-word.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: wordGlow 2s ease-in-out infinite alternate;
}

@keyframes wordGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(212, 255, 0, 0.8),
            0 0 40px rgba(212, 255, 0, 0.6),
            0 0 80px rgba(212, 255, 0, 0.4);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(212, 255, 0, 1),
            0 0 60px rgba(212, 255, 0, 0.8),
            0 0 100px rgba(212, 255, 0, 0.5),
            0 0 150px rgba(212, 255, 0, 0.3);
    }
}

.formed-word.dissolving {
    opacity: 0;
    transform: scale(1.1);
}

.loading-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    letter-spacing: 10px;
    color: var(--accent);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.loading-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    z-index: 102;
    position: relative;
}

.loading-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.version-selector {
    display: flex;
    gap: 2rem;
    opacity: 0;
    transform: translateY(40px);
    z-index: 200;
    position: relative;
    margin-top: 3rem;
    /* 动画由 JS 控制 */
}

.version-selector.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.version-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem 3rem;
    background: linear-gradient(145deg, rgba(22, 22, 22, 0.9), rgba(10, 10, 10, 0.9));
    border: 1px solid rgba(212, 255, 0, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* 按钮光晕背景 */
.version-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 255, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.version-btn:hover::before {
    opacity: 1;
}

/* 按钮边框发光 */
.version-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(212, 255, 0, 0.3), transparent);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.version-btn:hover::after {
    opacity: 1;
    animation: borderGlow 2s linear infinite;
}

@keyframes borderGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.version-btn:hover {
    border-color: rgba(212, 255, 0, 0.5);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 255, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.version-btn .title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.version-btn:hover .title {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(212, 255, 0, 0.5);
}

.version-btn .desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    transition: color 0.3s ease;
}

.version-btn:hover .desc {
    color: var(--text-secondary);
}

/* 脏话版本特殊样式 */
.version-btn.rude::before {
    background: radial-gradient(ellipse at center, rgba(255, 95, 86, 0.05) 0%, transparent 70%);
}

.version-btn.rude::after {
    background: linear-gradient(45deg, transparent, rgba(255, 95, 86, 0.3), transparent);
}

.version-btn.rude:hover {
    border-color: rgba(255, 95, 86, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 95, 86, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.version-btn.rude:hover .title {
    color: var(--red);
    text-shadow: 0 0 20px rgba(255, 95, 86, 0.5);
}

/* 按钮入场动画 */
.version-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.version-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.loading-progress {
    position: absolute;
    bottom: 10%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loading-progress.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ----------------------------------------
   Main Content Wrapper
   ---------------------------------------- */
.main-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   Navigation
   ---------------------------------------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.5s ease;
}

nav.visible {
    transform: translateY(0);
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

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

.menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.6rem 1.2rem;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.menu-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.version-switch {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.version-switch:hover {
    color: var(--accent);
}

/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 8% 2rem; /* 顶部留出导航栏空间 */
    position: relative;
}

.hero-content {
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bg);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 strong {
    font-weight: 700;
}

.hero h1 .accent {
    color: var(--accent);
    display: block;
}

.hero h1 .project-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    display: block;
    margin-top: 0.5rem;
    text-shadow: 0 0 60px rgba(212, 255, 0, 0.3);
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 255, 0, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: var(--text-muted);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; width: 40px; }
    50% { opacity: 0.5; width: 60px; }
}

/* ----------------------------------------
   Section Common
   ---------------------------------------- */
.section {
    padding: 10rem 8%;
    position: relative;
}

.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    max-width: 800px;
    letter-spacing: -1px;
}

.section-title strong {
    font-weight: 700;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-top: 1.5rem;
    line-height: 1.8;
}

/* ----------------------------------------
   Terminal Showcase
   ---------------------------------------- */
.terminal-showcase {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: var(--red); }
.terminal-dot.yellow { background: var(--yellow); }
.terminal-dot.green { background: var(--green); }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 2.2;
}

.terminal-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-prompt { color: var(--accent); margin-right: 0.75rem; }
.terminal-cmd { color: #fff; font-weight: 500; }
.terminal-suggestion { color: var(--text-muted); }
.terminal-comment { color: var(--text-muted); margin-left: 1rem; font-size: 0.8rem; font-style: italic; }

.terminal-menu {
    margin: 1rem 0 1rem 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border-left: 2px solid var(--accent);
}

.terminal-menu-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
}

.terminal-menu-item.selected { color: var(--accent); }
.terminal-menu-item .arrow { width: 1.5rem; color: var(--accent); }
.terminal-menu-item .name { color: var(--yellow); width: 100px; }
.terminal-menu-item .desc { color: var(--text-muted); font-size: 0.75rem; }

/* ----------------------------------------
   Features Grid
   ---------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.feature-item {
    background: var(--bg-card);
    padding: 3rem;
    transition: all 0.4s;
    position: relative;
}

.feature-item:hover {
    background: var(--bg-card-hover);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ----------------------------------------
   Feature Detail Section
   ---------------------------------------- */
.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

.feature-detail:last-child {
    border-bottom: none;
}

.feature-detail.reverse {
    direction: rtl;
}

.feature-detail.reverse > * {
    direction: ltr;
}

.feature-detail-content {
    max-width: 500px;
}

.feature-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.feature-detail-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-detail-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
}

.feature-visual {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
}

/* ----------------------------------------
   Editor Showcase
   ---------------------------------------- */
.editor-showcase {
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.editor-tabs {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.editor-tab {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.editor-tab.active {
    background: var(--accent);
    color: var(--bg);
}

.editor-body {
    display: grid;
    grid-template-columns: 40px 1fr;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
}

.editor-lines {
    padding: 1.5rem 0;
    text-align: right;
    padding-right: 1rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    user-select: none;
}

.editor-content {
    padding: 1.5rem;
}

.editor-line .keyword { color: #c792ea; }
.editor-line .function { color: #82aaff; }
.editor-line .string { color: #c3e88d; }
.editor-line .comment { color: var(--text-muted); font-style: italic; }
.editor-line .variable { color: #f78c6c; }
.editor-line .suggestion { color: var(--text-muted); background: rgba(212, 255, 0, 0.1); padding: 0 4px; border-radius: 2px; }

/* ----------------------------------------
   Commands Grid
   ---------------------------------------- */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.command-category {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.command-category:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.command-category h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.command-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.command-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.command-tag:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

/* ----------------------------------------
   Shortcuts Grid
   ---------------------------------------- */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.shortcut-item {
    background: var(--bg-card);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: background 0.3s;
}

.shortcut-item:hover {
    background: var(--bg-card-hover);
}

.shortcut-keys {
    display: flex;
    gap: 0.3rem;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

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

/* ----------------------------------------
   Install Section
   ---------------------------------------- */
.install-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid var(--border);
}

.install-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.install-method {
    background: var(--bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.install-method h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.install-method h4::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.code-block {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
    overflow-x: auto;
    position: relative;
}

.code-block .comment { color: var(--text-muted); }
.code-block .cmd { color: var(--accent); }

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ----------------------------------------
   Demo Section
   ---------------------------------------- */
.demo-section {
    background: var(--bg-elevated);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--border);
    text-align: center;
}

.demo-section img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
    text-align: center;
    padding: 12rem 8%;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    position: relative;
}

.cta-title strong {
    font-weight: 700;
    color: var(--accent);
}

.cta-desc {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 8%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
}

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

.footer-links {
    display: flex;
    gap: 2.5rem;
}

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

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ----------------------------------------
   Responsive Design
   ---------------------------------------- */

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

    .commands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .commands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .feature-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-detail.reverse {
        direction: ltr;
    }

    .feature-visual {
        order: -1;
    }

    .terminal-body {
        font-size: 0.8rem;
        padding: 1.5rem;
    }
}

/* Tablet Portrait & Small Devices */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .nav-link {
        display: none;
    }

    .version-switch {
        display: none;
    }

    .menu-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Loading Screen */
    .loading-screen {
        padding: 2rem;
    }

    .letter-animation-container {
        height: 120px;
        margin-bottom: 0.5rem;
    }

    #letterCanvas {
        width: 100%;
        height: 100%;
    }

    .formed-word {
        font-size: clamp(1.8rem, 10vw, 3rem);
        letter-spacing: clamp(3px, 1vw, 6px);
    }

    .loading-logo {
        font-size: clamp(2rem, 12vw, 4rem);
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
    }

    .loading-subtitle {
        font-size: 0.85rem;
        margin-bottom: 2.5rem;
    }

    .version-selector {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .version-btn {
        min-width: 100%;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .version-btn .title {
        font-size: 1rem;
    }

    .version-btn .desc {
        font-size: 0.75rem;
    }

    .loading-progress {
        bottom: 5%;
    }

    .progress-bar {
        width: 150px;
    }

    /* Hero */
    .hero {
        padding: 5rem 5% 3rem;
        min-height: auto;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
        letter-spacing: -1px;
        margin-bottom: 1rem;
    }

    .hero h1 br {
        display: none;
    }

    .hero h1 .project-name {
        font-size: clamp(2rem, 12vw, 4rem);
        letter-spacing: 2px;
        margin-top: 0.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-scroll {
        display: none;
    }

    /* Sections */
    .section {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-label {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .section-label::before {
        width: 20px;
    }

    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .section-desc {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .feature-item {
        padding: 1.5rem;
    }

    .feature-number {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .feature-item p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    /* Feature Detail */
    .feature-detail {
        padding: 3rem 0;
    }

    .feature-detail-label {
        font-size: 0.65rem;
    }

    .feature-detail-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .feature-detail-desc {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .feature-list li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }

    .feature-visual {
        padding: 1rem;
        border-radius: 12px;
    }

    /* Terminal */
    .terminal-showcase {
        border-radius: 12px;
    }

    .terminal-bar {
        padding: 0.75rem 1rem;
    }

    .terminal-dot {
        width: 8px;
        height: 8px;
    }

    .terminal-title {
        font-size: 0.65rem;
    }

    .terminal-body {
        padding: 1rem;
        font-size: 0.7rem;
        line-height: 2;
        overflow-x: auto;
    }

    .terminal-menu {
        margin: 0.75rem 0 0.75rem 1rem;
        padding: 0.75rem;
    }

    .terminal-menu-item .name {
        width: auto;
        margin-right: 0.5rem;
    }

    .terminal-menu-item .desc {
        font-size: 0.6rem;
    }

    .terminal-comment {
        display: none;
    }

    /* Editor */
    .editor-showcase {
        border-radius: 12px;
    }

    .editor-header {
        padding: 0.75rem 1rem;
    }

    .editor-tab {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .editor-body {
        font-size: 0.7rem;
        grid-template-columns: 30px 1fr;
    }

    .editor-lines {
        padding: 1rem 0;
        padding-right: 0.5rem;
    }

    .editor-content {
        padding: 1rem;
        overflow-x: auto;
    }

    /* Commands */
    .commands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .command-category {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .command-category h4 {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    .command-tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    /* Shortcuts */
    .shortcuts-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .shortcut-item {
        padding: 1.25rem;
        gap: 1rem;
    }

    .key {
        min-width: 2rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }

    .shortcut-desc {
        font-size: 0.8rem;
    }

    /* Install */
    .install-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .install-grid {
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .install-method {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .install-method h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .code-block {
        padding: 1rem;
        border-radius: 8px;
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .code-block pre {
        white-space: pre-wrap;
        word-break: break-all;
    }

    .copy-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    /* Demo */
    .demo-section {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .demo-section img {
        border-radius: 8px;
    }

    /* CTA */
    .cta-section {
        padding: 5rem 5%;
    }

    .cta-section::before {
        width: 300px;
        height: 300px;
    }

    .cta-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cta-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

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

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    footer {
        padding: 2rem 5%;
    }

    .footer-logo {
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h1 .project-name {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8rem;
    }

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

    .feature-item {
        padding: 1.25rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .loading-logo {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .loading-subtitle {
        font-size: 0.75rem;
    }

    .version-btn {
        padding: 1.25rem;
    }

    .version-btn .title {
        font-size: 0.9rem;
    }

    .terminal-body {
        font-size: 0.6rem;
    }

    .code-block {
        font-size: 0.6rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero {
        padding: 4rem 4% 2rem;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero h1 .project-name {
        font-size: 1.8rem;
    }

    .section {
        padding: 3rem 4%;
    }

    .loading-logo {
        font-size: 1.6rem;
    }
}

