/* =====================================================
   NERVE Health Systems — Landing Page Styles
   Color Palette from brand:
   Primary:  #11718B (deep teal)
   Accent1:  #00F2F4 (bright cyan)
   Accent2:  #06CFD7 (mid cyan)
   Accent3:  #49BEAE (mint teal / HEALTH SYSTEMS color)
   Dark BG:  #050D12
   ===================================================== */

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

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

:root {
    --primary: #11718B;
    --primary-dark: #0a4f64;
    --primary-light: #1a9ab8;
    --cyan: #00F2F4;
    --cyan-mid: #06CFD7;
    --mint: #49BEAE;
    --dark: #050D12;
    --dark-2: #081520;
    --dark-3: #0d2030;
    --dark-4: #112840;
    --surface: #0d2030cc;
    --text: #e8f4f8;
    --text-muted: #7ea8b8;
    --text-dim: #3a6a7a;
    --border: rgba(0, 242, 244, 0.12);
    --border-glow: rgba(0, 242, 244, 0.3);
    --shadow-cyan: 0 0 30px rgba(0, 242, 244, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ---- Utility ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-mid) 50%, var(--mint) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan-mid) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(6, 207, 215, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6, 207, 215, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--cyan);
    border: 1.5px solid var(--cyan-mid);
}

.btn-outline:hover {
    background: rgba(0, 242, 244, 0.08);
    border-color: var(--cyan);
    box-shadow: var(--shadow-cyan);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(0, 242, 244, 0.08);
    color: var(--cyan);
    border: 1px solid var(--border-glow);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Animated Background ---- */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 242, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 244, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    z-index: 0;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(17, 113, 139, 0.25);
    top: -200px;
    left: -100px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(0, 242, 244, 0.12);
    top: 40%;
    right: -100px;
    animation-delay: -3s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(73, 190, 174, 0.1);
    bottom: -100px;
    left: 30%;
    animation-delay: -6s;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -30px) scale(1.05);
    }
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 13, 18, 0.9);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 52px;
    width: auto;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero visual */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 560px;
    justify-self: end;
}

.hero-mockup {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card), var(--shadow-cyan);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.hero-mockup-bar {
    background: var(--dark-4);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

.mockup-dot:nth-child(1) {
    background: #ff5f57;
}

.mockup-dot:nth-child(2) {
    background: #febb2c;
}

.mockup-dot:nth-child(3) {
    background: #27ca40;
}

.mockup-url {
    flex: 1;
    background: var(--dark-2);
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-left: 8px;
}

.hero-mockup-body {
    padding: 20px;
}

.mockup-header {
    margin-bottom: 16px;
}

.mockup-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.mockup-date {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mockup-stat {
    background: var(--dark-2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
}

.mockup-stat-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan);
}

.mockup-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.mockup-chart {
    background: var(--dark-2);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--border);
}

.mockup-chart-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mockup-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.mockup-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, var(--primary), var(--cyan-mid));
    opacity: 0.8;
    animation: barGrow 1s ease forwards;
}

@keyframes barGrow {
    from {
        height: 0
    }

    to {
        height: var(--h, 50%)
    }
}

.mockup-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 12px;
}

.mockup-cal-day {
    text-align: center;
    font-size: 0.55rem;
    padding: 4px 2px;
    border-radius: 4px;
    color: var(--text-muted);
}

.mockup-cal-day.today {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.mockup-cal-day.active {
    background: rgba(0, 242, 244, 0.12);
    color: var(--cyan);
}

.mockup-appointments {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mockup-appt {
    background: var(--dark-2);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 3px solid var(--cyan-mid);
}

.mockup-appt-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
}

.mockup-appt-name {
    font-size: 0.68rem;
    font-weight: 500;
}

.mockup-appt-time {
    font-size: 0.6rem;
    color: var(--text-muted);
}

/* ---- Section Common ---- */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

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

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

.section-tag {
    margin-bottom: 16px;
}

/* ---- Features ---- */
.features {
    padding: 120px 0;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 244, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-cyan);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 244, 0.2);
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.feature-list {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.feature-list li {
    font-size: 0.83rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-list li::before {
    content: '✓';
    color: var(--mint);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Roles Section ---- */
.roles {
    padding: 100px 0;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.role-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: default;
}

.role-card:hover {
    border-color: var(--cyan-mid);
    box-shadow: 0 0 20px rgba(6, 207, 215, 0.2);
    transform: translateY(-3px);
}

.role-emoji {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.role-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ---- Pricing ---- */
.pricing {
    padding: 120px 0;
}

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

.pricing-card {
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.pricing-card.featured {
    border-color: var(--cyan-mid);
    box-shadow: var(--shadow-cyan);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--cyan), var(--mint));
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--cyan-mid));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-plan {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.pricing-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.pricing-price {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 28px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.price-currency {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pricing-features li .icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pricing-features li.included {
    color: var(--text);
}

.pricing-features li.included .icon {
    color: var(--mint);
}

.pricing-features li:not(.included) {
    opacity: 0.4;
}

.pricing-features li:not(.included) .icon {
    color: var(--text-dim);
}

/* ---- Compliance Band ---- */
.compliance {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.compliance-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.compliance-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.compliance-icon {
    font-size: 1.6rem;
}

.compliance-label {
    font-weight: 600;
    font-size: 0.82rem;
}

.compliance-sub {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-4) 100%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-cyan);
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 244, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand img {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
}

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

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Mobile Menu (will be handled by JS) ---- */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(5, 13, 18, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
}

.mobile-menu a:hover {
    color: var(--cyan);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---- Scroll animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .hero {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn:not(.btn-primary) {
        display: none;
    }

    .hamburger {
        display: block;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta-box {
        padding: 48px 24px;
    }
}