:root {
    --primary-color: #006BFF;
    --primary-hover: #0052cc;
    --secondary-color: #f0f4ff;
    --secondary-hover: #e0e8ff;
    --dark-color: #0d122b;
    --text-color: #3d4f73;
    --text-color-light: #6b7a99;
    --light-text-color: #ffffff;
    --background-color: #ffffff;
    --light-background-color: #f7f9fc;
    --border-color: #e4e9f2;
    --green-color: #34C759;
    --red-color: #FF3B30;
    --font-family: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1.5em;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 107, 255, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 107, 255, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 120px;
}

.nav-links, .btn-nav {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

/* Hero Section */
.hero-section {
    text-align: left;
    padding: 80px 0;
    background-color: var(--light-background-color);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex-basis: 55%;
    flex-shrink: 0;
}

.hero-image {
    flex-basis: 45%;
    position: relative;
    min-width: 420px; 
}

.hero-image img {
    width: 140%;
    max-width: 140%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-left: 20px;
}

.hero-section h1 {
    max-width: 100%;
    margin: 0 auto 20px;
}

#rotating-words {
    color: var(--primary-color);
    display: inline-block;
    min-width: 230px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.subheadline {
    font-size: 1.25rem;
    max-width: 550px;
    margin: 0 0 40px;
    color: var(--text-color-light);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

#interactive-demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-basis: 45%;
    position: relative;
    perspective: 1000px;
    min-height: 400px; 
}

.demo-prompt {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    height: 40px; 
}

.interactive-demo {
    width: 100%;
    max-width: 380px;
    perspective: 1000px;
    transition: transform 0.5s ease;
}

.interactive-demo:hover .phone-mockup {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.02);
}

.phone-mockup {
    width: 280px;
    height: 600px;
    background: #111;
    border-radius: 50px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), inset 0 0 0 2px #333;
    position: relative;
    transform: rotateX(10deg) rotateY(-15deg);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: pointer;
    margin: 0 auto; 
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 15px;
    background: #111;
    border-radius: 10px;
    z-index: 2;
}

.phone-screen {
    background: #fff;
    height: 100%;
    width: 100%;
    border-radius: 38px;
    padding: 40px 10px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    font-size: 0.9rem;
}

.phone-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
    animation: pop-in 0.3s ease-out;
}

.phone-message.sent {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.phone-message.received {
    background-color: #e9e9eb;
    color: #000;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.sms-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
}

.system-notification {
    background: #f0f4ff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    animation: pop-in 0.5s ease-out;
    font-weight: 600;
}
.system-notification.confirmed p {
    font-size: 0.9em;
    font-weight: normal;
    color: var(--text-color);
    margin: 10px 0 0;
}
.sparkle { display: inline-block; animation: sparkle-anim 1.5s infinite; }

/* Form View */
.form-view .form-header {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 20px;
    text-align: center;
}
.form-view .form-field {
    margin-bottom: 15px;
}
.form-view .form-field label {
    font-size: 0.8rem;
    color: var(--text-color-light);
    display: block;
    margin-bottom: 5px;
}
.form-view .input-box {
    background: var(--light-background-color);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    font-weight: 500;
}
.form-view .input-box.filled {
    color: var(--dark-color);
}
.form-view .form-submit {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

/* Email View */
.email-view {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 25px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}
.email-header {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}
.email-subject {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}
.email-from {
    font-size: 0.9rem;
    color: var(--text-color-light);
}
.email-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}
.email-body p:last-child {
    margin-bottom: 0;
}
.email-button {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.email-button:hover {
    background: var(--primary-hover);
}

/* SMS View */
.sms-view { padding: 20px; }
.phone-message-mini {
    padding: 15px 20px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 0.95rem;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}
.sms-link {
    color: #a2c7ff;
    text-decoration: underline;
}

/* Calendar View Mini */
.calendar-view-mini h4 { margin: 0 0 5px; text-align: center; }
.calendar-view-mini p { font-size: 0.9em; margin: 0 0 20px; text-align: center; }
.time-slots-mini { display: flex; flex-direction: column; width: 100%; gap: 10px; }
.time-slot-mini {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    background: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.time-slot-mini:hover { border-color: var(--primary-color); }
.time-slot-mini.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Confirmation View */
.confirmation-view { text-align: center; }
.confirmation-view h4 { margin: 0 0 5px; }
.confirmation-view p { margin: 0; font-size: 0.95rem; }

.restart-button {
    width: 80%;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes sparkle-anim {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(15deg); }
}

/* Feature Highlights */
.feature-highlights-section {
    background-color: var(--background-color);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-weight: 600;
    color: var(--text-color);
    min-height: 40px;
}

.feature-item img {
    height: 40px;
}

/* Problems Section */
.problems-section {
    background-color: var(--light-background-color);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.problem-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.problem-card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
}

.problem-card .solution-content {
    opacity: 1;
}

.problem-card img { height: 48px; margin-bottom: 10px; }
.problem-card p { margin: 0; font-weight: 600; font-size: 1.2rem;}
.problem-card .problem { color: var(--red-color); }
.problem-card .solution { color: var(--green-color); }

.problem-card .arrow {
    font-size: 2rem;
    color: var(--border-color);
    font-weight: bold;
}

/* System Section */
.system-section {
    text-align: center;
}

.system-flow {
    max-width: 600px;
    margin: 40px auto 0;
    position: relative;
}

.flow-step {
    text-align: center;
    margin-bottom: 20px;
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}
.flow-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.flow-content h3 { margin: 0 0 5px; font-size: 1.2rem;}
.flow-content p { margin: 0; color: var(--text-color-light);}
.flow-connector {
    height: 40px;
    width: 2px;
    background: var(--border-color);
    margin: -10px auto -10px;
    z-index: -1;
    position: relative;
}
.system-flow .flow-step:last-child { margin-bottom: 0; }
.system-flow .flow-connector:last-of-type {
    display: none;
}

/* Use Cases Section */
.use-cases-section {
    background-color: var(--dark-color);
}
.use-cases-section h2 {
    color: var(--light-text-color);
}
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.use-case-card {
    background: rgba(255,255,255,0.05);
    color: var(--light-text-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.use-case-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.use-case-card img { height: 50px; margin-bottom: 20px; }
.use-case-card h3 { color: var(--light-text-color); margin: 0; }

/* Product Preview Section */
.product-preview-section {
    display: none;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--background-color);
}
.pricing-subheadline {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    color: var(--green-color);
    font-weight: 600;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: var(--shadow-md);
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 107, 255, 0.15);
}
.best-value {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}
.pricing-card h3 { font-size: 1.7rem; }
.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin: 10px 0 5px;
}
.price span { font-size: 3.5rem; }
.annual-price {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 30px;
    min-height: 20px;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    flex-grow: 1;
}
.pricing-card li {
    margin-bottom: 15px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2334C759" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
    padding-left: 35px;
    color: var(--text-color);
}
.pricing-card .btn { margin-top: auto; }

/* Installation Section */
.installation-section {
    background-color: var(--light-background-color);
}
.installation-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}
.step {
    background: white;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}
.step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-background-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; color: var(--dark-color); }
.step p { color: var(--text-color); }

/* Why It Works Section */
.why-it-works-section {
    background-color: #fff;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.why-card {
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.why-card img {
    height: 48px;
    margin-bottom: 15px;
}

.why-card h4 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.why-card p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    text-align: center;
}
.cta-section h2, .cta-section p {
    color: white;
}
.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: none;
}
.cta-section .btn-primary:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 60px 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}
.footer-about { flex-basis: 35%; }
.footer-about .logo { color: white; }
.footer-about .logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}
.footer-about p {
    margin-top: 15px;
    max-width: 300px;
}
.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.footer-nav h4, .footer-contact h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-nav a, .footer-contact a {
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}
.footer-nav a:hover, .footer-contact a:hover {
    color: white;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: none;
    font-size: 0.9rem;
}
.footer-bottom p {
    margin: 0;
}

/* Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .main-nav {
        height: 80px;
    }
    .logo img {
        height: 50px;
    }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { order: 1; }
    .hero-image { order: 2; margin-top: 40px; margin-bottom: 0px; min-width: unset; }
    #interactive-demo-container {
        flex-basis: auto;
    }
    .interactive-demo {
        transform: rotateX(0) rotateY(0);
    }
    .interactive-demo:hover .phone-mockup {
        transform: scale(1.02);
    }
    .hero-image img { width: 100%; margin-left: 0; }
    .hero-buttons { justify-content: center; }
    .subheadline { margin-left: auto; margin-right: auto;}
    .problems-grid { grid-template-columns: 1fr; }
    .problem-card {
        flex-direction: column;
        gap: 20px;
    }
    .problem-card .arrow {
        transform: rotate(90deg);
    }
    .pricing-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto;}
    .pricing-card { margin-bottom: 30px; }
    .pricing-grid .pricing-card:last-child { margin-bottom: 0; }
    .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .installation-steps { grid-template-columns: 1fr; }
    .product-features h2 { text-align: center; }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav { display: none; }
    .mobile-nav-toggle {
        display: none;
    }
    
    .main-nav.is-open .nav-links {
        display: none;
    }
     .main-nav.is-open .btn-nav {
        display: none;
     }

    .main-nav.is-open .mobile-nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    h1 { font-size: 2.4rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 20px;}
    .use-cases-grid, .why-grid { grid-template-columns: 1fr; }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-about {
        flex-basis: 100%;
    }
    .footer-about p {
        margin-left: auto;
        margin-right: auto;
    }
}