/* ============================================
   Terminal++ Website — Style Sheet
   Modern, dark-themed design
   ============================================ */

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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #141420;
    --bg-card-hover: #1a1a2e;
    --bg-elevated: #1e1e30;

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-tertiary: #6b6b82;

    --accent-blue: #4d9fff;
    --accent-purple: #a855f7;
    --accent-green: #22c55e;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --accent-teal: #14b8a6;
    --accent-amber: #f59e0b;
    --accent-cyan: #06b6d4;

    --gradient-primary: linear-gradient(135deg, #4d9fff, #a855f7);
    --gradient-hero: linear-gradient(135deg, #4d9fff 0%, #a855f7 50%, #14b8a6 100%);

    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(77, 159, 255, 0.15);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(77, 159, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(77, 159, 255, 0.45);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(77, 159, 255, 0.12) 0%, rgba(168, 85, 247, 0.06) 50%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(77, 159, 255, 0.1);
    border: 1px solid rgba(77, 159, 255, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* === App Window Mockup === */
.app-window {
    background: #1a1a28;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-window.small {
    box-shadow: var(--shadow-md);
}

.window-chrome {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.window-tabs {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.window-tab {
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.window-tab.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.window-tab-add {
    padding: 4px 8px;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.window-body {
    display: flex;
    min-height: 300px;
}

.window-body.terminal-only {
    display: block;
}

.window-body.rdp-mock {
    display: block;
    min-height: 280px;
}

/* === Mock Sidebar === */
.mock-sidebar {
    width: 200px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border-color);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mock-sidebar-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    margin-bottom: 4px;
}

.mock-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: default;
    transition: background 0.3s ease, color 0.3s ease;
}

.mock-sidebar-item.active {
    background: rgba(77, 159, 255, 0.12);
    color: var(--text-primary);
}

.mock-sidebar-item[data-session="rdp"].active {
    background: rgba(168, 85, 247, 0.12);
}

.mock-sidebar-item[data-session="sftp"].active {
    background: rgba(34, 197, 94, 0.12);
}

.mock-sidebar-item[data-session="local"].active {
    background: rgba(249, 115, 22, 0.12);
}

.mock-sidebar-item[data-session="docker"].active {
    background: rgba(6, 182, 212, 0.12);
}

.mock-icon {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.02em;
}

.mock-icon.ssh { background: rgba(77, 159, 255, 0.2); color: var(--accent-blue); }
.mock-icon.rdp { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }
.mock-icon.sftp { background: rgba(34, 197, 94, 0.2); color: var(--accent-green); }
.mock-icon.local { background: rgba(249, 115, 22, 0.2); color: var(--accent-orange); }
.mock-icon.docker { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); font-size: 0.75rem; }

.mock-sidebar-tabs {
    margin-top: auto;
    display: flex;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.mock-tab {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    padding: 4px 6px;
    border-radius: 4px;
}

.mock-tab.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* === Mock Terminal === */
.mock-terminal {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.6;
    flex: 1;
}

.term-line {
    white-space: nowrap;
    overflow: hidden;
}

.term-prompt { color: #22c55e; font-weight: 600; }
.term-colon { color: var(--text-tertiary); }
.term-path { color: var(--accent-blue); }
.term-dollar { color: var(--text-tertiary); }
.term-cmd { color: var(--text-primary); }
.term-output { color: var(--text-secondary); }
.term-header { color: var(--text-tertiary); font-weight: 600; }
.term-green { color: #22c55e; }
.term-yellow { color: #f59e0b; }
.term-red { color: #ef4444; }

.term-cursor {
    color: var(--text-primary);
    animation: blink 1s infinite;
}

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

.term-line-enter {
    animation: lineAppear 0.25s ease-out both;
}

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

/* === RDP Desktop Mock === */
.rdp-desktop {
    display: flex;
    flex-direction: column;
    height: 280px;
    background: linear-gradient(135deg, #0078d4 0%, #004e8c 100%);
    position: relative;
}

.rdp-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}

.rdp-start {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 4px;
}

.rdp-start:hover {
    background: rgba(255, 255, 255, 0.1);
}

.rdp-taskbar-items {
    display: flex;
    gap: 4px;
    flex: 1;
}

.rdp-taskbar-item {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.rdp-taskbar-item.active {
    background: rgba(255, 255, 255, 0.12);
    border-bottom: 2px solid #0078d4;
}

.rdp-clock {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
}

.rdp-content {
    flex: 1;
    padding: 20px;
}

.rdp-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 70px);
    gap: 16px;
}

.rdp-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: default;
}

.rdp-icon-img {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rdp-icon span {
    font-size: 0.6rem;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* === SFTP Browser Mock === */
.sftp-browser {
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.sftp-breadcrumb {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-blue);
    font-size: 0.72rem;
}

.sftp-table {
    padding: 0;
}

.sftp-header {
    display: flex;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sftp-row {
    display: flex;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    transition: background 0.15s;
}

.sftp-row.folder .sftp-col-name {
    color: var(--accent-blue);
}

.sftp-col-name { flex: 2; }
.sftp-col-size { flex: 0.8; text-align: right; }
.sftp-col-perm { flex: 1; text-align: right; color: var(--text-tertiary); }

/* === AI Chat Mock === */
.ai-chat-mock {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    display: flex;
    gap: 10px;
}

.ai-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-avatar { background: rgba(77, 159, 255, 0.2); color: var(--accent-blue); }
.ai-avatar-bot { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }

.ai-bubble {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 90%;
}

.user-bubble {
    background: rgba(77, 159, 255, 0.12);
    color: var(--text-primary);
}

.ai-bubble-bot {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.ai-bubble-bot p {
    margin-bottom: 8px;
}

.ai-bubble-bot p:last-child {
    margin-bottom: 0;
}

.ai-bubble-bot code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
}

.ai-code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin: 8px 0;
}

.ai-code-block code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-primary);
    background: none;
    padding: 0;
    display: block;
    margin-bottom: 8px;
}

.ai-code-actions {
    display: flex;
    gap: 6px;
}

.ai-btn {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.ai-btn.primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

/* === Macro Mock === */
.macro-mock {
    padding: 16px;
    font-family: var(--font-sans);
}

.macro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.macro-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.macro-steps {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.macro-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.macro-step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.macro-step code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-primary);
    flex: 1;
}

.macro-delay {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    width: 40px;
    text-align: right;
}

.macro-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.macro-btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.macro-btn.run {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}

.macro-btn.edit {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.badge-blue { background: rgba(77, 159, 255, 0.1); border-color: rgba(77, 159, 255, 0.2); color: var(--accent-blue); }
.badge-purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }
.badge-green { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); color: var(--accent-green); }
.badge-orange { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.2); color: var(--accent-orange); }
.badge-red { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: var(--accent-red); }
.badge-teal { background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.2); color: var(--accent-teal); }
.badge-amber { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.badge-cyan { background: rgba(6, 182, 212, 0.1); border-color: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); }

.section-header h2,
.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Feature Overview Cards === */
.features-overview {
    padding: 100px 0;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    display: block;
    position: relative;
    overflow: hidden;
}

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

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-ssh::before { background: var(--gradient-primary); }
.card-rdp::before { background: linear-gradient(90deg, var(--accent-purple), #c084fc); }
.card-sftp::before { background: linear-gradient(90deg, var(--accent-green), #4ade80); }
.card-local::before { background: linear-gradient(90deg, var(--accent-orange), #fb923c); }
.card-ai::before { background: linear-gradient(90deg, var(--accent-teal), #2dd4bf); }
.card-docker::before { background: linear-gradient(90deg, var(--accent-cyan), #22d3ee); }
.card-security::before { background: linear-gradient(90deg, var(--accent-red), #f87171); }

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

.card-ssh .card-icon { background: rgba(77, 159, 255, 0.1); color: var(--accent-blue); }
.card-rdp .card-icon { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.card-sftp .card-icon { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.card-local .card-icon { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.card-ai .card-icon { background: rgba(20, 184, 166, 0.1); color: var(--accent-teal); }
.card-docker .card-icon { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }
.card-security .card-icon { background: rgba(239, 68, 68, 0.1); color: var(--accent-red); }

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-arrow {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    transition: transform 0.2s, color 0.2s;
}

.feature-card:hover .card-arrow {
    transform: translateX(4px);
    color: var(--text-primary);
}

/* === Feature Sections (Split Layout) === */
.feature-section {
    padding: 100px 0;
}

.feature-section.alt-bg {
    background: var(--bg-secondary);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.feature-split.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.feature-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 14px;
}

.feature-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item-icon.blue { background: rgba(77, 159, 255, 0.1); color: var(--accent-blue); }
.feature-item-icon.purple { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.feature-item-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.feature-item-icon.orange { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.feature-item-icon.teal { background: rgba(20, 184, 166, 0.1); color: var(--accent-teal); }
.feature-item-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); }
.feature-item-icon.cyan { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* === Security Grid === */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.security-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.security-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.security-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.security-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === Feature Grid (Full List) === */
.feature-grid-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.feature-grid-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.grid-tab {
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.grid-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.grid-tab.active {
    background: rgba(77, 159, 255, 0.12);
    border-color: rgba(77, 159, 255, 0.3);
    color: var(--accent-blue);
}

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

.grid-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.grid-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.grid-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.grid-dot.blue { background: var(--accent-blue); }
.grid-dot.purple { background: var(--accent-purple); }
.grid-dot.green { background: var(--accent-green); }
.grid-dot.orange { background: var(--accent-orange); }
.grid-dot.red { background: var(--accent-red); }
.grid-dot.teal { background: var(--accent-teal); }
.grid-dot.cyan { background: var(--accent-cyan); }

/* === CTA Section === */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(77, 159, 255, 0.08) 0%, rgba(168, 85, 247, 0.04) 50%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
}

.cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.coffee-link {
    display: inline-block;
    font-size: 0.88rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

.coffee-link:hover {
    color: var(--accent-amber);
}

/* === Footer === */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    transition: color 0.2s;
}

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

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

/* === Animations === */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.05s; }
.feature-card:nth-child(3) { transition-delay: 0.1s; }
.feature-card:nth-child(4) { transition-delay: 0.15s; }
.feature-card:nth-child(5) { transition-delay: 0.2s; }
.feature-card:nth-child(6) { transition-delay: 0.25s; }
.feature-card:nth-child(7) { transition-delay: 0.3s; }

.security-card:nth-child(1) { transition-delay: 0s; }
.security-card:nth-child(2) { transition-delay: 0.05s; }
.security-card:nth-child(3) { transition-delay: 0.1s; }
.security-card:nth-child(4) { transition-delay: 0.15s; }
.security-card:nth-child(5) { transition-delay: 0.2s; }
.security-card:nth-child(6) { transition-delay: 0.25s; }

/* === Responsive === */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }

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

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

    .feature-split,
    .feature-split.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .feature-visual { order: -1; }

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.open { display: flex; }

    .nav-toggle { display: flex; }

    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero h1 { font-size: 2.5rem; }

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

    .feature-cards {
        grid-template-columns: 1fr;
    }

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

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

    .feature-grid-tabs {
        gap: 4px;
    }

    .grid-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

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

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

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

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

    .app-window.small .mock-terminal {
        font-size: 0.65rem;
    }
}
