/* ============================================
   HexCorp.io — Circuit Board Tech Theme
   PCB-inspired dark design matching logo
   ============================================ */

:root {
    --primary: #1A3A8F;
    --primary-light: #2B5BD6;
    --primary-glow: rgba(43,91,214,0.3);
    --accent: #D42B2B;
    --accent-light: #EF4444;
    --accent-glow: rgba(212,43,43,0.25);
    --neon: #00E5FF;
    --neon-dim: rgba(0,229,255,0.15);
    --neon-glow: rgba(0,229,255,0.3);
    --trace: #2A6B4A;
    --trace-light: #34D399;
    --trace-glow: rgba(52,211,153,0.2);
    --bg-dark: #050A18;
    --bg-card: #0B1228;
    --bg-card-hover: #101B3A;
    --bg-surface: #0D1530;
    --bg-elevated: #111D42;
    --border: rgba(43,91,214,0.2);
    --border-hover: rgba(43,91,214,0.5);
    --border-accent: rgba(212,43,43,0.3);
    --text-primary: #E8EDF5;
    --text-secondary: #8B9DC3;
    --text-muted: #5A6F99;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(43,91,214,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    color: var(--text-secondary);
    background: var(--bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.hidden { display: none !important; }

/* ---- Circuit Board Background Pattern ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        /* Grid lines */
        linear-gradient(rgba(43,91,214,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43,91,214,0.04) 1px, transparent 1px),
        /* Larger grid */
        linear-gradient(rgba(43,91,214,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43,91,214,0.06) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
    pointer-events: none;
}

/* ---- Admin Bar ---- */
.admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #020610;
    color: var(--white);
    z-index: 10000;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.admin-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.admin-bar-logo { font-weight: 600; opacity: 0.9; color: var(--neon); }
.admin-bar-actions { display: flex; gap: 8px; }
.admin-btn {
    background: rgba(43,91,214,0.15);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.admin-btn:hover { background: rgba(43,91,214,0.3); border-color: var(--border-hover); }
.admin-btn-logout { background: rgba(212,43,43,0.15); border-color: var(--border-accent); }
.admin-btn-logout:hover { background: rgba(212,43,43,0.3); }

body.admin-active { padding-top: 40px; }
body.admin-active .site-header { top: 40px; }

/* ---- Navigation ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(5,10,24,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.site-header.scrolled {
    background: rgba(5,10,24,0.95);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 22px;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    box-shadow: 0 0 12px rgba(0,229,255,0.1);
    transition: all 0.3s ease;
}
.logo:hover .logo-img {
    border-color: var(--neon);
    box-shadow: 0 0 20px var(--neon-dim);
}
.logo-hex {
    font-size: 28px;
    color: var(--neon);
}
.logo-text {
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.logo-dot {
    color: var(--accent);
    font-weight: 800;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--neon); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}
.mobile-menu {
    padding: 16px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.mobile-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--mono);
    letter-spacing: 0.02em;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--neon);
    color: var(--neon);
    box-shadow: 0 0 15px var(--neon-dim);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
}
.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: var(--bg-dark);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        /* Circuit traces radiating from center */
        radial-gradient(ellipse at 50% 0%, rgba(43,91,214,0.15) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, var(--neon-dim) 0%, transparent 35%);
}
/* Animated circuit trace lines */
.hero-bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        /* Horizontal traces */
        linear-gradient(0deg, transparent 49.5%, rgba(43,91,214,0.08) 49.5%, rgba(43,91,214,0.08) 50.5%, transparent 50.5%),
        /* Vertical traces */
        linear-gradient(90deg, transparent 49.5%, rgba(43,91,214,0.06) 49.5%, rgba(43,91,214,0.06) 50.5%, transparent 50.5%);
    background-size: 60px 60px;
    animation: traceShift 20s linear infinite;
}
@keyframes traceShift {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}
/* Glowing dots at intersections */
.hero-bg-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 2px, rgba(0,229,255,0.2) 0%, transparent 100%);
    background-size: 60px 60px;
    animation: traceShift 20s linear infinite;
}
.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--neon-dim);
    color: var(--neon);
    border: 1px solid rgba(0,229,255,0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.08em;
    font-family: var(--mono);
    text-transform: uppercase;
}
.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.text-gradient {
    background: linear-gradient(135deg, var(--neon) 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
}
.stat {
    text-align: center;
    position: relative;
}
.stat::after {
    content: '';
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 32px;
    background: var(--border);
}
.stat:last-child::after { display: none; }
.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--neon);
    letter-spacing: -0.02em;
    font-family: var(--mono);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--neon-dim);
    color: var(--neon);
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-family: var(--mono);
}
.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---- Products Grid ---- */
.products {
    padding: 100px 0;
    position: relative;
}
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}
.product-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* Circuit trace decoration on card */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--neon), var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}
.product-card:hover::before { opacity: 1; }
.product-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.12);
}
.product-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: var(--accent);
    color: var(--white);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--mono);
}
.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.product-card .product-tagline {
    font-size: 13px;
    color: var(--neon);
    font-weight: 500;
    margin-bottom: 12px;
    font-family: var(--mono);
}
.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-card-features {
    list-style: none;
    margin-bottom: 24px;
}
.product-card-features li {
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-secondary);
}
.product-card-features li::before {
    content: ">";
    color: var(--trace-light);
    font-weight: 700;
    margin-right: 8px;
    font-family: var(--mono);
}
.product-card-price {
    font-size: 14px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.product-card-price strong {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 800;
    font-family: var(--mono);
}

/* ---- More Projects ---- */
.more-projects {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.more-projects-grid {
    max-width: 720px;
    margin: 0 auto;
}
.more-project-card {
    display: flex;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.more-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--neon), var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.more-project-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.more-project-card:hover::before { opacity: 1; }
.more-project-icon {
    font-size: 40px;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.more-project-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.more-project-tagline {
    font-size: 13px;
    color: var(--neon);
    font-weight: 500;
    display: block;
    margin-bottom: 12px;
    font-family: var(--mono);
}
.more-project-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}
.more-project-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.more-project-features li {
    font-size: 13px;
    color: var(--text-secondary);
}
.more-project-features li::before {
    content: ">";
    color: var(--trace-light);
    font-weight: 700;
    margin-right: 8px;
    font-family: var(--mono);
}
@media (max-width: 640px) {
    .more-project-card { flex-direction: column; gap: 20px; }
    .more-project-features { grid-template-columns: 1fr; }
}

/* ---- Features Grid ---- */
.features {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.25s ease;
}
.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: block;
}
.feature-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- About ---- */
.about {
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 720px;
    margin: 0 auto;
}
.about-content .section-tag { margin-bottom: 16px; }
.about-content .section-title {
    text-align: left;
    margin-bottom: 24px;
}
.about-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.highlight-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.highlight strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.highlight span {
    font-size: 13px;
    color: var(--text-muted);
}
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.about-card {
    width: 280px;
    height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-elevated) 50%, var(--accent) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(43,91,214,0.1);
    overflow: hidden;
}
/* Circuit pattern overlay on card */
.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}
.about-card-hex {
    font-size: 120px;
    opacity: 0.1;
    position: absolute;
    top: 20px;
}
.about-card-content {
    position: relative;
    text-align: center;
}
.about-card-number {
    display: block;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: var(--mono);
    text-shadow: 0 0 40px rgba(0,229,255,0.3);
}
.about-card-label {
    font-size: 16px;
    opacity: 0.7;
    font-weight: 500;
    font-family: var(--mono);
}

/* ---- Testimonials ---- */
.testimonials {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s ease;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}
.testimonial-stars {
    color: #FBBF24;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    font-family: var(--mono);
}
.testimonial-author-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
}
.testimonial-author-info span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 100px 0;
}
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-elevated) 60%, var(--accent) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}
.cta-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
}
.cta-text {
    font-size: 16px;
    opacity: 0.75;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
}

/* ---- Contact ---- */
.contact {
    padding: 100px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-info .section-tag { margin-bottom: 16px; }
.contact-info .section-title {
    text-align: left;
    margin-bottom: 16px;
}
.contact-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.contact-item span {
    font-size: 13px;
    color: var(--text-muted);
}
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    color: var(--text-primary);
    transition: border-color 0.2s;
    background: var(--bg-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px var(--neon-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group select {
    color: var(--text-muted);
}

/* ---- Footer ---- */
.site-footer {
    background: #020610;
    color: var(--text-muted);
    padding: 80px 0 0;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: var(--text-primary); }
.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
}
.footer-links h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--mono);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--neon); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
}
.footer-legal {
    display: flex;
    gap: 24px;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: var(--neon); }

/* ---- Edit Mode (inline editing) ---- */
[data-editable].editable-active {
    outline: 2px dashed var(--neon);
    outline-offset: 4px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: outline-color 0.2s;
}
[data-editable].editable-active:hover {
    outline-color: var(--accent-light);
    background: rgba(0,229,255,0.04);
}
[data-editable].editable-active::after {
    content: "Click to edit";
    position: absolute;
    top: -24px;
    left: 0;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    font-family: var(--mono);
}
[data-editable].editable-active:hover::after { opacity: 1; }

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    overflow: hidden;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-body label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--mono);
}
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    resize: vertical;
    color: var(--text-primary);
    background: var(--bg-dark);
}
.modal-body textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 0 3px var(--neon-dim);
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-elevated);
    color: var(--neon);
    border: 1px solid var(--border);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 30000;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    font-family: var(--mono);
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-title { font-size: 48px; }
    .section-title { font-size: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-visual { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .btn-sm.nav-btn { display: none; }
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-stats { gap: 32px; }
    .stat-number { font-size: 24px; }
    .stat::after { display: none; }
    .hero-cta { flex-direction: column; align-items: center; }
    .products-grid { flex-direction: column; align-items: center; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 48px 24px; }
    .cta-title { font-size: 28px; }
    .cta-actions { flex-direction: column; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .admin-bar-logo { display: none; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
