/* ==========================================================================
   PulseNode Digital - Core CSS Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-primary: #0B0F17;       /* Deep Obsidian Navy */
    --bg-card: #161F30;          /* Slate Dark Blue */
    --bg-card-hover: #1E2B42;    /* Slightly lighter Slate for hover */
    --bg-darker: #070A10;        /* Extra deep backdrop section */
    
    --accent-cyan: #00F0FF;      /* Electric Cyan */
    --accent-cyan-glow: rgba(0, 240, 255, 0.4);
    --accent-cyan-muted: rgba(0, 240, 255, 0.12);
    
    --accent-indigo: #3B82F6;    /* Vibrant Indigo */
    --accent-gradient: linear-gradient(135deg, #00F0FF 0%, #3B82F6 100%);
    
    --text-primary: #F3F4F6;     /* Crisp Off-White */
    --text-muted: #9CA3AF;       /* Cool Gray */
    --text-dim: #6B7280;         /* Deeper Muted Gray */

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.3);

    /* Typography */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --------------------------------------------------------------------------
   3. Background Decorative Effects
   -------------------------------------------------------------------------- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.35;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(59, 130, 246, 0.15) 70%, transparent 100%);
}

.blob-2 {
    top: 40%;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 240, 255, 0.1) 70%, transparent 100%);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: -1;
    mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 80%, transparent 100%);
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Grid Helpers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   5. Common UI Elements & Typography
   -------------------------------------------------------------------------- */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-cyan-muted);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-full);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.75rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Card Component */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 240, 255, 0.15);
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #05080E;
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    transform: translateY(-2px);
    color: #000;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

.btn-full {
    width: 100%;
}

.btn-glow {
    box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* --------------------------------------------------------------------------
   6. Header / Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 868px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 380px;
        height: 100vh;
        background-color: var(--bg-card);
        border-left: 1px solid var(--border-subtle);
        flex-direction: column;
        justify-content: center;
        gap: 2.5rem;
        padding: 3rem 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.75rem;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        font-size: 1.15rem;
    }

    .nav-cta-wrapper {
        width: 100%;
    }

    .nav-btn {
        width: 100%;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 6rem;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

.hero-actions {
    margin-bottom: 3rem;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   8. How It Works Section
   -------------------------------------------------------------------------- */
.step-card {
    display: flex;
    flex-direction: column;
}

.step-number {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    letter-spacing: -0.04em;
}

.step-icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan-muted);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. Portfolio / Demo Showcase
   -------------------------------------------------------------------------- */
.demo-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.demo-preview-box {
    background-color: #0E1422;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-url {
    margin-left: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: monospace;
}

.mockup-body {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.mockup-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.mockup-plumbing .mockup-badge { background: rgba(239, 68, 68, 0.2); color: #EF4444; }
.mockup-medical .mockup-badge { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.mockup-contractor .mockup-badge { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }

.mockup-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.mockup-btn {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--accent-cyan);
    color: #000;
    font-weight: 700;
    border-radius: 4px;
}

.demo-card .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tag-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: var(--accent-cyan-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.demo-card .card-title {
    font-size: 1.25rem;
}

.demo-card .card-text {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* --------------------------------------------------------------------------
   10. Pricing Section
   -------------------------------------------------------------------------- */
.pricing-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.15);
    text-align: center;
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient);
    color: #05080E;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1.25rem;
    border-radius: var(--border-radius-full);
}

.pricing-header {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.pricing-price-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.price-setup {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-unit {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-recurring {
    margin-top: 0.5rem;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.price-recurring .highlight {
    color: var(--accent-cyan);
    font-weight: 700;
}

.pricing-features {
    text-align: left;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.pricing-features li span {
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. CTA Banner Section
   -------------------------------------------------------------------------- */
.cta-section {
    padding-bottom: 7rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(22, 31, 48, 0.9) 0%, rgba(11, 15, 23, 0.95) 100%);
    border: 1px solid var(--border-hover);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.1);
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .cta-content h2 {
        font-size: 3rem;
    }
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 2rem auto;
}

.cta-email-display {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--border-radius-full);
    margin-bottom: 2.5rem;
}

.email-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 0.02em;
}

.email-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        text-align: left;
    }
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-left {
        align-items: flex-start;
    }
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.uptime-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--border-subtle);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10B981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
