/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-light: #737373;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    font-weight: 300;
}

/* Minimal Background Accent */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
    z-index: -1;
    animation: float 30s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-120px, 80px) rotate(5deg); }
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-white {
    background: white;
    color: black;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: transparent;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.04em;
}

.gradient-text {
    color: var(--primary);
    font-weight: 400;
}

.ai-highlight {
    font-family: 'Lora', serif;
    font-style: italic;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding: 0 8px;
}

.ai-highlight.typewriter-complete {
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 0% center;
    }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 40px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-light);
    font-size: 13px;
    margin-top: 4px;
    font-weight: 300;
}

/* Hero Visual - Modern Video Container */
.hero-visual {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 450px;
    margin-top: -60px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.1);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(118, 75, 162, 0.06) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Sections */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    font-weight: 300;
}

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

.feature-card {
    background: transparent;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.01);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.feature-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 300;
}

/* CRM Section */
.crm {
    background: transparent;
    color: white;
}

.crm .section-title {
    color: white;
}

.crm .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.crm-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin: 40px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 300;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* CRM Mockup */
.crm-mockup {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.mockup-header {
    background: transparent;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.mockup-dots span:nth-child(1) { background: #FF5F56; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #27C93F; }

.mockup-content {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 200px;
    background: transparent;
    padding: 24px 16px;
    border-right: 1px solid var(--border);
}

.sidebar-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    animation: slideInLeft 0.5s ease forwards;
    opacity: 0;
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-item.active {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.sidebar-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.mockup-main {
    flex: 1;
    padding: 32px;
    display: flex;
    gap: 24px;
    position: relative;
}

/* Mockup Views */
.mockup-view {
    position: absolute;
    top: 32px;
    left: 32px;
    right: 32px;
    display: none;
    gap: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mockup-view.active {
    display: flex;
    opacity: 1;
}

.metric-card {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.metric-card:nth-child(1) { animation-delay: 0.5s; }
.metric-card:nth-child(2) { animation-delay: 0.6s; }

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

.metric-label {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    animation: countUp 1s ease forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Communication Hub Section */
.communication-hub {
    background: transparent;
}

/* Bookkeeping Automation Section */
.bookkeeping-automation {
    background: rgba(255, 255, 255, 0.01);
}

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

.feature-card-large {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-card-large:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.feature-icon-large {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.feature-icon-large svg {
    width: 22px;
    height: 22px;
}

.feature-card-large:hover .feature-icon-large {
    background: rgba(99, 102, 241, 0.12);
    transform: translateY(-2px);
}

.feature-card-large h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-card-large p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: transparent;
    color: white;
    position: relative;
}

.cta-card {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 64px 48px;
}

.cta-title {
    font-size: 42px;
    font-weight: 200;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.cta-description {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

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

/* Booking Section */
.booking-section {
    background: transparent;
    position: relative;
}

.booking-section .section-header {
    margin-bottom: 48px;
}

#cal-booking-inline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    min-height: 700px;
    overflow: auto;
}

#cal-booking-inline::-webkit-scrollbar {
    width: 8px;
}

#cal-booking-inline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

#cal-booking-inline::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}

/* Footer */
.footer {
    background: transparent;
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 14px;
}

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

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 300;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 48px;
    border-radius: 16px;
    max-width: 480px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content h3 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 16px;
    color: white;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-weight: 300;
}

.phone-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 16px;
    color: white;
    font-weight: 300;
}

.phone-input::placeholder {
    color: var(--text-light);
}

.phone-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.call-status {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.call-status.success {
    background: #d4edda;
    color: #155724;
}

.call-status.error {
    background: #f8d7da;
    color: #721c24;
}

.call-status.pending {
    background: #d1ecf1;
    color: #0c5460;
}

/* ElevenLabs Widget Base Positioning */
elevenlabs-convai {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9998 !important;
    max-width: calc(100vw - 48px) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.4);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.15);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    /* Prevent all horizontal overflow */
    body, html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav-links {
        display: none;
    }

    /* Side Drawer Menu */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 80vw;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 24px 24px;
        gap: 24px;
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    /* Overlay for side drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1002;
        margin-right: 0;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Nav link styling in side drawer */
    .nav-links.active .nav-link {
        font-size: 18px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active .nav-link:last-child {
        border-bottom: none;
    }

    .nav-links.active .btn {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-content,
    .crm-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .section-title {
        font-size: 28px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .section-description {
        font-size: 15px;
    }

    /* Ensure all headings wrap properly on mobile */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 32px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1;
        min-width: 120px;
    }

    .stat-number {
        font-size: 32px;
    }

    .hero-visual {
        height: 250px;
        margin-top: 40px;
    }

    .video-container {
        border-radius: 12px;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-grid-large {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* CRM Mockup Mobile - Fix overflow */
    .crm-mockup {
        max-width: 100%;
        overflow: hidden;
    }

    .mockup-content {
        flex-direction: column;
        height: auto;
        min-height: 300px;
        width: 100%;
    }

    .mockup-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-item {
        white-space: nowrap;
        padding: 8px 12px;
        margin-bottom: 0;
        font-size: 13px;
        flex-shrink: 0;
    }

    .mockup-main {
        padding: 16px 12px;
        min-height: 150px;
        width: 100%;
    }

    .mockup-view {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 12px;
    }

    .metric-card {
        width: 100%;
        padding: 16px;
    }

    /* CTA Section */
    .cta-card {
        padding: 40px 24px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-description {
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom p {
        font-size: 12px;
        line-height: 1.6;
    }

    /* ElevenLabs Widget Mobile - Hide on mobile */
    elevenlabs-convai {
        display: none !important;
    }

    /* Section Spacing */
    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
        max-width: 100%;
        padding: 0 10px;
    }

    /* Prevent any text overflow on all text elements */
    p, li, span, div {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .stat {
        min-width: 100px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }
}
