/* ===========================================================================
   Homepage-only styles. The shared chrome (reset, container, header, nav,
   buttons, mobile menu, footer) lives in site.css; this file carries just the
   landing-page sections (hero, platform, features, switching, FAQs, demo).
   Loaded via the base layout's `pageCss` hook, after site.css.
   =========================================================================== */

/* The homepage was designed on pure white; site.css gives templated pages a
   warm off-white body. Keep the landing page white so its plain sections read
   as they always have. */
body {
    background: #fff;
}

/* --- Hero --------------------------------------------------------------- */
.hero {
    background: white; /*linear-gradient(135deg, #F1FDFF 0%, white 100%);*/
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: #212121;
}

.hero-text p {
    font-size: 18px;
    color: #212121;
    margin-bottom: 32px;
    opacity: 0.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
}

.hero-text h1 .highlight {
    color: #00DBFF;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-outline {
    background: transparent;
    color: #212121;
    padding: 12px 28px;
    border: 1px solid #212121;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.btn-outline:hover {
    background: #212121;
    color: white;
}

.btn-outline-light {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border: 1px solid white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-ticks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-ticks li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: #212121;
}

.hero-ticks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00DBFF;
    font-weight: 600;
}

/* --- Section scaffolding ------------------------------------------------ */
section {
    padding: 80px 0;
}

.section-dark {
    background: #212121;
    color: white;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 60px;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header {
    text-align: center;
}

.section-header .eyebrow {
    margin-bottom: 16px;
}

.section-header .section-title {
    margin-bottom: 20px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F6F6FC;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 16px;
}

.chip-dot {
    width: 8px;
    height: 8px;
    background: #00DBFF;
    border-radius: 50%;
}

.feature-heading {
    font-size: 28px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 16px;
}

/* --- Platform overview -------------------------------------------------- */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.platform-image img {
    width: 100%;
    border-radius: 12px;
}

.platform-grid-reverse {
    direction: rtl;
}

.platform-grid-reverse > * {
    direction: ltr;
}

/* --- Diagram ------------------------------------------------------------ */
.diagram-container {
    text-align: center;
    padding: 60px 0;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
}

/* --- Features grid ------------------------------------------------------ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s;
}

.section-dark .feature-card {
    background: #2a2a2a;
}

.section-dark .features-title {
    color: white;
}

.section-dark .features-subsection-title {
    color: white;
}

.section-dark .feature-card-new {
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.icon-green { background: #C1FAC7; color: #9CE195; }
.icon-orange { background: #FFE7E7; color: #FFB790; }
.icon-blue { background: #F1FDFF; color: #9FC9FF; }
.icon-red { background: #FFE7E7; color: #FF4848; }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* --- Features section (cards) ------------------------------------------- */
.features-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.features-title {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    margin: 0;
}

.features-subsection {
    margin-top: 20px;
}

.features-subsection .eyebrow {
    color: #00DBFF;
    margin-bottom: 12px;
}

.features-subsection-title {
    font-size: 24px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 30px;
}

.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card-new {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-card-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin: 0;
    line-height: 1.3;
}

.feature-card-new p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.feature-icon-pound {
    width: 32px;
    height: 32px;
    background: #E6F9FF;
    color: #00DBFF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-icon-gear {
    width: 32px;
    height: 32px;
    background: #F0F0F5;
    color: #666;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* --- Connection --------------------------------------------------------- */
.connection-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.connection-image {
    position: relative;
}

.connection-image img {
    width: 100%;
    border-radius: 12px;
}

/* --- Switching ---------------------------------------------------------- */
.switching-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.switch-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.switch-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.switch-card p {
    font-size: 14px;
    color: #666;
}

/* --- FAQs --------------------------------------------------------------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #212121;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    width: 28px;
    height: 28px;
    background: #F0F0F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: #666;
    line-height: 1.6;
}

.faq-answer p {
    margin: 0;
}

/* --- Book demo ---------------------------------------------------------- */
.book-demo {
    background: #212121;
    padding: 80px 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.demo-image img {
    width: 100%;
    border-radius: 12px;
}

.demo-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.demo-form h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #DEDEDE;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00DBFF;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

/* --- Contact ------------------------------------------------------------ */
.demo-content {
    padding: 20px 0;
}

.demo-heading {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.demo-content > p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.option-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #00DBFF;
    margin-bottom: 12px;
    display: block;
}

.contact-option h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.contact-option p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-dark {
    display: inline-block;
    background: #00DBFF;
    color: #212121;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 219, 255, 0.3);
}

.contact-footer {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.include-label {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.include-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.include-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.email-direct {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.email-direct a {
    color: #00DBFF;
    font-weight: 600;
    text-decoration: none;
}

.email-direct a:hover {
    text-decoration: underline;
}

/* --- Responsive --------------------------------------------------------- */
/* Shared chrome (nav/footer collapse, mobile menu) is handled in site.css;
   these rules cover the landing-page sections only. */
@media (max-width: 968px) {
    .hero {
        padding: 40px 0 80px;
    }

    .hero-content,
    .platform-grid,
    .connection-content,
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

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

    .contact-options {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .features-grid,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
