/* ============================================
   JOLT SYSTEMS — Authorized LMNA3.2/IJL2.2 Reseller
   "The Last Security Framework You'll Ever Need"
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #060a10;
    --bg-secondary: #0c1220;
    --bg-card: rgba(12, 18, 32, 0.85);
    --bg-card-hover: rgba(18, 28, 48, 0.95);
    --border-subtle: rgba(0, 229, 255, 0.1);
    --border-accent: rgba(0, 229, 255, 0.3);
    --border-green: rgba(0, 255, 136, 0.3);
    --cyan: #00e5ff;
    --cyan-dim: #0097a7;
    --green: #00ff88;
    --green-dim: #00c853;
    --purple: #a855f7;
    --red: #ef4444;
    --amber: #f59e0b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ---- Hero Canvas Background ---- */
.hero-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.35;
}

/* ---- Navigation ---- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 10, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.nav.scrolled {
    padding: 0.6rem 2rem;
    background: rgba(6, 10, 16, 0.95);
    border-bottom-color: var(--border-accent);
}

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

.nav-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #000;
    font-family: var(--font-mono);
}

.nav-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-title span { color: var(--cyan); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.nav-cta {
    padding: 0.55rem 1.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

/* ---- Hero Section ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .line1 { color: #fff; }
.hero h1 .line2 {
    background: linear-gradient(90deg, var(--cyan), var(--green), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-sub strong { color: var(--text-primary); }

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.08);
    border-color: var(--cyan);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(90deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.2rem;
}

/* ---- Section Base ---- */
.section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Problem Section ---- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 14px;
    padding: 2rem;
    transition: all 0.3s;
}

.problem-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: var(--bg-card-hover);
}

.problem-icon {
    width: 48px; height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

/* ---- Solution / Product Cards ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.product-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.08);
}

.product-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.product-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-card .version {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    font-family: var(--font-mono);
    margin-bottom: 1rem;
}

.product-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.feature-list li .check {
    color: var(--green);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ---- Security Layers ---- */
.layers-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.layer-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    transition: all 0.2s;
    position: relative;
}

.layer-row:first-child { border-radius: 12px 12px 0 0; }
.layer-row:last-child { border-radius: 0 0 12px 12px; }

.layer-row + .layer-row {
    border-top: none;
}

.layer-row:hover {
    background: rgba(0, 229, 255, 0.04);
    border-color: var(--border-accent);
}

.layer-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cyan);
    min-width: 28px;
}

.layer-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.layer-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* ---- Comparison Table ---- */
.comparison-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.comparison-table th {
    background: rgba(0, 229, 255, 0.06);
    color: var(--cyan);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-accent);
}

.comparison-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.comparison-table tr:hover td {
    background: rgba(0, 229, 255, 0.03);
}

.comparison-table .highlight-col {
    background: rgba(0, 255, 136, 0.04);
}

.comparison-table .highlight-col th {
    color: var(--green);
    border-bottom-color: var(--border-green);
}

.yes { color: var(--green); font-weight: 600; }
.no { color: var(--red); }
.partial { color: var(--amber); }
.unique { color: var(--cyan); font-weight: 700; }

/* ---- Use Cases ---- */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.usecase-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.usecase-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.usecase-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

/* ---- Packages ---- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.package-card.featured {
    border-color: var(--border-accent);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.06);
}

.package-card.featured::before {
    content: 'AUTHORIZED RESELLER';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.3rem 1rem;
    background: linear-gradient(90deg, var(--cyan), var(--green));
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 100px;
}

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

.package-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.package-tier {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.package-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
}

.package-features li .check { color: var(--green); font-weight: 700; }

.package-cta {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    margin-top: 0.5rem;
}

.package-cta.primary {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #000;
}

.package-cta.primary:hover {
    box-shadow: 0 6px 25px rgba(0, 229, 255, 0.3);
    transform: translateY(-1px);
}

.package-cta.outline {
    border: 1px solid var(--border-accent);
    color: var(--cyan);
}

.package-cta.outline:hover {
    background: rgba(0, 229, 255, 0.08);
}

/* ---- CTA Section ---- */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--green), var(--purple));
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.footer-brand span { color: var(--cyan); }

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

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

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

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    width: 100%;
}

.footer-copy .powered {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.footer-copy .powered a {
    color: var(--cyan);
    text-decoration: none;
}

/* ---- Code Block ---- */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block .keyword { color: var(--purple); }
.code-block .func { color: var(--cyan); }
.code-block .string { color: var(--green); }
.code-block .comment { color: var(--text-muted); }

/* ---- Quantum Resistance Callout ---- */
.quantum-callout {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(0, 229, 255, 0.08));
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
    margin: 3rem auto;
    max-width: 700px;
}

.quantum-callout h3 {
    font-size: 1.1rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.quantum-callout p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quantum-callout .big-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .product-grid { grid-template-columns: 1fr; }
    .package-grid { grid-template-columns: 1fr; }
    .comparison-wrap { font-size: 0.8rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ---- Animations ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Particle Canvas ---- */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
