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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Color Variables */
:root {
    --primary-main: #16a085;
    --primary-light: #1abc9c;
    --primary-dark: #0e6655;
    --secondary-main: #34495e;
    --secondary-light: #5d6d7e;
    --secondary-dark: #2c3e50;
    --error-main: #e74c3c;
    --warning-main: #f39c12;
    --info-main: #3498db;
    --success-main: #27ae60;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-default: #ffffff;
    --background-paper: #ffffff;
    --border-color: #e8f4f8;
    --shadow-light: 0 2px 8px rgba(22, 160, 133, 0.1);
    --shadow-medium: 0 4px 16px rgba(22, 160, 133, 0.15);
    --shadow-heavy: 0 8px 32px rgba(22, 160, 133, 0.2);
}

/* Utility Classes */
.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;
}

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

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

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

.logo p {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-main);
    letter-spacing: -0.02em;
}

/* Main Content */
.main {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(22, 160, 133, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(26, 188, 156, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
  color: var(--primary-main);
  background-image: linear-gradient(
    90deg,
    var(--primary-main),
    var(--primary-light)
  );
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 100%;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    margin-bottom: 2rem;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--background-default);
    transition: all 0.2s ease;
    outline: none;
}

.email-input:focus {
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    border: 0px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.4s, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    min-width: 180px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.submit-btn.hero-cta::before {
    border: 2px solid var(--primary-main);
    border-radius: 12px;
}
.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.submit-btn.bottom-cta::before {
    border-radius: 12px;
    background: var(--primary-dark);
}

.submit-btn.bottom-cta:hover {
    transition: color 0.2s ease-in-out;
}
.submit-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    z-index: -2;
    clip-path: polygon(
        0% 0%,
        0% 100%,
        2px 100%,
        2px 2px,
        calc(100% - 2px) 2px,
        calc(100% - 2px) calc(100% - 2px),
        2px calc(100% - 2px),
        2px 100%,
        100% 100%,
        100% 0%
    );
    transition: clip-path 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.submit-btn:hover {
    /* box-shadow: var(--shadow-medium); */
    color: var(--primary-main);
}

.submit-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-btn:hover::after {
    clip-path: polygon(
        0% 0%,
        0% 100%,
        2px 100%,
        2px 2px,
        calc(100% - 2px) 2px,
        calc(100% - 2px) calc(100% - 2px),
        calc(100% - 2px) calc(100% - 2px),
        calc(100% - 2px) 100%,
        100% 100%,
        100% 0%
    );
}

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.3);
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Error and Success Messages */
.error-message {
    color: var(--error-main);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
    display: none;
}

.success-message {
    color: var(--success-main);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: center;
    display: none;
}

.error-message.show,
.success-message.show {
    display: block;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--background-paper);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-default);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-main), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.1), rgba(26, 188, 156, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-main);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: left;
}

.feature-description {
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 0rem 0rem 6rem 0rem;
    background-color: var(--background-default);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Bottom CTA Section */
.cta-section-bottom {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
}

.cta-section-bottom .email-input {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section-bottom .email-input:focus {
    background-color: white;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cta-section-bottom .submit-btn {
    background: white;
    color: var(--primary-main);
    transition: none;
}

.cta-section-bottom .submit-btn:hover {
    color: var(--background-paper);
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: var(--background-paper);
    color: white;
    padding: 3rem 0;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-main);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links p {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links-social {
    margin-top: 0.5rem;
    text-align: center;
    
}
.footer-links-social a {
    color: #16a085;
    text-decoration: none;
    margin-left: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .email-input {
        min-width: auto;
    }
    
    .submit-btn {
        min-width: auto;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-section-bottom {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-description {
        font-size: 1.125rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon svg {
        width: 32px;
        height: 32px;
    }
    p.form-note {
        text-align: left;
    }
    .cta-section-bottom .cta-description {
        text-align: left;
    }
    .footer-brand {
        text-align: left;
    }
    .footer div.footer-links {
        text-align: left!important;
    }
}

/* Focus and Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .cta-section-bottom {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .features {
        padding: 2rem 0;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}
