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

:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4aa;
    --dark-bg: #0a0f1c;
    --card-bg: #1a1f2e;
    --text-primary: #ffffff;
    --text-secondary: #b0b9c9;
    --accent-gradient: linear-gradient(135deg, #0066ff, #00d4aa);
    --danger-color: #ff4757;
    --warning-color: #ffa502;
    --success-color: #2ed573;
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    font-weight: 300; /* thin site-wide default */
}

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

/* Floating Nav (pill-style) */
.floating-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1001;
}

/* Mobile hamburger menu */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-toggle.active {
    background: rgba(0, 102, 255, 0.2);
}

/* Mobile navigation menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
}

.nav-menu.active {
    left: 0;
    display: flex;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu a:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
}

.floating-nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.floating-nav__logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px;
}

.floating-nav__text {
    color: var(--text-primary);
    font-weight: 300;
    font-size: 0.95rem;
}

.floating-nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin: 0 6px;
}

.floating-nav__links a:hover { color: var(--text-primary); }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-image {
    height: 32px;
    width: 32px;
    display: block;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    padding: 4px;
    object-fit: contain;
}

.brand-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Desktop navigation links - hidden on mobile */
.floating-nav__links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.floating-nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.floating-nav__links a:hover {
    color: var(--text-primary);
}

.floating-nav__links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.floating-nav__links a:hover::after {
    width: 100%;
}

/* Duplicate removed - nav-toggle styles defined above */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    position: relative;
    overflow: visible;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.firmwire-mark {
    height: 7rem;
    width: 7rem;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    padding: 4px;
}

.firmwire-text {
    font-size: 7rem;
    font-weight: 100;
}

.hero-subtitle-title {
    font-size: 2rem;
    font-weight: 100;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

/* CSS/JS Logo: gradient wireframe diamond */
.hxg-logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    position: relative;
}

.hxg-logo canvas {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes hxg-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
    color: #0a0f1c;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(10,15,28,0.05);
    border: 1px solid rgba(255,255,255,0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(10,15,28,0.06);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 255, 0.1);
}

/* Security Grid Animation */
/* Hero logo animation */
/* Hero bug field */
/* Particle sphere canvas */
.hero-visual { overflow: visible; position: relative; }

#hero-three {
    width: 100%;
    height: 520px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#hero-three.loaded {
    opacity: 1;
}

/* Hero logo sphere container in the empty right area */
#hero-logo {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: min(432px, 50vw);
    height: min(432px, 50vw);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#hero-logo.loaded {
    opacity: 1;
}

#hero-logo .hxg-logo,
#hero-logo canvas {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    #hero-logo { display: none; }
}

/* Section Styling */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Product Section */
.product-section {
    background: linear-gradient(135deg, rgba(26, 31, 46, 0.8), rgba(10, 15, 28, 0.9));
}

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

.firmwire-logo {
    height: 28px;
    width: auto;
    vertical-align: -6px;
    margin-right: 10px;
}

.firmwire-logo-medium {
    height: 100px;
    width: auto;
    vertical-align: -6px;
    margin-right: 10px;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.key-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.benefit h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Terminal Demo */
.terminal-window {
    background: rgba(10, 15, 28, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.45);
    overflow: hidden;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.08);
}

.terminal-header {
    background: linear-gradient(180deg, rgba(15,23,42,0.7), rgba(15,23,42,0.35));
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

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

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.terminal-title {
    color: #a8c7ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #dbeafe;
}

.terminal-line {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.terminal-line.critical {
    color: #ff4757;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.35);
    font-weight: 700;
}

.terminal-line.high {
    color: #ffa502;
    text-shadow: 0 0 6px rgba(255, 165, 2, 0.25);
    font-weight: 600;
}

.terminal-line.medium {
    color: #ffd166;
    text-shadow: 0 0 5px rgba(255, 209, 102, 0.2);
    font-weight: 600;
}

.badge.cwe {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    margin-left: 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: #0a0f1c;
    background: #ffd166;
}

.typing::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 4px;
}

.terminal-caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #00d4aa;
    vertical-align: -2px;
    margin-left: 2px;
    animation: blink 1s step-start infinite;
}

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

/* Features Section */
.features-section {
    background: var(--dark-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When using the particle logo sphere, remove bright gradient to match site contrast */
.feature-card .feature-icon:has(.hxg-logo) {
    background: transparent;
}

.feature-icon i {
    font-size: 2rem;
    color: #0a0f1c;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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



    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.35);
}

    border-color: rgba(0, 102, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.25);
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.08), rgba(0, 212, 170, 0.06) 60%, rgba(26, 31, 46, 0.6));
}

/* Education now uses .featured styling like Business */

    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

    margin-bottom: 1.75rem;
}

    font-size: 1.1rem;
    vertical-align: top;
    opacity: 0.85;
}

    font-size: 2.6rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

    font-size: 0.95rem;
    color: var(--text-secondary);
}

    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

    text-align: left;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
}

    color: var(--success-color);
    font-size: 1rem;
}

    width: 100%;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82));
    color: #0a0f1c;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(10,15,28,0.05);
}

    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(10,15,28,0.06);
}

/* Force a single row of three tiles on larger screens */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Keep 2x2 layout even on very wide screens */
@media (min-width: 1280px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Download Section */
.download-section {
    background: var(--dark-bg);
    text-align: left;
}

.download-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.download-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Downloads table */
.downloads-table-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.downloads-table {
    width: 100%;
    border-collapse: collapse;
}

.downloads-table thead th {
    text-align: left;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.downloads-table tbody td {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.downloads-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.platform {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.platform i {
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.35);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.download-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.download-link i { margin-right: 6px; }

.link {
    color: var(--primary-color);
    text-decoration: none;
}

.link:hover { text-decoration: underline; }

.older-versions details {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.older-versions summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.older-versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.older-list ul {
    list-style: none;
    padding-left: 0;
}

.older-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.cli-install {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
}

.cli-install h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.install-commands {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
}

.install-commands code {
    flex: 1;
    font-family: 'Fira Code', monospace;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* Team Section */
.team-section {
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.team-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.avatar.default {
    filter: grayscale(100%);
    opacity: 0.7;
}

.team-card:hover .avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-info .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.member-info .bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.badge.project {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 102, 255, 0.3);
}

.badge.role-badge {
    background: rgba(0, 212, 170, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge.project.firmwire {
    background: rgba(0, 102, 255, 0.15);
    color: var(--primary-color);
}

.badge.project.leaksnitch {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border-color: rgba(255, 71, 87, 0.3);
}

.badge.project.farsight {
    background: rgba(255, 165, 2, 0.15);
    color: #ffa502;
    border-color: rgba(255, 165, 2, 0.3);
}

/* Contact Section */
.contact-section {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(120% 120% at 20% 20%, rgba(0, 102, 255, 0.15), transparent 50%),
        radial-gradient(120% 120% at 80% 80%, rgba(0, 212, 170, 0.12), transparent 50%),
        radial-gradient(120% 120% at 40% 60%, rgba(0, 102, 255, 0.08), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
}


.team-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(0, 102, 255, 0.18), transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 170, 0.12), transparent 40%);
    opacity: 0.6;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 102, 255, 0.35);
    box-shadow: var(--shadow-lg);
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: inline-block;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    transition: var(--transition);
    overflow: hidden;
}

.team-card:hover .avatar {
    filter: grayscale(0%);
}

/* Default avatar tweaks to avoid visible square edges */
.avatar.default {
    background-size: 120% auto; /* zoom-in to hide hard edges/padding inside the image */
    background-color: var(--card-bg);
}

/* Logo avatar: keep vivid colors, no grayscale */
.avatar.logo-avatar {
    filter: none;
    background: transparent;
}

/* Ensure feature icons render the particle logo crisply inside their circular container */
.feature-card .feature-icon .hxg-logo {
    width: 100%;
    height: 100%;
    display: block;
}

.member-info h3 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.member-info .role {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.member-info .bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.member-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge.project {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.role-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Project color accents */
.badge.project.firmwire,
.chip.project.firmwire {
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.45);
}

.badge.project.leaksnitch,
.chip.project.leaksnitch {
    background: rgba(0, 212, 170, 0.12);
    border-color: rgba(0, 212, 170, 0.45);
}

/* Farsight project accent (purple) */
.badge.project.farsight,
.chip.project.farsight {
    background: rgba(138, 43, 226, 0.12);
    border-color: rgba(138, 43, 226, 0.45);
}

/* Contributors strip */
.contributors-strip {
    margin-top: 2.5rem;
    background: rgba(15, 22, 38, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.contributors {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.strip-label {
    color: var(--text-secondary);
    margin-right: 0.25rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.chip.person {
    background: rgba(255, 255, 255, 0.06);
}

.contributors .divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.14);
    margin: 0 6px;
}

/* Contact Container */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Contact Hero */
.contact-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-kicker i {
    font-size: 1rem;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Contact Cards */
.contact-card {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-card-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-card-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateX(4px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.contact-badge {
    display: inline-block;
    background: rgba(0, 212, 170, 0.1);
    color: var(--secondary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Social Card */
.social-card {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.social-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.social-link:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.5rem;
}

.social-link span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Form Container */
.contact-form-container {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
}

.form-card {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.form-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header i {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group select:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group select:not([value=""]) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--dark-bg);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.3);
}

.submit-btn i:last-child {
    transition: transform 0.3s ease;
}

.submit-btn:hover i:last-child {
    transform: translateX(4px);
}


/* Office Addresses Section */
.office-section {
    margin-top: 4rem;
}

.office-card {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.1);
}

.office-header {
    text-align: center;
    margin-bottom: 2rem;
}

.office-header i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.office-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.office-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.office-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.office-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.office-item:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateX(4px);
}

.office-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.office-icon i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.office-details h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.office-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
}

.office-badge {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        padding: 0 1rem;
    }
    
    .contact-hero {
        margin-bottom: 3rem;
        padding: 1rem 0;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }
    
    .contact-card,
    .social-card,
    .form-card,
    .office-card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        padding: 0.75rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
    
    .social-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-link {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.75rem;
    }
    
    .social-link i {
        font-size: 1.2rem;
    }
    
    .social-link span {
        font-size: 0.9rem;
    }
    
    .office-section {
        margin-top: 3rem;
    }
    
    .office-addresses {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .office-item {
        padding: 1rem;
    }
    
    .office-icon {
        width: 40px;
        height: 40px;
    }
    
    .office-icon i {
        font-size: 1rem;
    }
    
    .form-card {
        max-width: 100%;
        overflow: hidden;
    }
    
    .contact-form {
        max-width: 100%;
        overflow: hidden;
    }
}






/* Footer */
.footer {
    background: #0a0f1c;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

/* Mini Floating Footer */
.mini-footer {
    position: fixed !important;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%) !important;
    background: rgba(10, 15, 28, 0.95) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 14px;
    display: flex !important;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 9999 !important;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.mini-footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mini-footer__logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px;
}

.mini-footer__text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.mini-footer > span {
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

.mini-footer__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 6px;
}

.mini-footer__links a:hover {
    color: var(--text-primary);
}

/* Themed (neutral) icons inside mini footer */
.mini-footer .social {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition);
}

.mini-footer .social:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.16);
}

/* Keep mini footer always visible */
.footer-visible .mini-footer,
.mini-footer {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    visibility: visible !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .brand-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.footer-social {
    margin-top: 2rem;
    display: flex;
    gap: 12px;
}

.footer-social .social {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social .social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-social .twitter { background: #1DA1F2; }
.footer-social .linkedin { background: #0A66C2; }
.footer-social .github { background: #24292E; }
.footer-social .facebook { background: #1877F2; }
.footer-social .instagram { 
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

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

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Typography weight adjustments (thin site-wide) */
p,
li,
a,
label,
small,
table,
td,
th,
.card p,
.feature-card p,
.download-item p {
    font-weight: 300;
}

h1,
.hero-title {
    font-weight: 600;
}

h2,
.section-header h2 {
    font-weight: 600;
}

h3,
.feature-card h3,
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation fixes */
    .floating-nav {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        padding: 6px 12px;
    }
    
    .floating-nav__links {
        display: none;
    }
    
    .floating-nav__text {
        font-size: 0.85rem;
    }
    
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
    
    .floating-nav__links {
        display: none;
    }
    
    .nav-menu {
        display: flex;
    }
    
    /* Hero section mobile fixes */
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-content {
        order: 2;
        padding: 0 10px;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .hero-kicker {
        flex-direction: column;
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .firmwire-mark {
        height: 2.5rem;
        width: 2.5rem;
    }
    
    .firmwire-text {
        font-size: 2.5rem;
        font-weight: 200;
    }
    
    .hero-subtitle-title {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
        font-weight: 300;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 250px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Hero logo hidden on mobile - duplicate removed */
    
    #hero-three {
        height: 200px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Product section mobile */
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terminal-window {
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Features mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
        padding: 1.5rem 1rem;
        margin-bottom: 0.5rem;
    }
    
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
        margin-bottom: 1rem;
    }
    
        font-size: 2rem;
    }
    
        margin-bottom: 1.5rem;
    }
    
        padding: 0.3rem 0;
        font-size: 0.9rem;
    }
    
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Team section mobile */
    .team-section {
        padding: 2rem 0;
        min-height: auto;
        display: block;
        align-items: stretch;
        justify-content: stretch;
    }
}

/* Medium screens - 3 columns */
@media (max-width: 1200px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Small screens - 2 columns */
@media (max-width: 768px) and (min-width: 481px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile screens - 1 column */
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
    }
    
    /* Download section mobile - better layout */
    .download-content h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .download-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .downloads-table-wrapper {
        overflow-x: auto;
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }
    
    .downloads-table {
        min-width: 500px;
        font-size: 0.85rem;
    }
    
    .downloads-table th,
    .downloads-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .downloads-table th {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    .platform {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .platform img {
        width: 16px;
        height: 16px;
    }
    
    .download-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
        background: rgba(0, 102, 255, 0.1);
        border: 1px solid rgba(0, 102, 255, 0.3);
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .older-versions {
        margin-top: 1rem;
    }
    
    .older-versions details {
        padding: 0.8rem;
    }
    
    .older-versions summary {
        font-size: 0.9rem;
    }
    
    .older-list h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .older-list li {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    /* Contact section mobile - more compact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-info > p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .contact-details {
        margin-bottom: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-item i {
        font-size: 1.2rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        left: 0.8rem;
        top: 0.8rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .map-card {
        padding: 0.8rem;
    }
    
    .map-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    #hq-map {
        height: 250px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mini-footer {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100vw - 20px);
        padding: 6px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .mini-footer__links {
        display: flex;
        gap: 0.5rem;
    }
    
    .mini-footer__links .social {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }
    
    .install-commands {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        padding: 0 10px;
    }
    
    .firmwire-mark {
        height: 3rem;
        width: 3rem;
    }
    
    .firmwire-text {
        font-size: 3rem;
    }
    
    .hero-subtitle-title {
        font-size: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
        padding: 1.5rem;
    }
    
    .team-card {
        padding: 1.2rem;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    .member-info h3 {
        font-size: 1.1rem;
    }
    
    .member-info .role {
        font-size: 0.9rem;
    }
    
    .member-info .bio {
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.9rem;
        font-size: 0.9rem;
    }
    
    .downloads-table th,
    .downloads-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
    }
    
    .platform {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .mini-footer {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .mini-footer__text {
        font-size: 0.8rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure smooth scrolling works across all browsers */
* {
    scroll-behavior: smooth;
}

/* Prevent loading artifacts and sporadic motion */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for all elements */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Prevent layout shifts during loading */
img, canvas, video {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.loading {
    opacity: 0;
    transform: translateY(20px);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent FOUC (Flash of Unstyled Content) */
body {
    visibility: hidden;
}

body.loaded {
    visibility: visible;
}

/* Cross-browser compatibility fixes */
@supports not (backdrop-filter: blur(12px)) {
    .floating-nav,
    .mini-footer {
        background: rgba(10, 15, 28, 0.95);
    }
}

/* Safari-specific fixes */
@supports (-webkit-backdrop-filter: blur(12px)) {
    .floating-nav,
    .mini-footer {
        -webkit-backdrop-filter: blur(12px);
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .floating-nav,
    .mini-footer {
        background: rgba(10, 15, 28, 0.95);
    }
}

/* IE/Edge compatibility */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .floating-nav,
    .mini-footer {
        background: rgba(10, 15, 28, 0.95);
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fallback for browsers that don't support smooth scrolling */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Full-screen sections with scroll snapping - desktop only */
@media (min-width: 769px) {
    body {
        scroll-snap-type: y mandatory;
    }
}

.product-section,
.features-section,
.download-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* account for fixed navbar height */
    padding-top: 72px;
}

.contact-section {
    padding: 4rem 0;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

/* Workshop Page Styles */
.workshop-hero {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.workshop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(120% 120% at 20% 20%, rgba(0, 102, 255, 0.15), transparent 50%),
        radial-gradient(120% 120% at 80% 80%, rgba(0, 212, 170, 0.12), transparent 50%),
        radial-gradient(120% 120% at 40% 60%, rgba(0, 102, 255, 0.08), transparent 50%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.workshop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.workshop-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.workshop-kicker i {
    font-size: 1rem;
}

.workshop-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.workshop-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.workshop-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

.detail-item h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.detail-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* Workshop Overview */
.workshop-overview {
    background: var(--card-bg);
    padding: 6rem 0;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.overview-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.topic-card {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.topic-card:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.topic-card i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.topic-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.topic-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.drone-diagram {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
}

.drone-component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.drone-component:hover {
    background: rgba(0, 102, 255, 0.15);
    transform: scale(1.05);
}

.drone-component i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.drone-component span {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Resources Section */
.resources-section {
    background: var(--dark-bg);
    padding: 6rem 0;
}

.resources-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.1);
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.resource-icon i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.resource-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.resource-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.resource-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.resource-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

/* Prerequisites Section */
.prerequisites-section {
    background: var(--card-bg);
    padding: 6rem 0;
}

.prerequisites-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.prerequisites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.prereq-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.prereq-card:hover {
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.prereq-card h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.prereq-card h3 i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.prereq-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prereq-card li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.prereq-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Workshop Contact */
.workshop-contact {
    background: var(--dark-bg);
    padding: 6rem 0;
    text-align: center;
}

.workshop-contact h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.workshop-contact p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.3);
}

/* Responsive Design for Workshop */
@media (max-width: 768px) {
    .workshop-title {
        font-size: 2.5rem;
    }
    
    .workshop-subtitle {
        font-size: 1.1rem;
    }
    
    .workshop-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .drone-diagram {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .prerequisites-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .workshop-container {
        padding: 0 1rem;
    }
}

/* PDF Embedding Styles */
.pdf-section {
    background: rgba(15, 22, 38, 0.6);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.pdf-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pdf-header h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.pdf-header h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.pdf-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.pdf-container {
    position: relative;
    margin-top: 2rem;
}

.pdf-embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
}

.pdf-fallback {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-secondary);
}

.pdf-fallback i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pdf-fallback h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pdf-fallback a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.pdf-fallback a:hover {
    text-decoration: underline;
}

.section-content {
    margin-bottom: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.content-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-text h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.content-text ul {
    margin: 0;
    padding-left: 1.5rem;
}

.content-text li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.highlight-box p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive PDF Styles */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pdf-embed {
        height: 600px;
    }
    
    .pdf-section {
        padding: 1.5rem;
    }
    
    .pdf-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}
