html {
    scroll-behavior: smooth;
}

:root {
    --primary: #FF6600;
    --primary-glow: rgba(255, 102, 0, 0.3);
    --bg: #0A0A0A;
    --surface: #121212;
    --surface-light: #1A1A1A;
    --text: #FFFFFF;
    --text-muted: #A1A1AA;
    --border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 102, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 102, 0, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header/Nav */
header {
    padding: 2rem 0;
    text-align: center;
}

.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem; /* Increased bottom padding */
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* VSL Container */
.vsl-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0; 
    margin-bottom: 2rem;
    position: relative;
}

.vsl-container {
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden; 
    aspect-ratio: 16/9;
    background: black; 
    box-shadow: 0 0 15px 2px var(--primary), 0 0 50px 0px var(--primary); /* Brighter multi-layer glow */
}

/* Removed stretched pseudo-glows */

/* Offer Section */
.offer-section {
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    scroll-margin-top: 2rem; /* Default scroll margin */
}

@media (max-width: 768px) {
    #pricing {
        scroll-margin-top: -40px; /* Offset to peek the second card on mobile */
    }
}

.offer-card {
    background: linear-gradient(145deg, var(--surface) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.offer-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.offer-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0.5rem 0;
    font-family: 'Roboto', sans-serif;
}

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

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    padding: 1.25rem 2.5rem;
    border-radius: 100px;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
    filter: brightness(1.1);
}

/* Footer */
footer {
    padding: 4rem 0 4rem; /* Increased bottom padding */
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    width: 100%;
}

.footer-links {
    margin-top: 1rem;
}

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

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

/* Terms Page Specific */
.terms-content {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.terms-content h1 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.terms-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.terms-content p, .terms-content ul {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.terms-content ul {
    padding-left: 1.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary);
    text-decoration: none;
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: var(--bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-section details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-section details[open] {
    border-color: var(--primary);
    background: var(--surface-light);
}

.faq-section summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.faq-section details[open] summary::after {
    transform: rotate(45deg);
}

.faq-section summary:hover {
    background: var(--surface-light);
    color: var(--primary);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .offer-section {
        padding: 4rem 0;
    }

    .offer-card {
        padding: 2rem 1.5rem;
    }

    .price-tag {
        font-size: 2.8rem;
    }

    .features-grid {
        margin: 1.5rem 0;
        gap: 1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }
}

/* --- Premium SaaS Aesthetics Enhancements --- */
.offer-card {
    backdrop-filter: blur(20px);
    background: linear-gradient(145deg, rgba(18,18,18,0.7) 0%, rgba(10,10,10,0.9) 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 10px 40px rgba(0,0,0,0.5);
}
.offer-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255,102,0,0.3), 0 20px 40px rgba(255,102,0,0.1);
}
.faq-section details {
    backdrop-filter: blur(10px);
    background: rgba(18,18,18,0.6);
}

/* --- System Diagram Section --- */
.system-diagram-section {
    padding: 6rem 0;
    background: radial-gradient(circle at center, rgba(255,102,0,0.05) 0%, transparent 70%);
    overflow: hidden;
}
.diagram-wrapper {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Center Hub */
.diagram-center {
    position: relative;
    z-index: 10;
}
.hub-card {
    background: linear-gradient(145deg, var(--surface) 0%, var(--bg) 100%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 30px rgba(255,102,0,0.3);
    position: relative;
    z-index: 2;
}
.hub-icon {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.hub-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.hub-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Pulse Animation */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0;
    animation: pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: 1;
}
.pulse-ring.delay-1 {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Orbiting Nodes */
.diagram-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.feature-node {
    position: absolute;
    width: 220px;
    animation: float 6s ease-in-out infinite;
}
.feature-node.pos-1 { top: 10%; left: 5%; animation-delay: 0s; }
.feature-node.pos-2 { top: 10%; right: 5%; animation-delay: 1.5s; }
.feature-node.pos-3 { bottom: 10%; left: 5%; animation-delay: 3s; }
.feature-node.pos-4 { bottom: 10%; right: 5%; animation-delay: 4.5s; }

.node-card {
    background: rgba(18,18,18,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
    transition: var(--transition);
}
.node-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,102,0,0.15);
}
.node-icon {
    background: rgba(255,102,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
}
.node-card h4 {
    font-size: 0.95rem;
}
.node-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Connecting Lines (Simplified for CSS) */
.connection-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 2px;
    width: 150px;
    opacity: 0.3;
    z-index: 1;
}
.pos-1 .connection-line { top: 50%; left: 100%; transform: rotate(20deg); transform-origin: left center; }
.pos-2 .connection-line { top: 50%; right: 100%; transform: rotate(-20deg); transform-origin: right center; }
.pos-3 .connection-line { bottom: 50%; left: 100%; transform: rotate(-20deg); transform-origin: left center; }
.pos-4 .connection-line { bottom: 50%; right: 100%; transform: rotate(20deg); transform-origin: right center; }

@media (max-width: 768px) {
    .diagram-wrapper {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        margin: 2rem auto;
    }
    .diagram-nodes {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .feature-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        max-width: 320px;
    }
    .connection-line {
        display: none;
    }
    .pulse-ring {
        display: none;
    }
}
