/* ===================================
   CrowsnestAI - Light Theme
   =================================== */

:root {
    --primary: #01abf8;
    --primary-dark: #2b65b5;
    --purple: #8c2eae;
    --purple-dark: #420973;

    --white: #ffffff;
    --bg-light: #fafafa;
    --bg-section: #f5f5f7;

    --text-dark: #1d1d1f;
    --text-body: #424245;
    --text-muted: #6e6e73;

    --border: #e5e5e7;
    --border-light: rgba(0, 0, 0, 0.08);

    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);

    --font-heading: 'Urbanist', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.2;
}

h1 { font-size: 56px; font-weight: 900; }
h2 { font-size: 40px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 171, 248, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo img {
    height: 24px;
}

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

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: var(--shadow);
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-body);
    border-bottom: 1px solid var(--border);
}

/* ===================================
   Hero
   =================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 220px 0 120px;
    background: var(--bg-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.blur-1 {
    width: 400px;
    height: 400px;
    background: rgba(1, 171, 248, 0.2);
    top: 10%;
    right: 10%;
}

.blur-2 {
    width: 300px;
    height: 300px;
    background: rgba(140, 46, 174, 0.15);
    bottom: 20%;
    left: 5%;
}

.blur-3 {
    width: 250px;
    height: 250px;
    background: rgba(255, 0, 128, 0.1);
    top: 40%;
    left: 30%;
}

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

.hero h1 {
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: 80px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===================================
   Problem Section
   =================================== */
.problem-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.problem-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.problem-icon.red {
    background: rgba(229, 57, 53, 0.1);
    color: #e53935;
}

.problem-card h4 {
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===================================
   Solution Section
   =================================== */
.solution-section {
    padding: 80px 0;
    background: var(--white);
}

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

.solution-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}

.solution-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
}

.solution-card h4 {
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===================================
   Case Study Section
   =================================== */
.case-study-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--purple-dark) 100%);
}

.case-study-section .section-header h2,
.case-study-section .section-header p {
    color: var(--white);
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
}

.stat-card.highlight {
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

/* ===================================
   Capabilities Section
   =================================== */
.capabilities-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.capabilities-grid .capability-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc(50% - 12px);
}

.capability-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: all 0.3s ease;
}

.capability-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.capability-image {
    width: 200px;
    flex-shrink: 0;
}

.capability-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capability-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.capability-content h4 {
    margin-bottom: 12px;
}

.capability-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* ===================================
   How It Works
   =================================== */
.how-it-works-section {
    padding: 100px 0;
    background: var(--white);
}

.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.how-it-works-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
}

.how-it-works-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.how-it-works-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-it-works-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.how-it-works-features li svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.how-it-works-features li strong {
    color: var(--text-primary);
}

/* Flow Diagram */
.how-it-works-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.flow-stage {
    display: grid;
    grid-template-columns: 100px 30px 1fr;
    gap: 16px;
    align-items: start;
}

.stage-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
    padding-top: 10px;
    line-height: 1.4;
}

.stage-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding-top: 18px;
}

.stage-connector::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #09ceeb;
}

.stage-connector::after {
    content: '';
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #09ceeb, #09ceeb);
    margin-top: 4px;
}

.stage-connector.long::after {
    height: 320px;
}

.flow-stage:last-child .stage-connector::after {
    display: none;
}

.flow-pills {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-pill {
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: var(--text-primary);
    max-width: 340px;
}

.flow-pill.cyan {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    color: #006064;
}

.flow-pill.purple {
    background: linear-gradient(135deg, #e1bee7 0%, #ce93d8 100%);
    color: #4a148c;
}

.flow-pill.blue {
    background: linear-gradient(135deg, #bbdefb 0%, #64b5f6 100%);
    color: #0d47a1;
}

/* Responsive */
@media (max-width: 900px) {
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-it-works-text h2 {
        font-size: 28px;
    }

    .flow-stage {
        grid-template-columns: 80px 24px 1fr;
        gap: 12px;
    }

    .stage-label {
        font-size: 12px;
    }

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

    .stage-connector.long::after {
        height: 280px;
    }
}

/* ===================================
   Team Section
   =================================== */
.team-section {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo.placeholder {
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    border: none;
}

.team-card h4 {
    margin-bottom: 4px;
}

.team-role {
    display: block;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 12px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    text-align: center;
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
}

/* Testimonials - styles handled inline */

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--purple-dark) 100%);
}

.cta-section input::placeholder,
.cta-section textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cta-section input:focus,
.cta-section textarea:focus {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.cta-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 40px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}

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

.footer-brand img {
    height: 28px;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.design-credit {
    font-size: 12px !important;
    margin-top: 4px !important;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    h1 { font-size: 44px; }
    h2 { font-size: 32px; }

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

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

    .capabilities-grid .capability-card:last-child:nth-child(odd) {
        max-width: 100%;
    }

    .capability-card {
        flex-direction: column;
    }

    .capability-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .features-grid,
    .problem-grid,
    .solution-grid,
    .stats-grid,
    .team-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .workflow {
        flex-direction: column;
    }

    .workflow-arrow {
        width: 2px;
        height: 24px;
    }

    .workflow-arrow::after {
        right: -4px;
        top: auto;
        bottom: 0;
        border: 5px solid transparent;
        border-top-color: var(--border);
        border-left-color: transparent;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    /* How It Works - Mobile */
    .how-it-works-layout {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .how-it-works-text {
        order: 1;
    }

    .how-it-works-text h2,
    .how-it-works-text > p {
        text-align: center;
    }

    .how-it-works-text ul {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .how-it-works-funnel {
        order: 2;
        justify-content: center !important;
    }

    .funnel-arrows {
        width: 60px !important;
    }

    .funnel-pills {
        width: 220px !important;
    }

    .funnel-pills > div {
        margin: 0 !important;
        padding: 10px 16px !important;
        font-size: 12px !important;
    }

    /* Contact form mobile */
    .cta-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .cta-section form > div {
        grid-template-columns: 1fr !important;
    }

    .cta-section form button {
        align-self: center !important;
    }
}
