/* Styles for Polibot Landing Page */

/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #fdfdfd;
}

.main-header {
    background-color: #123A5E;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9CF6E7;
    text-decoration: none;
}

.logo img {
    height: 50px; /* Adjusted for nav bar */
}


h1, h2 {
    font-weight: 700;
    color: #123A5E;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

section {
    padding: 60px 0; /* Only vertical padding */
    border-bottom: 1px solid rgba(156, 246, 231, 0.2);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Horizontal padding for mobile */
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header & Hero Section --- */
.hero {
    background-color: #123A5E;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

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

.cta-button.secondary {
    background-color: transparent;
    color: #9CF6E7;
    border: 2px solid #9CF6E7;
}

.cta-button.secondary:hover {
    background-color: rgba(156, 246, 231, 0.1);
    color: #fff;
    border-color: #fff;
}

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

.logo img {
    height: 90px;
}

.cta-button {
    background-color: #9CF6E7;
    color: #123A5E;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid #9CF6E7;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: transparent;
    color: #fff;
    text-decoration: none;
}

.section-subtitle {
    text-align: center;
    color: #555;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-item {
    background-color: #fff;
    border: 1px solid #eef;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(18, 58, 94, 0.1);
}

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

.feature-item h3 {
    font-size: 1.25rem;
    color: #123A5E;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Autonomy Section --- */
.autonomy {
    background-color: #123A5E;
    color: #fff;
}

.autonomy .section-title,
.autonomy .section-subtitle {
    color: #fff;
}

.autonomy .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.autonomy-toggle {
    display: flex;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 5px;
    max-width: 400px;
    margin: 0 auto 3rem auto;
}

.autonomy-toggle button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.autonomy-toggle button.active {
    background-color: #9CF6E7;
    color: #123A5E;
}

.autonomy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.autonomy-description, .autonomy-flow {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
}

.autonomy-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.autonomy-description p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.autonomy-description ul {
    list-style: none;
    padding: 0;
}

.autonomy-description li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
}

.autonomy-description li::before {
    content: '✓';
    color: #9CF6E7;
    position: absolute;
    left: 0;
}

.autonomy-flow h4 {
    text-transform: uppercase;
    color: #9CF6E7;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.flow-step .dot {
    width: 10px;
    height: 10px;
    background-color: #9CF6E7;
    border-radius: 50%;
}

.flow-connector {
    height: 20px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-left: 4px;
}

/* --- How It Works Section --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.how-it-works-step {
    background-color: #fff;
    border: 1px solid #eef;
    padding: 30px;
    border-radius: 12px;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #eef;
    margin-bottom: 1rem;
}

.how-it-works-step h3 {
    font-size: 1.25rem;
    color: #123A5E;
    margin-bottom: 0.5rem;
}

.how-it-works-step p {
    color: #555;
    font-size: 0.95rem;
}

/* --- Integrations Section --- */
.integrations {
    background-color: #f7f9fc;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.integration-item {
    background-color: #fff;
    border: 1px solid #eef;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.integration-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.integration-item h3 {
    font-size: 1.5rem;
    color: #123A5E;
    margin-bottom: 0.5rem;
}

.integration-item p {
    color: #555;
}


/* --- Contact Form Section --- */
.contact-form {
    background-color: #f4f4f4;
    text-align: center;
}

.contact-form form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form button {
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form button {
    background-color: #9CF6E7;
    color: #123A5E;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid #9CF6E7;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.contact-form button:hover {
    background-color: #fff;
    color: #123A5E;
    border-color: #123A5E;
}

/* --- Form Messages --- */
.form-messages {
    margin-top: 15px;
    font-weight: 700;
}

.form-messages.success {
    color: #28a745;
}

.form-messages.error {
    color: #dc3545;
}


/* --- Footer --- */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #123A5E;
    color: #eee;
}

/* --- General Section Styling --- */
.section-subtitle {
    text-align: center;
    color: #aab8c5;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Main Header --- */
.main-header {
    background: rgba(18, 58, 94, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 246, 231, 0.2);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container img { height: 40px; }
.logo-text { font-size: 1.5rem; font-weight: bold; color: #fff; }

.main-nav { display: none; } /* Hidden on mobile */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 2rem;
    }
    .main-nav a {
        color: #e2e8f0;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }
    .main-nav a:hover { color: #9CF6E7; }
}


.mobile-menu-button { display: block; background: none; border: none; color: white; font-size: 2rem; }
@media (min-width: 768px) { .mobile-menu-button { display: none; } }

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #123A5E;
    padding: 1rem;
}
.mobile-menu a { color: white; padding: 0.75rem; text-decoration: none; }
.mobile-menu a.cta-button { margin-top: 1rem; text-align: center; }

/* --- Hero Section Adjustment --- */
body { padding-top: 70px; } /* Offset for fixed header */
#hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
}
.hero-text { flex: 1; }
.hero-image img { max-width: 250px; }
.hero-buttons { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.cta-button-secondary {
    background-color: transparent;
    color: #9CF6E7;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid #9CF6E7;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button-secondary:hover { background-color: rgba(156, 246, 231, 0.1); text-decoration: none; }

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-item {
    background: rgba(18, 58, 94, 0.5);
    border: 1px solid rgba(156, 246, 231, 0.2);
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s;
}
.feature-item:hover {
    border-color: rgba(156, 246, 231, 0.5);
    transform: translateY(-5px);
}
.feature-item h3 { margin-top: 0; color: #fff; }
.feature-item p { color: #aab8c5; }

/* --- Autonomy Section --- */
.autonomy { background-color: #0f172a; color: white; }
.autonomy-toggle {
    display: flex;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 2rem;
}
.autonomy-toggle button {
    background: transparent;
    border: none;
    color: #aab8c5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}
.autonomy-toggle button.active {
    background: #9CF6E7;
    color: #123A5E;
}
.autonomy-card {
    background: rgba(18, 58, 94, 0.5);
    border: 1px solid rgba(156, 246, 231, 0.2);
    padding: 2rem;
    border-radius: 0.75rem;
}
.autonomy-card h3 { color: #fff; }
.autonomy-card p { color: #aab8c5; }
.autonomy-card ul { list-style: '✓ '; padding-left: 1.5rem; color: #aab8c5; }
.autonomy-card ul li { margin-bottom: 0.5rem; }

/* --- How It Works Section --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.step {
    background: rgba(18, 58, 94, 0.5);
    border: 1px solid rgba(156, 246, 231, 0.2);
    padding: 1.5rem;
    border-radius: 0.75rem;
}
.step-number { font-size: 2rem; font-weight: bold; color: rgba(156, 246, 231, 0.3); }
.step h3 { color: #fff; }
.step p { color: #aab8c5; }

/* --- Integrations Section --- */
.integrations { background-color: #0f172a; color: white; }
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.integration-item {
    background: rgba(18, 58, 94, 0.5);
    border: 1px solid rgba(156, 246, 231, 0.2);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
}
.integration-item h3 { color: #fff; }
.integration-item p { color: #aab8c5; }
.integration-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- FAQ Section --- */
.faq-item {
    background: rgba(18, 58, 94, 0.5);
    border: 1px solid rgba(156, 246, 231, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.faq-question {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: #aab8c5;
    margin: 0;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

/* --- Main Footer --- */
.main-footer {
    background: #0f172a;
    color: #aab8c5;
    padding: 3rem 2rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-column h4 { color: #fff; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 0.5rem; }
.footer-column a { color: #aab8c5; text-decoration: none; }
.footer-column a:hover { color: #9CF6E7; }
.footer-bottom {
    border-top: 1px solid rgba(156, 246, 231, 0.2);
    padding-top: 2rem;
    text-align: center;
}

/* Make Hero full-width */
section#hero {
    max-width: none;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Make "too light" sections dark-themed for better contrast */
#features,
#how-it-works,
#faq {
    background-color: #123A5E;
}
#features h2, #how-it-works h2, #faq h2 {
    color: #fff;
}
#features .section-subtitle,
#how-it-works .section-subtitle,
#faq .section-subtitle {
    color: #aab8c5;
}

/* Make "too dark" sections light-themed for better readability */
#autonomy,
#integrations {
    background-color: #fdfdfd;
}
#autonomy h2, #integrations h2,
#autonomy h3, #integrations h3,
.autonomy-card ul {
    color: #123A5E;
}
#autonomy .section-subtitle, #integrations .section-subtitle {
    color: #333;
}
#autonomy p, #integrations p {
    color: #555;
}
.autonomy-toggle {
    background-color: #e9ecef;
}
.autonomy-toggle button {
    color: #333;
}
.autonomy-toggle button.active {
    background-color: #123A5E;
    color: #fff;
}
.autonomy-card,
.integration-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
}
#integrations .integration-item h3 {
    color: #123A5E;
}
#integrations .integration-item p {
    color: #555;
}
