/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

:root {
    --bg-primary: #051a05;
    --bg-secondary: #031203;
    --bg-card: #082508;
    --bg-card-hover: #0a3a0a;
    --green-primary: #00ff00;
    --green-secondary: #00cc00;
    --green-dark: #009900;
    --yellow-primary: #ffeb3b;
    --yellow-secondary: #ffd600;
    --text-primary: #00ff00;
    --text-secondary: #00cc00;
    --text-muted: #008800;
    --border-color: rgba(0, 255, 0, 0.15);
    --border-hover: rgba(0, 255, 0, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rajdhani', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Убираем синее выделение везде */
a, button, input, .nav-logo, .app-card, .team-card,
.feature-card, .btn-primary, .btn-secondary, .dl-button {
    -webkit-tap-highlight-color: transparent !important;
    outline: none;
}

a:focus, button:focus, input:focus {
    outline: none;
}

/* ===== HEADINGS - КИБЕРНЕТИЧЕСКИЕ ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--yellow-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--green-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-secondary); }

/* ===== GRID BACKGROUND ===== */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 255, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ===== MATRIX CANVAS ===== */
#matrixCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.08;
    pointer-events: none;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--green-primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    20%  { opacity: 0.6; }
    80%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 0, 0.10) 0%,
        rgba(0, 255, 0, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-glow.active { opacity: 1; }

@media (hover: none), (pointer: coarse) {
    .cursor-glow { display: none; }
}

/* ===== NAVBAR - УЛУЧШЕННЫЙ ЛОГОТИП ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 26, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 18, 3, 0.97);
    box-shadow: 0 4px 30px rgba(0,255,0,0.08);
}

/* === ЛОГОТИП - УЛУЧШЕН === */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    background: rgba(255, 235, 59, 0.05);
}

.nav-logo:active,
.nav-logo:focus {
    outline: none;
    background: rgba(255, 235, 59, 0.05);
}

.nav-logo-icon {
    width: 52px;
    height: 52px;
    border: 2px solid var(--yellow-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 22px;
    color: var(--yellow-primary);
    background: rgba(255, 235, 59, 0.05);
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-logo:hover .nav-logo-icon {
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.4);
    transform: scale(1.05);
    border-color: var(--yellow-secondary);
}

.nav-logo-text {
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--text-primary);
    line-height: 1;
}

.nav-logo-text span {
    color: var(--yellow-primary);
    text-shadow: 0 0 15px rgba(255, 235, 59, 0.4);
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: block;
    font-family: 'Rajdhani', sans-serif;
}

.nav-links a:hover {
    color: var(--yellow-primary);
    background: rgba(255, 235, 59, 0.08);
}

.nav-links a.active {
    color: var(--yellow-primary);
    background: rgba(255, 235, 59, 0.12);
}

.nav-cta {
    padding: 10px 22px !important;
    background: transparent;
    border: 1px solid var(--yellow-primary);
    color: var(--yellow-primary) !important;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-cta:hover {
    background: var(--yellow-primary) !important;
    color: var(--bg-primary) !important;
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
}

/* ===== MOBILE TOGGLE ===== */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
    width: 20px; height: 2px;
    background: var(--green-primary);
    border-radius: 2px;
    display: block;
    transition: all 0.3s ease;
}

.mobile-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) { opacity: 0; }

.mobile-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 140px 40px 80px;
}

.hero-content { text-align: center; max-width: 900px; width: 100%; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--green-primary);
    margin-bottom: 30px;
    background: rgba(0,255,0,0.06);
    animation: fadeInDown 0.8s ease;
    letter-spacing: 2px;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    background: var(--green-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,255,0,0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,255,0,0); }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(48px, 9vw, 110px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: 4px;
    animation: fadeInUp 0.8s ease 0.1s both;
    color: var(--yellow-primary);
    word-break: break-word;
}

.hero-title .highlight {
    color: var(--yellow-primary);
    text-shadow:
        0 0 20px rgba(255, 235, 59, 0.5),
        0 0 40px rgba(255, 235, 59, 0.3),
        0 0 60px rgba(255, 235, 59, 0.2);
}

.hero-subtitle-code {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(14px, 2vw, 18px);
    color: var(--green-primary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
    word-break: break-word;
    letter-spacing: 1px;
}

.hero-subtitle-code span { color: var(--yellow-secondary); }

.typing-cursor {
    display: inline-block;
    width: 3px; height: 1em;
    background: var(--green-primary);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-description {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s both;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ===== BUTTONS ===== */
.btn-primary {
    padding: 14px 36px;
    background: var(--yellow-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 235, 59, 0.4);
    color: var(--bg-primary);
}

.btn-secondary {
    padding: 14px 36px;
    background: transparent;
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    font-family: 'Rajdhani', sans-serif;
}

.btn-secondary:hover {
    background: rgba(0, 255, 0, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

/* ===== STATS ===== */
.stats-bar {
    position: relative;
    z-index: 1;
    padding: 0 40px;
    margin-bottom: 100px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stat-item {
    background: var(--bg-secondary);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover { background: var(--bg-card); }

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    color: var(--yellow-primary);
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(11px, 1.2vw, 13px);
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== SECTIONS ===== */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--green-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--yellow-primary);
    letter-spacing: 2px;
}

.section-desc {
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--text-primary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

.line-decoration {
    width: 50px; height: 2px;
    background: var(--yellow-primary);
    margin: 0 auto 20px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

/* ===== FEATURES ===== */
.features-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,255,0,0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255, 235, 59, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--yellow-primary);
    letter-spacing: 1px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 500;
}

/* ===== ABOUT ===== */
.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--green-primary);
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 24px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    line-height: 2;
    overflow-x: auto;
}

.terminal-line {
    opacity: 0;
    animation: terminalType 0.4s ease forwards;
    white-space: nowrap;
}

@keyframes terminalType {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.terminal-line .prompt  { color: var(--yellow-primary); }
.terminal-line .command { color: var(--green-primary); }
.terminal-line .output  { color: var(--text-primary); padding-left: 16px; display: block; }

.about-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--yellow-primary);
    letter-spacing: 1px;
}

.about-text h3 span {
    color: var(--yellow-primary);
    text-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
}

.about-text p {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 500;
}

.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.about-tag {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--green-primary);
    background: rgba(0,255,0,0.04);
    letter-spacing: 1px;
}

/* ===== TEAM ===== */
.team-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-dark), var(--yellow-primary));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 26px;
    font-weight: 700;
    color: var(--bg-primary);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    border-color: var(--yellow-primary);
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.3);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--yellow-primary);
    letter-spacing: 1px;
}

.team-role {
    font-size: 13px;
    color: var(--green-primary);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

/* ===== CTA ===== */
.cta-section { position: relative; z-index: 1; padding: 100px 40px; }

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--yellow-primary);
    letter-spacing: 2px;
}

.cta-box p {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 32px;
    font-weight: 500;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== APPS PAGE ===== */
.page-header {
    position: relative; z-index: 1;
    padding: 150px 40px 60px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--yellow-primary);
    letter-spacing: 2px;
}

.page-header h1 span {
    color: var(--yellow-primary);
    text-shadow: 0 0 30px rgba(255, 235, 59, 0.4);
}

.page-header p {
    color: var(--text-primary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 500;
}

.search-bar {
    max-width: 500px;
    margin: 30px auto 0;
    position: relative;
    padding: 0 10px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    letter-spacing: 1px;
}

.search-bar input::placeholder { color: var(--text-muted); }

.search-bar input:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 20px rgba(0,255,0,0.15);
}

.search-icon {
    position: absolute;
    left: 26px; top: 50%;
    transform: translateY(-50%);
    color: var(--green-primary);
    font-size: 18px;
}

.apps-section { position: relative; z-index: 1; padding: 60px 40px 100px; }

.apps-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.app-card:hover, .app-card:active {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,255,0,0.1);
}

.app-card:hover::before, .app-card:active::before { opacity: 1; }

.app-card-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }

.app-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(255, 235, 59, 0.12);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

.app-card:hover .app-icon {
    border-color: var(--yellow-primary);
    box-shadow: 0 0 20px rgba(255, 235, 59, 0.2);
}

.app-info { flex: 1; min-width: 0; }

.app-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--yellow-primary);
    word-break: break-word;
    letter-spacing: 1px;
}

.app-version {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--green-primary);
    letter-spacing: 1px;
}

.app-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.app-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.app-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.app-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
    background: rgba(0,255,0,0.06);
    color: var(--green-primary);
    border: 1px solid rgba(0,255,0,0.12);
    letter-spacing: 1px;
}

.app-arrow {
    color: var(--yellow-primary);
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.app-card:hover .app-arrow, .app-card:active .app-arrow { transform: translateX(4px); }

/* ===== DOWNLOAD PAGE ===== */
.breadcrumb {
    position: relative; z-index: 1;
    padding: 110px 40px 0;
    max-width: 900px; margin: 0 auto;
    word-break: break-word;
}

.breadcrumb a {
    color: var(--green-primary);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.breadcrumb a:hover { color: var(--yellow-primary); }
.breadcrumb span { color: var(--text-muted); margin: 0 8px; }

.breadcrumb .current {
    color: var(--yellow-primary);
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

.download-page { position: relative; z-index: 1; padding: 40px 40px 100px; max-width: 900px; margin: 0 auto; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 24px;
    padding: 8px 0;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

.back-link:hover { color: var(--yellow-primary); }

.dl-header {
    display: flex; align-items: flex-start; gap: 24px;
    margin-bottom: 40px; padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: relative; overflow: hidden;
}

.dl-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-dark), var(--yellow-primary), var(--green-dark));
}

.dl-icon {
    width: 80px; height: 80px;
    border-radius: 18px;
    background: rgba(255, 235, 59, 0.12);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

.dl-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.dl-info { flex: 1; min-width: 0; }

.dl-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--yellow-primary);
    word-break: break-word;
    letter-spacing: 2px;
}

.dl-version {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--green-primary);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.dl-short-desc {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.dl-meta { display: flex; gap: 20px; margin-top: 16px; flex-wrap: wrap; }

.dl-meta-item {
    display: flex; align-items: center; gap: 6px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--green-primary);
    letter-spacing: 1px;
}

.dl-meta-item .val { color: var(--yellow-primary); }

.dl-button-section { margin-bottom: 40px; }

.dl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 44px;
    background: var(--yellow-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-height: 56px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dl-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 235, 59, 0.5);
    color: var(--bg-primary);
}

.dl-size {
    font-size: 13px;
    color: var(--green-primary);
    margin-top: 10px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

.dl-warning {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 16px; padding: 14px 18px;
    background: rgba(255, 235, 59, 0.05);
    border: 1px solid rgba(255, 235, 59, 0.2);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.dl-section { margin-bottom: 36px; }

.dl-section-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    color: var(--yellow-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.dl-section-content {
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
}

.dl-section-content p { margin-bottom: 12px; }

.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border-color); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 12px 0; font-size: 14px; vertical-align: top; font-weight: 500; }
.info-table td:first-child {
    font-family: 'Share Tech Mono', monospace;
    color: var(--green-primary);
    width: 200px;
    font-size: 13px;
    padding-right: 16px;
    letter-spacing: 1px;
}
.info-table td:last-child { color: var(--text-primary); word-break: break-word; }

.steps { counter-reset: step; }

.step {
    display: flex; gap: 16px;
    margin-bottom: 20px; padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.step:hover { border-color: var(--border-hover); }

.step-number {
    counter-increment: step;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255, 235, 59, 0.15);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 14px;
    color: var(--yellow-primary);
    flex-shrink: 0;
}

.step-number::before { content: counter(step); }

.step-content { flex: 1; min-width: 0; }

.step-content h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--yellow-primary);
    letter-spacing: 1px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 500;
}

.code-block {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--green-primary);
    margin: 12px 0;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    letter-spacing: 1px;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.screenshot {
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot:hover {
    border-color: var(--yellow-primary);
    box-shadow: 0 8px 30px rgba(255, 235, 59, 0.15);
    transform: translateY(-4px);
}

.screenshot:hover img {
    transform: scale(1.05);
}

.screenshot-placeholder {
    aspect-ratio: 16/10;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

/* ===== SCREENSHOT MODAL ===== */
.screenshot-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
    animation: fadeInModal 0.3s ease;
}

.screenshot-modal.open { display: flex; }

.screenshot-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 60px rgba(0, 255, 0, 0.2);
    animation: zoomIn 0.3s ease;
}

.screenshot-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    color: var(--green-primary);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.screenshot-modal-close:hover {
    background: var(--yellow-primary);
    color: var(--bg-primary);
    border-color: var(--yellow-primary);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    padding: 40px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.footer-logo span { color: var(--yellow-primary); }

.footer-copy {
    color: var(--green-primary);
    font-size: 13px;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-links a {
    color: var(--green-primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links a:hover { color: var(--yellow-primary); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar { padding: 0 24px; }
    .hero { padding: 120px 24px 60px; }
    .section { padding: 80px 24px; }
    .cta-section { padding: 80px 24px; }
    .stats-bar { padding: 0 24px; }
    .apps-section { padding: 60px 24px 80px; }
    .download-page { padding: 30px 24px 80px; }
    .breadcrumb { padding: 110px 24px 0; }
    .footer { padding: 30px 24px; }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 600px) {
    .navbar {
        padding: 0 16px;
        height: 72px;
    }

    .nav-logo-text {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .nav-logo-icon {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .nav-logo {
        gap: 12px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(3, 18, 3, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border-color);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 14px 18px;
        font-size: 15px;
        text-align: left;
        width: 100%;
    }

    .nav-cta { text-align: center; margin-top: 8px; }
    .mobile-toggle { display: flex; }

    .hero {
        padding: 110px 16px 60px;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn-primary, .btn-secondary { width: 100%; }

    .stats-bar {
        padding: 0 16px;
        margin-bottom: 60px;
    }

    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 24px 12px; }

    .features-grid, .team-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 28px 24px; }

    .section { padding: 60px 16px; }
    .cta-section { padding: 60px 16px; }
    .cta-box { padding: 36px 24px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .about-grid { gap: 30px; }
    .terminal-body { padding: 18px; font-size: 13px; }

    .footer { padding: 30px 16px; }
    .footer-content { flex-direction: column; text-align: center; gap: 16px; }
    .footer-left { flex-direction: column; gap: 8px; }
    .footer-links { justify-content: center; gap: 16px; }

    .page-header { padding: 120px 16px 40px; }
    .apps-section { padding: 40px 16px 60px; }
    .apps-grid { grid-template-columns: 1fr; gap: 16px; }
    .app-card { padding: 24px; }

    .breadcrumb { padding: 100px 16px 0; }
    .download-page { padding: 24px 16px 60px; }
    .dl-header { flex-direction: column; padding: 24px; gap: 18px; }
    .dl-icon { width: 70px; height: 70px; font-size: 30px; }
    .dl-meta { gap: 12px; flex-direction: column; }
    .dl-button { width: 100%; padding: 16px 24px; }
    .screenshots { grid-template-columns: 1fr; }

    .info-table td { display: block; padding: 6px 0; }
    .info-table td:first-child { width: 100%; padding-bottom: 2px; color: var(--green-primary); }
    .info-table td:last-child { padding-bottom: 14px; padding-left: 0; }
    .info-table tr { border-bottom: 1px solid var(--border-color); }
    .step { padding: 16px; }
    .code-block { font-size: 12px; padding: 14px; }
}

/* ===== VERY SMALL PHONES ===== */
@media (max-width: 380px) {
    .navbar { padding: 0 12px; }
    .nav-logo-text { font-size: 18px; letter-spacing: 2px; }
    .nav-logo-icon { width: 42px; height: 42px; }
    .nav-logo { gap: 10px; }
    .hero { padding: 100px 12px 50px; }
    .section { padding: 50px 12px; }
    .cta-section { padding: 50px 12px; }
    .apps-section { padding: 40px 12px 50px; }
    .page-header { padding: 110px 12px 30px; }
    .download-page { padding: 20px 12px 50px; }
    .breadcrumb { padding: 100px 12px 0; }
    .feature-card, .app-card, .dl-header { padding: 20px; }
    .cta-box { padding: 28px 20px; }
    .terminal-body { padding: 14px; font-size: 12px; }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero { min-height: auto; padding-top: 110px; padding-bottom: 50px; }
}
