/* ====================================================
   SovereignShield — Landing Page Styles
   Domain: sovereign-shield.net
   ==================================================== */

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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


:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --bg-surface: #0e0e16;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #5a5a72;
    --accent: #0ea5e9;
    --accent-bright: #38bdf8;
    --accent-glow: rgba(14, 165, 233, 0.3);
    --green: #00e676;
    --red: #ff5252;
    --yellow: #ffd740;
    --border: rgba(255,255,255,0.06);
    --border-bright: rgba(14, 165, 233,0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ====================================================
   NAV
   ==================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo-icon {
    font-size: 1.4rem;
}

.accent {
    color: var(--accent-bright);
}

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-bright);
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent);
}

.btn-nav {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: var(--accent-bright);
}

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

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ====================================================
   HERO
   ==================================================== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: #4834d4;
    bottom: -100px;
    left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid var(--border-bright);
    border-radius: 50px;
    color: var(--accent-bright);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-brand-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-logo-icon {
    width: 420px;
    height: 440px;
}

.hero-brand-text {
    font-size: 8.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-bright) 0%, #e17bfe 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.hero-cta .btn {
    padding: 14px 32px;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* ====================================================
   CODE DEMO
   ==================================================== */
#demo {
    padding: 0 24px 100px;
    margin-top: -40px;
}

.code-window {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #0d0d14;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

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

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

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

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-title {
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.75rem;
}

.code-body {
    padding: 20px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-window-stacked {
    margin-top: 16px;
}

.c-comment { color: #5a5a72; }
.c-prompt { color: var(--green); }
.c-string { color: #ffd740; }
.c-key { color: var(--accent-bright); }
.c-bool { color: var(--red); }
.c-num { color: var(--green); }

/* ====================================================
   SECTIONS (shared)
   ==================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

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

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

/* ====================================================
   FEATURES
   ==================================================== */
#features {
    padding: 100px 0;
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-bright);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.08);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

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

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

/* ====================================================
   ARCHITECTURE
   ==================================================== */
#architecture {
    padding: 100px 0;
}

.layers {
    max-width: 640px;
    margin: 0 auto;
}

.layer {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.layer:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.06);
}

.layer-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.1rem;
}

.layer-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.layer-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.layer-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(14, 165, 233, 0.12);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.layer-arrow {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 8px 0;
}

/* ====================================================
   WHAT IT BLOCKS
   ==================================================== */
#blocks {
    padding: 100px 0;
    background: var(--bg-surface);
}

.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.block-item {
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-x {
    color: var(--red);
    font-weight: 700;
    font-size: 1rem;
}

/* ====================================================
   PRICING
   ==================================================== */
#pricing {
    padding: 100px 0;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.billing-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.billing-label[data-active="true"] {
    color: var(--text-primary);
}

.save-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 210, 106, 0.15);
    color: var(--green);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 2px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    border-color: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: var(--accent-bright);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.price-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: scale(1.04);
}

.price-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.price-tier {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 32px;
}

.price-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features li::before {
    content: "✓ ";
    color: var(--green);
    font-weight: 700;
}

.price-card .btn {
    width: 100%;
}

/* ====================================================
   INTEGRATE
   ==================================================== */
#integrate {
    padding: 100px 0;
    background: var(--bg-surface);
}

.integrate-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.step {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.step:hover {
    border-color: var(--border-bright);
    transform: translateY(-4px);
}

.step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 16px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.step code {
    background: rgba(14, 165, 233, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--accent-bright);
}

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

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand .logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

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

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 4px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-disclaimer a {
    color: var(--accent);
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

/* ====================================================
   LOST KEY MODAL
   ==================================================== */
.lost-key-container {
    text-align: center;
    margin-top: 24px;
    opacity: 0.6;
}

.lost-key-link {
    color: var(--accent);
    text-decoration: underline;
    font-size: 14px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(14, 165, 233,0.3);
}

.modal-title {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 20px;
}

.modal-description {
    color: rgba(255,255,255,0.6);
    margin: 0 0 20px 0;
    font-size: 14px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(14, 165, 233,0.3);
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 15px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.modal-error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 8px;
    display: none;
}

.modal-btn-primary {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.modal-btn-secondary {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    cursor: pointer;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
    .features-grid,
    .pricing-grid,
    .blocks-grid,
    .integrate-steps {
        grid-template-columns: 1fr;
    }

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

    .price-card.featured {
        transform: none;
    }

    .price-card.featured:hover {
        transform: translateY(-4px);
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }

    .hero-stats {
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(20px);
    }

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

    .mobile-toggle {
        display: flex;
    }

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

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 24px;
    }

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