/* ================================
   Navbar
================================ */

.site-header {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 72px;
    padding-inline: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.brand-logo {
    width: 32px;
    height: 32px;
    display: block;
}

.brand-name {
    color: #f1eee7;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.main-nav a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.main-nav a:hover {
    color: var(--color-text-primary);
}

.main-nav .btn-ghost {
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: var(--space-4);
        padding-top: var(--space-3);
        padding-bottom: var(--space-3);
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: var(--space-4);
    }
}


/* ================================
   Hero
================================ */

.hero {
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            rgba(99, 102, 241, 0.08),
            transparent 35%
        );
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);

    min-height: 680px;
}

.hero-left {
    flex: 1;
    max-width: 560px;
}

.hero-right {
    flex: 0 1 500px;
    max-width: 500px;
}


/* ================================
   Hero Left
================================ */

.hero-content h1 {
    margin: 0;
    max-width: 560px;

    color: var(--color-text-primary);

    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.035em;
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-description {
    max-width: 540px;
    margin: var(--space-6) 0 0;

    color: var(--color-text-secondary);

    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.hero-audience {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);

    margin-top: var(--space-6);

    font-size: var(--font-size-xs);
    line-height: 1.5;
}

.hero-audience span:first-child {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-audience span:last-child {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
}


/* ================================
   Hero Right
================================ */

.brief-preview {
    width: 100%;
    padding: var(--space-5) var(--space-6) var(--space-6);

    background: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);
}

.brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: var(--space-3);
}

.brief-type {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);

    color: var(--color-text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.brief-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    color: var(--color-primary);
    background: var(--color-surface-soft);
    border-radius: var(--radius-sm);
}

.brief-icon svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brief-time {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

.brief-title {
    margin-bottom: var(--space-4);
}

.brief-title h2 {
    margin: 0;

    color: var(--color-text-primary);

    font-size: var(--font-size-lg);
    line-height: 1.3;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

.brief-label {
    margin: 0 0 var(--space-2);

    color: var(--color-primary);

    font-size: 0.65rem;
    font-weight: var(--font-weight-semibold);

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brief-summary > p:last-child {
    margin: 0;

    color: var(--color-text-primary);

    font-size: var(--font-size-sm);
    line-height: 1.65;
}

.brief-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);

    margin-top: var(--space-4);
    padding-top: var(--space-4);

    border-top: 1px solid var(--color-border);
}

.brief-detail p:last-child {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.brief-questions {
    margin-top: var(--space-4);
    padding-top: var(--space-4);

    border-top: 1px solid var(--color-border);
}

.brief-question {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.brief-question > span {
    flex-shrink: 0;

    color: var(--color-primary);

    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.brief-question p {
    margin: 0;

    color: var(--color-text-secondary);

    font-size: var(--font-size-sm);
    line-height: 1.6;
}

.brief-divider {
    width: 100%;
    height: 1px;

    background: var(--color-border);

    margin-bottom: var(--space-4);
}


/* ================================
   Hero Responsive
================================ */

@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-10);

        min-height: auto;
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }

    .hero-left,
    .hero-right {
        max-width: none;
    }

    .hero-content h1 {
        max-width: 620px;
        font-size: clamp(2.4rem, 7vw, 3.2rem);
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-actions .btn {
        flex: 1;
    }
}


/* ================================
   How It Works
================================ */

.how-it-works {
    position: relative;
    padding: 110px 0;
}

.how-it-works .container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

.how-it-works::before {
    content: "";

    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;

    height: 1px;
    background: var(--color-border);
}

.how-it-works::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;

    height: 1px;
    background: var(--color-border);
}

.section-header {
    width: 100%;
    margin: 0 0 48px;

    text-align: left;
}

.section-eyebrow {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-primary);
}

.section-header h2 {
    margin: 0;

    text-align: left;

    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.section-header p {
    width: 100%;
    max-width: 800px;
    margin: 12px 0 0;

    font-size: 15px;
    line-height: 1.6;

    color: var(--color-text-muted);
    text-align: left;
}

.workflow {
    display: flex;
    flex-direction: column;
    gap: 24px;

    width: 100%;
    margin: 0;
}

.workflow-card {
    width: 90%;
    margin: 0;
    padding: 18px 40px;

    border: 1px solid var(--color-border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.015);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.workflow-card:hover {
    transform: translateY(-4px);

    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.025);
}

.workflow-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.workflow-number {
    flex-shrink: 0;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    margin-bottom: 5px;

    font-size: 11px;
    font-weight: 600;
}

.workflow-card:hover .workflow-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.workflow-card h3 {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.workflow-card p {
    margin: 0;

    font-size: 15px;
    line-height: 1.65;

    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .how-it-works .container {
        width: 90%;
    }

    .section-header h2 {
        white-space: normal;
        font-size: 30px;
    }

    .section-header p {
        max-width: 100%;
        font-size: 14px;
    }

    .workflow-card {
        width: 100%;
        padding: 20px 22px;
    }

    .workflow-heading {
        gap: 10px;
    }

    .workflow-card p {
        font-size: 14px;
    }
}


/* ================================
   Product Brief Preview
================================ */

.product-preview-section {
    width: 100%;
    margin: 0;
    padding: 80px 0;

    border-top: 1px solid var(--color-border);
}

.product-brief-preview {
    width: 78%;
    max-width: 820px;

    margin: 0 auto 0 180px;

    border: 1px solid var(--color-border);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.015);

    overflow: hidden;
}

.product-brief-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 24px;

    border-bottom: 1px solid var(--color-border);
}

.product-brief-title {
    min-width: 0;
}

.product-brief-label {
    display: block;
    margin-bottom: 6px;

    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;

    color: var(--color-primary);
}

.product-brief-title h3 {
    margin: 0;

    font-size: 15px;
    line-height: 1.3;
}

.product-brief-title p {
    margin: 4px 0 0;

    font-size: 13px;
    line-height: 1.5;

    color: var(--color-text-muted);
}

.product-brief-status {
    flex-shrink: 0;

    padding: 5px 9px;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    font-size: 9px;
    font-weight: 600;

    color: var(--color-primary);
}

.product-brief-content {
    padding: 22px 26px;
}

.product-brief-overview {
    margin-bottom: 20px;
}

.product-brief-overview > span,
.product-brief-detail > span,
.product-brief-question > span {
    display: block;
    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: var(--color-primary);
}

.product-brief-overview p {
    color: var(--color-text-primary);
    font-size: 13px;
}

.product-brief-detail p,
.product-brief-question p {
    margin: 0;

    font-size: 13px;
    line-height: 1.55;

    color: var(--color-text-secondary);
}

.product-brief-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid var(--color-border);
}

.product-brief-actions button {
    padding: 6px 10px;

    border: 1px solid var(--color-border);
    border-radius: 7px;

    background: transparent;

    font-family: inherit;
    font-size: 10px;
    color: var(--color-text-primary);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.product-brief-actions button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.025);
}

.product-brief-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;

    padding-top: 18px;

    border-top: 1px solid var(--color-border);
}

.product-brief-detail {
    min-width: 0;
}

.product-brief-question {
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid var(--color-border);
}

.product-brief-question p {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .product-brief-preview {
        width: 100%;
        margin-left: 0;
    }

    .product-brief-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-brief-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-preview-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-brief-preview {
        width: 100%;
    }
}


/* ================================
   Core Features
================================ */

.features-section {
    padding: 110px 0;
}

.features-section .section-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 48px;

    text-align: left;
}

.features-section .section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: var(--color-primary);
}

.features-section .section-header h2 {
    margin: 0;

    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.03em;

    text-align: left;
}

.features-section .section-header p {
    max-width: 620px;
    margin: 16px 0 0;

    font-size: 14px;
    line-height: 1.65;

    text-align: left;

    color: var(--color-text-secondary);
}

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

    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    min-height: 150px;
    padding: 18px;

    border: 1px solid var(--color-border);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.01);

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
}

.feature-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border: 1px solid var(--color-border);
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.025);

    color: var(--color-primary);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}

.feature-icon svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08);

    background: rgba(124, 92, 255, 0.12);

    box-shadow: 0 0 20px rgba(124, 92, 255, 0.12);

    color: var(--color-primary);
}

.feature-card h3 {
    margin: 0 0 8px;

    font-size: 15px;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;

    font-size: 14px;
    line-height: 1.55;

    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .features-section {
        padding: 80px 0;
    }

    .features-section .section-header h2 {
        font-size: 30px;
    }

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


/* ================================
   Developer Section
================================ */

.developer-section {
    position: relative;
    padding: 110px 0;

    border-top: 1px solid var(--color-border);
}

.developer-section::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 5%;
    right: 5%;

    height: 1px;
    background: var(--color-border);
}

.developer-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

.developer-header {
    max-width: 760px;
    margin: 0 0 56px;

    text-align: left;
}

.developer-header h2 {
    margin: 12px 0 10px;

    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.developer-header p {
    max-width: 680px;
    margin: 0;

    font-size: 15px;
    line-height: 1.6;

    color: var(--color-text-muted);
}


/* ================================
   Developer Flow
================================ */

.developer-output {
    width: 100%;
    min-width: 0;
}

.developer-output-header {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 48px;

    text-align: left;
}

.developer-output-header .section-eyebrow {
    display: block;
    margin-bottom: 12px;
}

.developer-output-header h2 {
    max-width: 650px;
    margin: 0 0 12px;

    font-size: 2rem;
    line-height: 1.1;
}

.developer-output-header p {
    max-width: 650px;
    margin: 0;

    line-height: 1.6;
}

.developer-flow {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr)
        80px
        minmax(0, 1.25fr);

    align-items: stretch;
    gap: 24px;

    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.developer-flow > * {
    min-width: 0;
}


/* ================================
   Client Messages
================================ */

.client-messages {
    min-height: 360px;
    padding: 24px;

    border: 1px solid rgba(220, 70, 70, 0.45);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.02);

    box-sizing: border-box;
}

.developer-box-label {
    margin-bottom: 20px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    color: #e06a6a;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.client-message {
    width: 90%;
    max-width: 90%;

    padding: 10px 14px;

    border: 1px solid rgba(220, 70, 70, 0.28);
    border-radius: 10px;

    background: rgba(220, 70, 70, 0.055);

    font-size: 13px;
    line-height: 1.4;

    color: var(--color-text-primary);

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.client-message:nth-child(even) {
    align-self: flex-end;
}

.client-message:hover {
    border-color: rgba(220, 70, 70, 0.55);
    background: rgba(220, 70, 70, 0.09);
}


/* ================================
   Developer Connector
================================ */

.developer-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.clientflow-logo {
    position: relative;

    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border: 1px solid var(--color-border);
    border-radius: 50%;

    background: var(--color-bg);
}

.clientflow-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.developer-arrow {
    font-size: 20px;
    color: var(--color-primary);
}

.developer-connector-label {
    max-width: 90px;

    font-size: 10px;
    line-height: 1.5;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: var(--color-text-muted);
}


/* ================================
   Developer Output
================================ */

.developer-output {
    height: 100%;
    min-width: 0;
}

.developer-output .product-brief-preview {
    width: 100%;
    max-width: none;
    height: 100%;

    margin: 0;
}


/* ================================
   Developer Mobile
================================ */

@media (max-width: 900px) {
    .developer-flow {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 24px;
        width: 100%;
        min-width: 0;
    }

    .client-messages,
    .developer-output {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        flex: none;
    }

    .developer-connector {
        width: 100%;
        flex: none;

        flex-direction: row;
        justify-content: center;
        align-items: center;

        gap: 12px;
    }

    .developer-arrow {
        transform: rotate(90deg);
        flex-shrink: 0;
    }

    .developer-connector-label {
        max-width: 120px;
        flex-shrink: 0;
    }
}


/* ================================
   Final CTA
================================ */

.final-cta {
    padding: 90px 0;
}

.final-cta-container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 70px 40px;

    box-sizing: border-box;

    text-align: center;

    border: 1px solid var(--color-border);
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.02);
}

.final-cta h2 {
    max-width: 700px;
    margin: 14px auto 12px;

    font-size: 38px;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.final-cta p {
    margin: 0 auto 28px;

    font-size: 15px;
    line-height: 1.6;

    color: var(--color-text-muted);
}

.final-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 22px;

    border: 1px solid var(--color-primary);
    border-radius: 8px;

    background: var(--color-primary);
    color: #fff;

    font-size: 14px;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.final-cta-button:hover {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);

    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .final-cta {
        padding: 70px 0;
    }

    .final-cta-container {
        width: 90%;
        padding: 55px 22px;
    }

    .final-cta h2 {
        font-size: 30px;
    }
}


/* ================================
   Footer
================================ */

.site-footer {
    padding: 60px 0 24px;

    border-top: 1px solid var(--color-border);
}

.footer-container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--color-text-primary);
    text-decoration: none;

    font-size: 17px;
    font-weight: 600;
}

.footer-logo img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.footer-brand p {
    margin: 12px 0 0;

    font-size: 13px;
    line-height: 1.5;

    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;

    margin-top: 30px;
}

.footer-links a {
    font-size: 13px;

    color: var(--color-text-muted);
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

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

    margin-top: 40px;
    padding-top: 20px;

    border-top: 1px solid var(--color-border);

    font-size: 11px;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .site-footer {
        padding: 50px 0 22px;
    }

    .footer-container {
        width: 90%;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* ================================
   Global Mobile Stability
================================ */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 80%;
    max-width: 1100px;

    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 32px);
        max-width: none;

        margin-left: auto;
        margin-right: auto;
    }

    section {
        width: 100%;
        max-width: 100%;
    }
}