/* jaik.dev - Workflow Solutions for Small Businesses
   Brand Colors: Dark Navy (10, 25, 52), Bright Blue (0, 156, 255), Silver (192, 192, 192)
   Typography: Montserrat
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: rgb(10, 25, 52);
    --bright-blue: rgb(0, 156, 255);
    --silver: rgb(192, 192, 192);
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --text-gray: #666666;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    background-color: var(--white);
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgb(8, 18, 40);
    border-bottom: none;
    box-shadow: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy), var(--bright-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 0;
}

.member-photo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--bright-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0099cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 156, 255, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-white {
    background-color: var(--white);
    color: var(--bright-blue);
    border: 2px solid var(--white);
}

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

.btn-block {
    width: 100%;
    text-align: center;
}

/* =============================================
   HERO — Mobile-first, scales up to desktop
   ============================================= */

.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding: 30px 0 40px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(5, 12, 30, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

/* --- Label --- */
.hero-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--bright-blue);
    border: 1px solid rgba(0, 156, 255, 0.5);
    border-radius: 20px;
    padding: 5px 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- Headline stack --- */
.hero-headline {
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-headline-top {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4px;
    display: block;
}

.hero-headline-bottom {
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1.15;
    /* Allow wrapping on small screens — no nowrap */
}

/* --- Rotating word --- */
.hero-rotating-word {
    color: var(--bright-blue);
    display: inline-block;
    transition: opacity 0.4s ease, transform 0.4s ease;
    font-style: italic;
}

.hero-rotating-word.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.hero-rotating-word.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* --- Proof bar: stacked on mobile --- */
.hero-proof-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 0 auto 24px;
    max-width: 340px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.proof-item strong {
    color: var(--white);
    font-weight: 700;
}

.proof-icon {
    font-size: 18px;
}

/* Divider hidden on mobile (stacked layout) */
.proof-divider {
    display: none;
}

/* --- Subheadline --- */
.hero-sub {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

/* --- CTA --- */
.hero-cta {
    font-size: 15px;
    padding: 16px 28px;
    border-radius: 8px;
    box-shadow: 0 0 24px rgba(0, 156, 255, 0.4);
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    max-width: 340px;
}

.hero-cta:hover {
    box-shadow: 0 0 40px rgba(0, 156, 255, 0.65);
    transform: translateY(-2px);
}

/* --- Trust line: wraps naturally on mobile --- */
.hero-trust {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

/* Legacy selectors kept for safety */
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero em {
    font-style: italic;
    color: var(--bright-blue);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
}

/* --- Tablet (600px+): side-by-side proof bar --- */
@media (min-width: 600px) {
    .hero-label {
        font-size: 11px;
    }

    .hero-headline-top {
        font-size: 22px;
    }

    .hero-headline-bottom {
        font-size: 50px;
    }

    .hero-proof-bar {
        flex-direction: row;
        border-radius: 50px;
        padding: 14px 28px;
        max-width: 600px;
        gap: 8px;
    }

    .proof-divider {
        display: block;
        width: 1px;
        height: 20px;
        background: rgba(255, 255, 255, 0.25);
        margin: 0 4px;
        flex-shrink: 0;
    }

    .hero-sub {
        font-size: 16px;
    }

    .hero-cta {
        font-size: 16px;
        padding: 17px 36px;
        width: auto;
    }

    .hero-trust {
        font-size: 12px;
        white-space: nowrap;
    }
}

/* --- Desktop (900px+): full size --- */
@media (min-width: 900px) {
    .hero {
        min-height: 680px;
        align-items: center;
        padding: 80px 0 60px;
    }

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

    .hero-label {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 28px;
    }

    .hero-headline {
        margin-bottom: 32px;
    }

    .hero-headline-top {
        font-size: 28px;
        margin-bottom: 6px;
    }

    .hero-headline-bottom {
        font-size: 62px;
        white-space: nowrap;
    }

    .hero-proof-bar {
        max-width: none;
        padding: 14px 36px;
        margin-bottom: 32px;
        gap: 12px;
    }

    .proof-divider {
        margin: 0 8px;
    }

    .hero-sub {
        font-size: 18px;
        margin-bottom: 36px;
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        font-size: 17px;
        padding: 18px 40px;
        box-shadow: 0 0 30px rgba(0, 156, 255, 0.4);
        margin-bottom: 24px;
    }

    .hero-trust {
        font-size: 13px;
        margin-top: 20px;
        white-space: nowrap;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--navy);
}

.section h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

/* Why Section */
.why-section {
    background-color: var(--light-gray);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--navy);
}

.card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.link {
    color: var(--bright-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
    transition: color 0.3s ease;
}

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

/* Process Section */
.process-section {
    background-color: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bright-blue);
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step p {
    color: var(--text-gray);
    font-size: 14px;
}

.step-arrow {
    font-size: 24px;
    color: var(--bright-blue);
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: block;
    }
}

.process-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    margin-top: 20px;
}

/* Services Section */
.services-section {
    background-color: var(--light-gray);
}

/* Use Cases Section */
.usecases-section {
    background-color: var(--white);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bright-blue);
    margin-top: 50px;
    margin-bottom: 30px;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.usecase-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.usecase-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.usecase-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center top;
}

.usecase-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    padding: 20px 20px 10px;
}

.usecase-card p {
    padding: 0 20px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.impact {
    color: var(--bright-blue);
    font-weight: 600;
    padding: 10px 20px !important;
}

.demo-placeholder {
    background-color: var(--light-gray);
    padding: 15px 20px;
    margin: 15px 20px;
    border-radius: 6px;
}

.demo-placeholder p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--text-gray);
}

.demo-btn {
    background: none;
    border: none;
    color: var(--bright-blue);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.demo-btn:hover {
    color: var(--navy);
}

.usecase-card .btn {
    margin: 0 20px 20px;
}

/* Tech Section */
.tech-section {
    background-color: var(--light-gray);
    text-align: center;
}

.tech-section p {
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 16px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tech-item {
    text-align: center;
}

.tech-logo {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bright-blue);
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tech-item p {
    font-weight: 600;
    color: var(--navy);
}

.opacity-50 {
    opacity: 0.5;
}

/* FAQ Section */
.faq-section {
    background-color: var(--white);
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-left: 4px solid var(--bright-blue);
    padding: 20px 0 20px 30px;
    margin-bottom: 20px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--navy);
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    background-color: var(--light-gray);
}

.team-intro {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 16px;
}

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

.team-member {
    text-align: center;
}

.member-photo {
    width: 100%;
    height: 250px;
    background-color: var(--silver);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.team-member h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.role {
    color: var(--bright-blue);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px !important;
}

.bio {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* Team Bio: "Read full bio" button + Modal */
.bio-more-btn {
    background: none;
    border: none;
    color: var(--bright-blue);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.bio-more-btn:hover {
    color: var(--navy);
}

.bio-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.bio-modal.open {
    display: flex;
}

.bio-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 30, 0.7);
    backdrop-filter: blur(3px);
}

.bio-modal-content {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 12px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.bio-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.bio-modal-close:hover {
    color: var(--navy);
}

.bio-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-right: 30px;
}

.bio-modal-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-modal-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.bio-modal-role {
    color: var(--bright-blue);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0;
}

.bio-modal-body p {
    color: var(--dark-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.bio-modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .bio-modal-content {
        padding: 28px 20px;
    }

    .bio-modal-name {
        font-size: 22px;
    }

    .bio-modal-photo {
        width: 72px;
        height: 72px;
    }
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--navy), var(--bright-blue));
    color: var(--white);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--white);
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
}

.privacy-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Final CTA Section */
.final-cta-section {
    background-color: var(--white);
    text-align: center;
}

.final-cta-section h2 {
    color: var(--navy);
}

.final-cta-section p {
    color: var(--text-gray);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--bright-blue);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    margin-bottom: 20px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--bright-blue);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--bright-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .hero p {
        font-size: 16px;
    }

    .section h2 {
        font-size: 32px;
    }

    .process-steps {
        flex-direction: column;
    }

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

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
    }
}
