/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    --bg-color: #F7F7F7;
    --text-primary: #111111;
    --text-secondary: #666;
    --border-color: #111111;
    --hover-scale: 1.02;
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    margin: 0 80px;
    padding: 0 40px;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding: 30px 120px;
    margin: 0 -120px;
}

header .container {
    max-width: 1200px;
}

header.scrolled {
    border-bottom-color: #e0e0e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

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

.nav-link {
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
}

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

.nav-link.active {
    color: var(--text-primary);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.contact-btn {
    padding: 10px 24px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* ============================================
   HOMEPAGE - HERO SECTION
   ============================================ */

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

.hero h1 {
    font-size: clamp(56px, 8vw, 88px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.ampersand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    font-size: 24px;
    margin: 0 8px;
    vertical-align: middle;
}

/* Paragraph - Main body text */
.hero-text {
    font-size: 20px;
    font-weight: 350;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

/* ============================================
   HOMEPAGE - PROJECTS SECTION
   ============================================ */

/* Section Titles */
/* H3 - Section titles in home, project/article titles */
.section-title {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 40px;
}

/* Projects Section */
.projects {
    margin: 60px 0;
    padding: 20px 0;
}

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

.project-card {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    transition: var(--transition);
}

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

.project-card-disabled {
    cursor: default;
    pointer-events: none;
}

.project-card-disabled:hover {
    transform: none;
}

.soon-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.project-card.full-width {
    grid-column: 1 / -1;
}

.project-image {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.project-card.full-width .project-image {
    aspect-ratio: 32 / 10;
}

.project-card:hover .project-image {
    transform: scale(0.98);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border-radius: 12px;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.project-type {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ============================================
   HOMEPAGE - ARTICLES SECTION
   ============================================ */

.articles {
    margin: 60px 0 80px;
    padding: 20px 0 40px;
}

.articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.articles-header .section-title {
    margin-bottom: 0;
}

.articles-controls {
    display: flex;
    gap: 24px;
    align-items: center;
}

.topic-filter {
    position: relative;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-toggle-btn:hover {
    color: var(--text-primary);
}

.filter-toggle-btn svg {
    width: 14px;
    height: 14px;
}

.filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.filter-dropdown.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-option {
    padding: 8px 12px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    border-radius: 4px;
}

.filter-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.filter-option.active {
    color: var(--text-primary);
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.08);
}

.view-all-btn {
    padding: 0;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: underline;
}

.view-all-btn:hover {
    color: var(--text-primary);
}

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

.article-card {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateX(8px);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-card-disabled:hover {
    transform: none;
}

.article-card-disabled:hover .article-image {
    transform: none;
}

.article-image {
    transition: transform 0.3s ease;
}

.article-image {
    width: 144px;
    height: 144px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 6px;
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ============================================
   FOOTER / CTA SECTION
   ============================================ */

.footer {
    padding: 120px 0 80px;
    margin: 0 auto;
    text-align: center;
    max-width: 1200px;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

.footer-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.contact-btn-large {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.contact-btn-large:hover {
    background-color: var(--text-primary);
    color: var(--bg-color);
}

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */

.project-detail {
    padding: 60px 0 120px;
}

.project-header {
    display: grid;
    grid-template-columns: 25% 65%;
    gap: 80px;
    margin: 0 auto 120px;
    align-items: start;
    padding-top: 60px;
    max-width: 1000px;
}

.project-title {
    font-size: 43px;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: right;
    line-height: 1.2;
}

.project-description {
    font-size: 18px;
    font-weight: 350;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 100%;
    word-wrap: break-word;
    margin-bottom: 32px;
}

/* Full Width Hero Media */
.project-hero-media {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 100px;
}

.hero-media-bg {
    width: 100%;
    min-height: 525px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-media-bg img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-content {
    max-width: 700px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 100px;
}

/* H2 - Main section titles in project/blog pages */
.content-section h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* H3 - Subsection titles in project pages */
.content-section h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Dynamic Interface Section with White Background */
.dynamic-interface-section {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 100px;
}

.full-width-white-bg {
    background-color: #FFFFFF;
    width: 100%;
    padding: 80px 0;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* Two Column Subsections */
.subsection-two-columns {
    display: grid;
    grid-template-columns: 35% 60%;
    gap: 5%;
    align-items: start;
    margin-bottom: 80px;
}

.text-column {
    padding-right: 20px;
}

.image-column img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Design Section */
.product-design-section {
    margin-bottom: 100px;
}

.wireframes-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.wireframes-grid img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CLOUS GO-TO-MARKET PAGE STYLES
   ============================================ */

/* Talking to Users Section */
.talking-to-users-section {
    max-width: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 100px;
}

.subsection-talking {
    margin-top: 40px;
    margin-bottom: 40px;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: center;
    margin-top: 60px;
    opacity: 0.6;
}

.logos-grid img {
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
}

/* Organic Section */
.organic-section {
    max-width: 700px;
    margin-bottom: 100px;
}

.organic-layout {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.organic-text {
    display: flex;
    flex-direction: column;
}

.organic-image {
    margin-top: 40px;
}

.popular-posts h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 24px;
}

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

.post-embed {
    width: 100%;
    height: auto;
    min-height: 668px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.post-embed iframe {
    border: none;
}

.post-embed img {
    width: 100%;
    height: auto;
    display: block;
}

.content-image {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 32px;
    overflow: hidden;
}

.content-image.bg-yellow {
    background-color: #F5D89E;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content-image.bg-gray {
    background-color: #F5F5F5;
    padding: 60px;
}

.content-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mobile-screens {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
}

.mobile-screens img {
    width: calc(33.333% - 16px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sketch-image {
    text-align: center;
}

.sketch-image img {
    max-width: 600px;
    width: 100%;
}

.side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.side-by-side .text-content {
    padding-top: 40px;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Reduce margin and padding for mobile screens */
    body {
        margin: 0 20px;
        padding: 0 20px;
    }

    .container {
        padding: 0;
    }

    /* Header full width on mobile */
    header {
        padding: 30px 40px;
        margin: 0 -40px;
    }

    /* Typography adjustments for mobile */
    .hero h1 {
        font-size: 48px;
    }

    .ampersand {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .footer-title {
        font-size: 36px;
    }

    /* Grid adjustments for mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.full-width {
        grid-column: 1;
    }

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

    /* Project detail pages */
    .project-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-title {
        text-align: left;
        font-size: 36px;
    }

    /* Article pages */
    .article-title {
        font-size: 36px;
    }

    /* Manifest page */
    .manifest-hero h1 {
        font-size: 36px;
    }

    /* Two-column layouts to single column */
    .side-by-side,
    .subsection-two-columns {
        grid-template-columns: 1fr;
    }

    /* Mobile screens */
    .mobile-screens {
        flex-direction: column;
    }

    .mobile-screens img {
        width: 100%;
    }

    /* Logos grid */
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    /* Posts grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Content wrapper needs padding for full-width sections */
    .content-wrapper {
        padding: 0 24px;
    }
}

/* ============================================
   MANIFEST PAGE
   ============================================ */

.manifest-page {
    padding: 100px 0 120px;
    max-width: 1200px;
}

.manifest-hero {
    margin-bottom: 80px;
}

.manifest-hero h1 {
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 60px;
}

.manifest-diagram {
    width: 100%;
    max-width: 500px;
    margin: 40px 0 60px 0;
}

.manifest-diagram img {
    width: 100%;
    height: auto;
    display: block;
}

.manifest-content {
    max-width: 600px;
    margin-left: 0;
}

.manifest-content p {
    font-size: 18px;
    font-weight: 350;
    line-height: 1.8;
    color: #666;
    margin-bottom: 24px;
}

.manifest-content a {
    color: var(--text-primary);
    text-decoration: underline;
    transition: var(--transition);
}

.manifest-content a:hover {
    opacity: 0.7;
}

/* ============================================
   ARTICLE DETAIL PAGES
   ============================================ */

.article-detail {
    padding: 60px 0 120px;
}

.article-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.article-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.article-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
}

.article-date {
    font-size: 16px;
    color: var(--text-secondary);
}

.article-content {
    max-width: 700px;
    margin: 0 auto;
}

.article-content p {
    font-size: 18px;
    font-weight: 350;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #666;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 500;
    margin: 60px 0 24px;
    color: var(--text-primary);
}

.article-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-content ul {
    margin: 24px 0;
    padding-left: 24px;
}

.article-content li {
    font-size: 18px;
    font-weight: 350;
    line-height: 1.8;
    margin-bottom: 12px;
    color: #666;
}

.article-content strong {
    font-weight: 600;
    color: #666;
}

.article-content u {
    text-decoration: underline;
    color: var(--text-primary);
}

.article-content em {
    font-style: italic;
    color: var(--text-primary);
}

.article-content a {
    color: #666;
    text-decoration: underline;
}

.article-content .article-image {
    width: 100%;
    margin: 40px 0;
}

.article-content .article-image img {
    width: 100%;
    border-radius: 12px;
    margin: 0;
}

.article-content p img {
    display: block;
    max-width: 700px;
    width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 12px;
}

.article-content pre {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 24px;
    overflow-x: auto;
    margin: 0;
}

.article-content code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #f8f8f2;
}
