:root {
    --font-main: 'Inter', sans-serif;
    --color-bg-start: #F3F1F6;
    --color-bg-end: #E4E0EC;
    --color-text-main: #1A1A2E;
    --color-text-sub: #5A5A6E;
    --color-primary: #9D74F7;
    --color-primary-dark: #7B4AD8;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    scroll-behavior: smooth;
}

.show-mobile {
    display: none;
}


body {
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end));
    color: var(--color-text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Background Blobs for Atmosphere */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #E0C3FC;
    top: -200px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #C4B5FD;
    bottom: -100px;
    right: -100px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #FBCFE8;
    top: 40%;
    left: 40%;
    opacity: 0.4;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 48px;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 20px;
    color: var(--color-text-main);
}

.logo-icon {
    background: linear-gradient(135deg, #C4B5FD, #A78BFA);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-sub);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

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

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

.btn-text {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
}

.btn {
    padding: 12px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary-glass {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid white;
    color: var(--color-primary-dark);
    backdrop-filter: blur(10px);
}

.btn-primary-glass:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

.badge-pill {
    background: linear-gradient(90deg, #C084FC 0%, #A855F7 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #1A1A2E 30%, #a27bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-sub);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Updated Centering Helper Classes */
.center-text {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.center-flex {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #D8B4FE 0%, #C084FC 100%);
    color: #3B0764;
    box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.4);
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(192, 132, 252, 0.5);
}

.btn-secondary-glass {
    background: white;
    color: var(--color-text-main);
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-secondary-glass:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    animation: zoomIn 1s ease-out 0.4s backwards;
}

/* NEW: Dentist Image Backdrop */
.dentist-image-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    /* Takes up most of the hero logic width */
    max-width: 800px;
    height: 90%;
    z-index: 1;
    /* Below phone (5) but above bg (0) */
    border-radius: 40px;
    overflow: hidden;
    opacity: 0.9;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.1);
}

.dentist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    /* Slight fade so it doesn't distract from UI */
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #000;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 5;
    /* Highlighted above image */
    transform: rotate(-2deg);
    border: 8px solid #2d2d2d;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #FDFBFD 0%, #F5F3FF 100%);
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

/* App UI Inside Phone */
.app-header {
    padding: 40px 20px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.app-avatar {
    width: 40px;
    height: 40px;
    background: #C4B5FD;
    border-radius: 50%;
}

.app-text h3 {
    font-size: 14px;
    font-weight: 600;
}

.app-text p {
    font-size: 12px;
    color: #666;
}

.app-bubble {
    margin: 10px 20px;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 13px;
    max-width: 80%;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.bubble-ai {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble-user {
    background: #1A1A2E;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.app-shimmer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, white 20%, transparent);
    z-index: 8;
}

/* Floating Glass Cards */
.glass-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glass-shadow);
    z-index: 10;
}

.card-icon {
    width: 36px;
    height: 36px;
    background: #E9D5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    color: #9D74F7;
    margin-bottom: 2px;
}

.card-text {
    font-size: 14px;
    color: var(--color-text-main);
    font-weight: 500;
}

/* Positioning Cards */
.card-left {
    top: 20%;
    left: 10%;
    padding-right: 24px;
}

.card-right {
    top: 30%;
    right: 5%;
    padding: 12px;
}

.card-bottom {
    bottom: 10%;
    right: 15%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-slow {
    animation: float 6s ease-in-out infinite;
}

.floating-medium {
    animation: float 5s ease-in-out infinite 1s;
}

.floating-fast {
    animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- SECTIONS --- */

.section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-sub);
    max-width: 600px;
    line-height: 1.6;
    margin-top: 16px;
}

.section h2 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--color-text-main);
}

/* Logos Section */
.logos-section {
    text-align: center;
    padding: 40px 24px;
    margin-top: -60px;
    /* Pull up closer to hero */
    position: relative;
    z-index: 2;
}

.logos-section p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-sub);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #6B7280;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid white;
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.icon-purple {
    background: #E9D5FF;
    color: #9333EA;
}

.icon-blue {
    background: #BFDBFE;
    color: #2563EB;
}

.icon-pink {
    background: #FBCFE8;
    color: #DB2777;
}

.icon-orange {
    background: #FED7AA;
    color: #EA580C;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.feature-card p {
    color: var(--color-text-sub);
    line-height: 1.6;
}

/* NEW: How it Works (Steps) */
.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}

.step-icon-circle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #E0C3FC 0%, #C4B5FD 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 16px rgba(196, 181, 253, 0.3);
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.step-text {
    font-size: 14px;
    color: var(--color-text-sub);
    line-height: 1.5;
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #1A1A2E;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    /* Align with center of visible card area approx */
    color: #C4B5FD;
    opacity: 0.6;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: white;
    border-color: #C084FC;
    box-shadow: 0 25px 50px -12px rgba(192, 132, 252, 0.25);
    z-index: 2;
}

.pricing-card .btn {
    margin-top: auto;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #9333EA;
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-sub);
    margin-bottom: 16px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    color: var(--color-text-sub);
    font-weight: 500;
}

.plan-desc {
    color: var(--color-text-sub);
    margin-bottom: 32px;
    height: 48px;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    margin-bottom: 16px;
    color: var(--color-text-main);
    display: flex;
    gap: 8px;
    font-size: 15px;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 24px 40px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--color-text-sub);
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.link-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.link-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-sub);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.link-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    color: var(--color-text-sub);
    font-size: 14px;
}

/* Responsive Edits */
@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 32px;
    }

    .navbar {
        padding: 20px 16px;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-links {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: inline;
    }

    .hero-title {
        font-size: 42px;
        padding: 0 16px;
    }

    .hero-visual {
        transform: scale(0.8);
        height: 500px;
    }

    .glass-card {
        transform: scale(0.8);
    }

    .card-left {
        left: 0;
    }

    .card-right {
        right: 0;
    }

    .dentist-image-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .step-card {
        width: 100%;
    }
}