* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    color: var(--text-light);
    font-size: 0.95rem;
}

.toast.success {
    border-left-color: var(--primary-blue);
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.toast.success .toast-icon {
    color: var(--primary-blue);
}

.toast.error .toast-icon {
    color: #e74c3c;
}

.toast-message {
    flex: 1;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--gray-text);
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-light);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

:root {
    /* Colors from Watchful app */
    --primary-blue: #0966b0;      /* Main blue from app */
    --primary-orange: #ff9800;    /* Orange accent */
    --primary-teal: #1abc9c;      /* Main teal/cyan from app */
    --primary-light: #16a085;     /* Darker teal */
    --primary-dark: #0d5d52;      /* Dark teal */
    --dark-bg: #1a1a2e;           /* Dark background */
    --darker-bg: #0f1419;         /* Darker background */
    --card-dark: #2c3e50;         /* Card background dark */
    --light-bg: #f8f9fa;          /* Light background */
    --text-dark: #2c3e50;         /* Text color dark */
    --text-light: #ecf0f1;        /* Text color light */
    --border-color: #34495e;      /* Border color */
    --white: #ffffff;
    --gray-text: #95a5a6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
}

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

/* Navigation */
.navbar {
    background: var(--darker-bg);
    border-bottom: 1px solid rgba(9, 102, 176, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 180px;
    height: auto;
    object-fit: contain;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.download-link {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-link:hover {
    background: #0555a0;
}

.download-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.9rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background: #0555a0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(9, 102, 176, 0.3);
}

.hero-phones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.phone-frame {
    width: 280px;
    height: 580px;
    border: 12px solid var(--card-dark);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideUpBounce 0.8s ease-out forwards;
    opacity: 0;
}

.phone-frame:nth-child(1) {
    animation-delay: 0.1s;
}

.phone-frame:nth-child(2) {
    animation: slideDownBounce 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.phone-frame:nth-child(3) {
    animation-delay: 0.5s;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 28px;
    background: var(--card-dark);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 0 0 16px 16px;
    z-index: 9;
}

.phone-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

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

.feature-card {
    background: var(--card-dark);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(9, 102, 176, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(9, 102, 176, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.4;
}

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

/* CTA Banner */
.cta-banner {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0555a0 100%);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.button {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.button-primary:hover {
    background: #ff8c00;
    transform: translateY(-2px);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.button-orange:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.button-orange-outline {
    background: var(--white);
    color: var(--primary-orange);
    border: 2px solid var(--white);
}

.button-orange-outline:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: var(--dark-bg);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-store-button {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 2rem;
    background: var(--card-dark);
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 240px;
}

.app-store-button:hover {
    background: rgba(9, 102, 176, 0.1);
    transform: translateY(-3px);
}

.app-store-button svg {
    width: 64px;
    height: 64px;
    fill: var(--primary-blue);
}

.store-label {
    font-size: 0.8rem;
    color: var(--gray-text);
    text-align: left;
}

.store-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-align: left;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
    color: var(--text-light);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: border 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(9, 102, 176, 0.1);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 180px;
    height: auto;
}

.footer-brand span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--card-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.modal::-webkit-scrollbar {
    width: 8px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: #0855a0;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-text);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-light);
}

.modal-body {
    overflow-y: auto;
    padding: 2rem;
    flex: 1;
    color: var(--text-light);
    line-height: 1.8;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #0855a0;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-body ul {
    list-style: disc;
}

.modal-body li {
    margin-bottom: 0.5rem;
}


.footer-bottom {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px);
    }
    80% {
        transform: translateY(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDownBounce {
    0% {
        opacity: 0;
        transform: translateY(-60px);
    }
    60% {
        opacity: 1;
        transform: translateY(8px);
    }
    80% {
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-phones {
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        display: flex;
        justify-content: flex-start;
    }

    .hero-phones::-webkit-scrollbar {
        height: 6px;
    }

    .hero-phones::-webkit-scrollbar-track {
        background: var(--card-dark);
        border-radius: 10px;
    }

    .hero-phones::-webkit-scrollbar-thumb {
        background: var(--primary-blue);
        border-radius: 10px;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--darker-bg);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .app-store-button {
        min-width: auto;
    }

    .contact-form {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
