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

html {
    scroll-behavior: smooth;
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Enhanced focus for buttons and links */
.btn:focus,
a:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 3px;
}

/* Focus for form elements */
input:focus,
button:focus {
    outline: 3px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Screen reader only - visually hidden but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
}

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

/* Color Variables */
:root {
    --primary-orange: #E45A00;
    --dark-blue: #0A2D5A;
    --avocado: #548400;
    --blue: #056B94;
    --forest-green: #3B7F6A;
    --purple: #A855F7;
    --yellow: #F9D978;
    --light-blue: #A3E7FF;
    --light-green: #D2E198;
    --pastel-blue: #DAF3FF;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-color: #333;
}

/* Header */
.header {
    background: var(--dark-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    height: 75px;
    width: auto;
}

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

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--purple), #a64da6);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 0, 128, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.btn-secondary:hover {
    background: var(--light-blue);
    color: var(--dark-bg);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid var(--purple);
}

.btn-outline:hover {
    background: var(--purple);
    color: white;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-blue) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive video wrapper for YouTube embeds */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Improve image loading performance */
img {
    max-width: 100%;
    height: auto;
}

/* Logo styling */
.logo {
    height: 75px;
    width: auto;
}

/* Improve form accessibility */
input, button, select, textarea {
    font-family: inherit;
    font-size: 100%;
}

input:invalid {
    border-color: #ff6b6b;
}

input:valid {
    border-color: var(--avocado);
}

input[aria-invalid="true"] {
    border-color: #ff6b6b;
    outline: 2px solid #ff6b6b;
}

.error {
    color: #ff6b6b;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.feature-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(128, 0, 128, 0.1);
    border-color: var(--purple);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--pastel-blue);
}

.feature-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: var(--dark-bg);
}

.demo-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.video-container {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    color: white;
    text-align: center;
    padding: 2rem;
}

.play-button {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-button:hover {
    opacity: 1;
}

.demo-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--purple);
}

.demo-features ul {
    list-style: none;
    padding: 0;
}

.demo-features li {
    padding: 0.5rem 0;
    color: #e0e0e0;
    position: relative;
    padding-left: 1.5rem;
}

.demo-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--avocado);
    font-weight: bold;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(18, 61, 111, 0.5) 100%);
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.toggle-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e0e0e0;
}

.save-badge {
    background: var(--avocado);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch input:focus + .toggle-slider {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--purple);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(128, 0, 128, 0.2);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--purple);
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
}

.period {
    font-size: 1rem;
    color: #e0e0e0;
}

.plan-action-price {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.plan-tagline {
    background: linear-gradient(135deg, var(--light-blue), var(--pastel-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.plan-features li {
    padding: 0.5rem 0;
    color: #e0e0e0;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Pricing card buttons */
.pricing-card .btn {
    max-width: 200px;
    margin: 0 auto;
    align-self: center;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, rgba(84, 132, 0, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

/* Quote styling for quote section */
#quote .newsletter-content {
    position: relative;
}

#quote .newsletter-content::before {
    content: '"';
    position: absolute;
    left: -4rem;
    top: -2rem;
    font-size: 8rem;
    font-weight: bold;
    color: white;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

/* Quote attribution styling */
.quote-attribution {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: right;
    font-weight: 400;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(228, 90, 0, 0.1), rgba(84, 132, 0, 0.1));
    animation: pulse 3s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.newsletter-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-highlight {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--yellow);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.newsletter p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.newsletter-form input:focus {
    outline: 3px solid var(--primary-orange);
    transform: translateY(-2px);
}

.newsletter-form button {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(128, 0, 128, 0.4);
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.benefit {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 400;
    text-align: center;
    opacity: 0.9;
    position: relative;
    padding-left: 1rem;
}

.benefit::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
}

.newsletter-message {
    margin-top: 1rem;
}

.newsletter-message .success {
    color: var(--light-green);
}

.newsletter-message .error {
    color: #ff6b6b;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
    color: #e0e0e0;
}

.footer-brand a {
    color: var(--purple);
    text-decoration: none;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-column a {
    display: block;
    color: #e0e0e0;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    /* padding-top: 2rem;
    border-top: 1px solid var(--border-color); */
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }
    
    /* Hide features and pricing links on mobile */
    .nav-link:not(.btn) {
        display: none;
    }

    /* Make navigation button smaller on mobile */
    .nav-links .btn {
        padding: 8px 16px;
        font-size: 14px;
        font-weight: 500;
    }

    /* Adjust quotation mark for mobile */
    #quote .newsletter-content::before {
        left: -2rem;
        top: -1rem;
        font-size: 5rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .demo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-benefits {
        gap: 1rem;
    }

    .benefit {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .newsletter h2 {
        font-size: 2.2rem;
    }

    .newsletter-highlight {
        font-size: 1.2rem;
    }

    .feature-card,
    .pricing-card {
        padding: 1.5rem;
    }

    /* Even smaller button on very small screens */
    .nav-links .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Reduce logo size slightly on very small screens if needed */
    .logo {
        height: 60px;
    }

    /* Further adjust quotation mark for very small screens */
    #quote .newsletter-content::before {
        left: -1rem;
        top: -0.5rem;
        font-size: 3.5rem;
    }
}
