:root {
    --primary-color: #2E7CFF;
    --primary-hover: #1b63e0;
    --secondary-color: #6EE7FF;
    --text-main: #EAF2FF;
    --text-muted: rgba(234, 242, 255, 0.7);
    --bg-main: #050B1E;
    --bg-secondary: #0A1633;
    --border-color: rgba(110, 231, 255, 0.3);
    --card-bg: rgba(255, 255, 255, 0.06);
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { color: var(--text-main); line-height: 1.2; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 2rem; text-align: center; }
p { margin-bottom: 1rem; }

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--text-main);
    border-radius: 8px;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 124, 255, 0.3);
}
.btn:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-block { display: block; width: 100%; }

header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 11, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}
header .container { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--secondary-color); }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--secondary-color); text-decoration: none; text-shadow: 0 0 10px rgba(110, 231, 255, 0.4); }

.hero { text-align: center; padding: 80px 20px; background: transparent; position: relative; z-index: 1; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem; }

section { padding: 80px 0; position: relative; z-index: 1; }
.bg-light { background: rgba(10, 22, 51, 0.4); }

/* P7: scroll-margin-top prevents sticky header from covering anchor targets */
#pricing, #faq, #main-content { scroll-margin-top: 80px; }

/* P5: main element */
main { display: block; }

/* P6: Skip link for keyboard accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: var(--primary-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Keyboard focus styles */
a:focus-visible, button:focus-visible, details summary:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
}


.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.card h3 { margin-bottom: 1rem; font-size: 1.25rem; color: var(--secondary-color); }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.pricing-card { display: flex; flex-direction: column; text-align: center; }
.price { font-size: 2.5rem; font-weight: bold; color: var(--secondary-color); margin: 1.5rem 0; text-shadow: 0 0 10px rgba(110, 231, 255, 0.3); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: normal; }
.pricing-card ul { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.pricing-card li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.pricing-card li:last-child { border-bottom: none; }

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--secondary-color); }
.faq-item summary { padding: 1.25rem; font-weight: 600; cursor: pointer; user-select: none; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--secondary-color); }
.faq-item[open] summary::after { content: '-'; }
.faq-item .faq-content { padding: 0 1.25rem 1.25rem; color: var(--text-muted); }

footer { background: rgba(5, 11, 30, 0.9); padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); position: relative; z-index: 1; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary-color); }

.page-content { max-width: 800px; margin: 40px auto; padding: 20px; position: relative; z-index: 1; }
.page-content h2 { text-align: left; margin-top: 2rem; font-size: 1.5rem; color: var(--secondary-color); }
.page-content ul { padding-left: 20px; margin-bottom: 1rem; color: var(--text-muted); }
.page-content li { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 40px 0; }
    .hero { padding: 50px 20px; }
    .btn { padding: 16px 20px; display: block; width: 100%; }
    .grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-links { flex-direction: column; gap: 15px; }
    header .container { flex-direction: column; gap: 15px; }
}

/* ========================================================
   Decorative FX Layer
   ======================================================== */
.bg-fx { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; overflow: hidden; opacity: 0.8; }

/* 1. Breathing Aura */
.fx-aura {
    position: absolute; top: -15vh; left: -15vw; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(46, 124, 255, 0.15) 0%, transparent 60%);
    animation: fx-breathe 9s ease-in-out infinite;
}
@keyframes fx-breathe { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* 2. Concentric Pulse Rings */
.fx-pulse-group { position: absolute; top: 10vh; right: 10vw; width: 200px; height: 200px; }
.fx-pulse {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border: 1px solid rgba(110, 231, 255, 0.5); border-radius: 50%; opacity: 0;
    animation: fx-ripple 3.9s linear infinite;
}
.fx-pulse.pulse-2 { animation-delay: 1.3s; }
.fx-pulse.pulse-3 { animation-delay: 2.6s; }
@keyframes fx-ripple { 0% { transform: scale(0.1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

/* 3. Horizontal Link Rays */
.fx-ray {
    position: absolute; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(110, 231, 255, 0.3) 50%, transparent 100%);
}
.fx-ray.ray-1 { top: 24%; }
.fx-ray.ray-2 { top: 64%; }
.fx-dot {
    position: absolute; top: -2px; left: 0; width: 5px; height: 5px;
    background: #EAF2FF; border-radius: 50%;
    box-shadow: 0 0 10px 3px rgba(110, 231, 255, 0.8);
    opacity: 0;
}
.fx-ray.ray-1 .fx-dot { animation: fx-move-dot 7s linear infinite; }
.fx-ray.ray-2 .fx-dot { animation: fx-move-dot 10s linear infinite; }
@keyframes fx-move-dot {
    0% { transform: translate3d(-10vw, 0, 0); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translate3d(110vw, 0, 0); opacity: 0; }
}

/* 4. High-Speed Light Rails */
.fx-trail {
    position: absolute; top: 50%; left: 50%; width: 200vw; height: 1px;
    margin-left: -100vw; margin-top: -1px; transform-origin: center;
}
.fx-trail.trail-1 { background: linear-gradient(90deg, transparent, rgba(46, 124, 255, 0.6) 50%, transparent); animation: fx-slash-1 9s linear infinite; }
.fx-trail.trail-2 { background: linear-gradient(90deg, transparent, rgba(234, 242, 255, 0.6) 50%, transparent); animation: fx-slash-2 12s linear infinite 3s; }
.fx-trail.trail-3 { background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.6) 50%, transparent); animation: fx-slash-3 15s linear infinite 6s; }
@keyframes fx-slash-1 { 0% { transform: rotate(18deg) translate3d(-150vw, -20vh, 0); } 100% { transform: rotate(18deg) translate3d(150vw, -20vh, 0); } }
@keyframes fx-slash-2 { 0% { transform: rotate(18deg) translate3d(-150vw, 15vh, 0); } 100% { transform: rotate(18deg) translate3d(150vw, 15vh, 0); } }
@keyframes fx-slash-3 { 0% { transform: rotate(18deg) translate3d(-150vw, 45vh, 0); } 100% { transform: rotate(18deg) translate3d(150vw, 45vh, 0); } }

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
    .fx-aura, .fx-pulse, .fx-dot, .fx-trail { animation: none !important; }
    .fx-pulse { opacity: 0.2; transform: scale(1); border-color: rgba(110,231,255,0.2); }
    .fx-pulse.pulse-2 { transform: scale(1.5); }
    .fx-pulse.pulse-3 { transform: scale(2); }
    .fx-aura { opacity: 0.3; }
    .fx-dot { opacity: 0.8; transform: translate3d(50vw, 0, 0) !important; }
    .fx-trail { opacity: 0.3; }
    .fx-trail.trail-1 { transform: rotate(18deg) translate3d(0, -20vh, 0) !important; }
    .fx-trail.trail-2 { transform: rotate(18deg) translate3d(0, 15vh, 0) !important; }
    .fx-trail.trail-3 { transform: rotate(18deg) translate3d(0, 45vh, 0) !important; }
}
