/* Mindout Landing Page - Unified Styles with Theme Support */

/* Light Theme (Default) */
:root {
    --color-dark: #1c1c1c;        /* Eerie Black */
    --color-cream: #f5f3ef;       /* Isabelline */
    --color-mint: #2ef2c1;        /* Aquamarine */
    --color-forest: #094738;      /* Brunswick Green */
    --color-purple: #a186f0;      /* Tropical Indigo */
    --color-gray-light: #f8f9fa;
    --color-gray-medium: #6c757d;
    --color-gray-dark: #343a40;
}

/* Dark Theme */
.dark-theme {
    --color-dark: #f5f3ef;        /* Light text on dark background */
    --color-cream: #1c1c1c;       /* Dark background */
    --color-mint: #2ef2c1;        /* Keep mint as accent */
    --color-forest: #094738;      /* Keep forest green for buttons */
    --color-purple: #a186f0;      /* Keep purple as accent */
    --color-gray-light: #2a2a2a;  /* Dark gray for cards */
    --color-gray-medium: #b0b0b0; /* Light gray for text */
    --color-gray-dark: #f0f0f0;   /* Light gray for emphasis */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-cream);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, .logo-text, .hero h1, .section-title {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
}

h3, h4, h5, h6, .feature-title {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: rgba(245, 243, 239, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-forest);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dark-theme .header {
    background: rgba(28, 28, 28, 0.95);
    border-bottom: 1px solid var(--color-mint);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
}

/* Logo images for different themes */
.logo img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Light mode logo (default) */
.logo .logo-light {
    opacity: 1;
}

.logo .logo-dark {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Dark mode logo */
.dark-theme .logo .logo-light {
    opacity: 0;
}

.dark-theme .logo .logo-dark {
    opacity: 1;
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-dark);
}

.nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-top: 1px solid rgba(28, 28, 28, 0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.dark-theme .nav {
    border-top: 1px solid rgba(245, 243, 239, 0.1);
}

.nav.active {
    display: flex;
}

.nav a {
    color: var(--color-gray-medium);
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--color-forest);
}

.dark-theme .nav a:hover {
    color: var(--color-mint);
}

.mode-link {
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s;
    color: var(--color-forest) !important;
    margin-right: 0.5rem;
    background: none !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    display: inline-block !important;
}

.dark-theme .mode-link {
    color: var(--color-mint) !important;
}

.mode-link:hover {
    opacity: 0.8;
    background: rgba(9, 71, 56, 0.1) !important;
}

.dark-theme .mode-link:hover {
    background: rgba(46, 242, 193, 0.1) !important;
}

/* Buttons */
.btn,
button,
input[type="submit"],
.btn-large,
#headerBtn,
#submitBtn1,
#submitBtn2,
#mockupBtn {
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-block !important;
    background-color: #094738 !important;
    background: #094738 !important;
    color: #F5F3EF !important;
    font-family: inherit !important;
    /* Text rendering optimizations for sharp text */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-smooth: always !important;
    /* Prevent text scaling issues */
    -webkit-text-size-adjust: 100% !important;
    -ms-text-size-adjust: 100% !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
.btn-large:hover,
#headerBtn:hover,
#submitBtn1:hover,
#submitBtn2:hover,
#mockupBtn:hover {
    background-color: #0a5a47 !important;
    background: #0a5a47 !important;
    transform: translateY(-1px);
}

.btn-large,
#submitBtn2 {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

/* Additional specific selectors for form buttons */
form button,
form input[type="submit"],
.waitlist-form button,
.phone-mockup button {
    background-color: #094738 !important;
    background: #094738 !important;
    color: #F5F3EF !important;
    border: none !important;
    /* Enhanced text rendering for form buttons */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-smooth: always !important;
    /* Ensure crisp text rendering */
    -webkit-text-stroke: 0.01em transparent !important;
    text-shadow: none !important;
}

/* Hero Section */
.hero {
    padding: 3rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, 
        var(--color-cream) 0%, 
        rgba(46, 242, 193, 0.08) 30%, 
        rgba(161, 134, 240, 0.08) 70%, 
        rgba(9, 71, 56, 0.05) 100%);
    transition: background 0.3s ease;
}

/*
.badge {
    background: var(--color-forest);
    color: #F5F3EF;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    display: inline-block;
}
*/

.dark-theme .badge {
    background: var(--color-forest);
    color: #F5F3EF;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .accent {
    color: var(--color-forest);
}

.dark-theme .hero .accent {
    color: var(--color-mint);
}

.hero p {
    font-size: 1rem;
    color: var(--color-gray-medium);
    margin-bottom: 1.5rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.section-quote, .hero-quote {
    font-size: 1.2em;
    font-style: italic;
    margin: 1.5em 0.5em 0.5em 0.5em;
    text-align: center;
    color: var(--color-forest);
}
.section-quote { 
    margin: 0 0.5em 1.5em 0.5em !important; 
}


.dark-theme .hero-quote,
.dark-theme .section-quote {
    color: var(--color-mint);
}

/* Waitlist Form */
.waitlist-form {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin: 1.5rem auto;
    transition: box-shadow 0.3s ease;
}

.dark-theme .waitlist-form {
    background: var(--color-gray-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: white;
    color: var(--color-dark);
}

.dark-theme .form-input {
    background: var(--color-cream);
    border-color: var(--color-gray-medium);
    color: var(--color-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(9, 71, 56, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-align: left;
}

.checkbox {
    margin-top: 0.125rem;
    min-width: 1.125rem;
    min-height: 1.125rem;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.875rem;
    color: var(--color-gray-medium);
    line-height: 1.4;
    flex: 1;
    cursor: pointer;
}

.success-message {
    background: rgba(9, 71, 56, 0.1);
    color: var(--color-forest);
    border: 1px solid rgba(9, 71, 56, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.dark-theme .success-message {
    background: rgba(46, 242, 193, 0.1);
    color: var(--color-mint);
    border: 1px solid rgba(46, 242, 193, 0.2);
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

/* Phone Mockup */
.phone-mockup {
    width: 12rem;
    height: 18rem;
    margin: 2rem auto;
    background: linear-gradient(to bottom, white, var(--color-gray-light));
    border-radius: 1.5rem;
    border: 6px solid rgba(28, 28, 28, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.dark-theme .phone-mockup {
    background: linear-gradient(to bottom, var(--color-gray-light), var(--color-cream));
    border-color: rgba(245, 243, 239, 0.1);
}

/* Features Section */
.features {
    padding: 3rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.features .section-header {
    margin-bottom: 1.5rem;
 }

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-gray-medium);
    max-width: 100%;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(9, 71, 56, 0.1);
    transition: all 0.3s;
}

.dark-theme .feature-card {
    background: var(--color-gray-light);
    border-color: rgba(46, 242, 193, 0.2);
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(9, 71, 56, 0.15);
    border-color: rgba(9, 71, 56, 0.2);
    transform: translateY(-2px);
}

.dark-theme .feature-card:hover {
    box-shadow: 0 10px 25px rgba(46, 242, 193, 0.15);
    border-color: rgba(46, 242, 193, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--color-gray-medium);
}

/* Waitlist Section */
.waitlist-section {
    padding: 3rem 1rem;
    background: linear-gradient(90deg, 
        rgba(46, 242, 193, 0.08), 
        rgba(161, 134, 240, 0.08), 
        rgba(9, 71, 56, 0.05));
    text-align: center;
    transition: background 0.3s ease;
}

.dark-theme .waitlist-section {
    background: linear-gradient(90deg, 
        rgba(46, 242, 193, 0.15), 
        rgba(161, 134, 240, 0.15), 
        rgba(9, 71, 56, 0.1));
}

/* Footer */
.footer {
    padding: 2rem 1rem;
    border-top: 1px solid var(--color-forest);
    background: rgba(9, 71, 56, 0.02);
    transition: all 0.3s ease;
}

.dark-theme .footer {
    border-top: 1px solid var(--color-mint);
    background: rgba(46, 242, 193, 0.02);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--color-gray-medium);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--color-forest);
}

.dark-theme .footer-section a:hover {
    color: var(--color-mint);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(28, 28, 28, 0.1);
    color: var(--color-gray-medium);
}

.dark-theme .footer-bottom {
    border-top: 1px solid rgba(245, 243, 239, 0.1);
}

/* Tablet breakpoint (768px and up) */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        background: none;
        border: none;
        padding: 0;
        flex-direction: row;
        gap: 1.5rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.125rem;
        max-width: 42rem;
    }

    .waitlist-form {
        padding: 2rem;
        max-width: 28rem;
        margin: 2rem auto;
    }

    .phone-mockup {
        width: 14rem;
        height: 21rem;
        margin: 2.5rem auto;
        border: 7px solid rgba(28, 28, 28, 0.1);
        padding: 1.25rem;
    }

    .dark-theme .phone-mockup {
        border-color: rgba(245, 243, 239, 0.1);
    }

    .features {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .waitlist-section {
        padding: 4rem 1rem;
    }

    .footer {
        padding: 2.5rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section:nth-child(2) {
        justify-self: end;
    }
    
    .footer-section:nth-child(3) {
        justify-self: end;
    }

    .checkbox {
        min-width: 1.25rem;
        min-height: 1.25rem;
        margin-top: 0.1rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }
}

/* Desktop breakpoint (1024px and up) */
@media (min-width: 1024px) {
    .hero {
        padding: 5rem 1rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .phone-mockup {
        width: 16rem;
        height: 24rem;
        margin: 3rem auto;
        border: 8px solid rgba(28, 28, 28, 0.1);
        padding: 1.5rem;
    }

    .dark-theme .phone-mockup {
        border-color: rgba(245, 243, 239, 0.1);
    }

    .features {
        padding: 5rem 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .waitlist-section {
        padding: 5rem 1rem;
    }

    .footer {
        padding: 3rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        justify-items: start;
    }
    
    .footer-section:last-child {
        justify-self: end;
    }
    
    .footer-section:nth-child(2) {
        justify-self: end;
    }

    .checkbox-group {
        gap: 1rem;
    }

    .checkbox-label {
        font-size: 1rem;
    }
}

/* Theme transition animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}