@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&family=Fira+Code:wght@400;600&display=swap');

:root {
    --bg-base: #060608;
    --bg-surface: #0f0f13;
    --bg-surface-elevated: #16161d;
    --brand-accent: #9d00ff;
    --brand-glow: 0 0 25px rgba(157, 0, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-subtle: #24242e;
    --border-accent: rgba(157, 0, 255, 0.3);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle, mature background effect instead of heavy gradients */
body::before {
    content: '';
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(circle at top right, rgba(157,0,255,0.03), transparent 40%);
    z-index: -1; pointer-events: none;
}

/* Typography */
h1, h2, h3, h4, .font-heading { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.text-accent { color: var(--brand-accent); }
.font-mono { font-family: 'Fira Code', monospace; }

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

/* Clean Enterprise Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 4%;
    background: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky; top: 0; z-index: 1000;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary);
    text-decoration: none; letter-spacing: 0.05em;
    display: flex; align-items: center; gap: 10px;
}
.logo i { color: var(--brand-accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none; font-weight: 500; font-size: 0.9rem;
    transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }

.mobile-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); z-index: 1001; }

/* Refined Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: all 0.2s ease;
    cursor: pointer;
}
.btn-outline { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--brand-accent); background: rgba(157,0,255,0.05); }
.btn-primary { background: var(--brand-accent); border: 1px solid var(--brand-accent); color: #fff; }
.btn-primary:hover { background: #8a00e6; border-color: #8a00e6; box-shadow: var(--brand-glow); }
.btn-full { width: 100%; }

/* Layout */
.container { max-width: 1280px; margin: 0 auto; padding: 5rem 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Enterprise Pricing Cards */
.grid-pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card-pricing {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    display: flex; flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card-pricing:hover { transform: translateY(-5px); border-color: var(--border-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-featured { border-color: var(--brand-accent); background: linear-gradient(180deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%); }

.card-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brand-accent); color: #fff;
    padding: 4px 16px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}

.plan-name { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.plan-price { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.plan-price .currency { font-size: 1.2rem; color: var(--text-secondary); vertical-align: super; }
.plan-price .amount { font-size: 2.5rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.plan-price .period { font-size: 0.9rem; color: var(--text-secondary); }
.plan-subtext { font-size: 0.8rem; color: var(--text-secondary); margin-top: 5px; display: block; }

.plan-features { list-style: none; flex-grow: 1; margin-bottom: 2.5rem; }
.plan-features li { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-secondary); }
.plan-features li span.val { color: var(--text-primary); font-weight: 500; font-family: 'Fira Code', monospace; }

/* Hardware Spec Cards */
.card-hardware { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 1.5rem; }
.card-hardware h3 { font-size: 1.1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.8rem; }
.spec-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.9rem; }
.spec-row span:first-child { color: var(--text-secondary); }
.spec-row span:last-child { color: var(--text-primary); font-family: 'Fira Code', monospace; }

/* 3D Book Layout Refined */
.book-container { display: flex; justify-content: center; margin: 4rem auto; perspective: 2000px; max-width: 600px; height: 380px;}
.book { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.book-cover {
    position: absolute; width: 100%; height: 100%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: 10px 20px 40px rgba(0,0,0,0.5);
    transform-origin: left; transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 4px 16px 16px 4px; cursor: pointer; backface-visibility: hidden;
}
.book-cover i { font-size: 3rem; color: var(--brand-accent); margin-bottom: 1rem; }
.book-cover h2 { font-size: 1.8rem; }
.book-inside {
    position: absolute; width: 100%; height: 100%;
    background: var(--bg-base); border: 1px solid var(--border-subtle);
    border-radius: 4px 16px 16px 4px; z-index: 1; display: flex; justify-content: space-around; align-items: center; padding: 2rem;
}
.book-container:hover .book-cover { transform: rotateY(-150deg); box-shadow: -10px 20px 40px rgba(0,0,0,0.5); }
.founder-profile { text-align: center; }
.founder-profile img { height: 160px; width: auto; margin-bottom: 1rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.founder-profile:hover img { transform: translateY(-5px); }
.founder-profile h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.founder-profile p { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 260px; height: 100vh;
        background: var(--bg-surface-elevated); flex-direction: column; justify-content: center;
        border-left: 1px solid var(--border-subtle); transition: right 0.3s ease;
    }
    .nav-links.active { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.8); }
    .nav-links a { font-size: 1.1rem; padding: 1rem; width: 100%; text-align: center; }
    
    .section-header h2 { font-size: 2rem; }
    .book-container { height: 300px; max-width: 100%; }
    .founder-profile img { height: 120px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }
.banner-info { background: rgba(157,0,255,0.1); border: 1px solid var(--border-accent); padding: 1rem; border-radius: 8px; text-align: center; color: var(--text-primary); margin-bottom: 2rem;}
