/* ===== Neo-Brutalism WrenDB Design ===== */

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

/* Color Palette - Neo-Brutalism */
:root {
    --white: #ffffff;
    --black: #000000;
    --yellow: #FFD93D;
    --cyan: #6BCF7F;
    --pink: #FF6B9D;
    --purple: #B185FF;
    --gray: #F5F5F5;
    --light-gray: #E0E0E0;

    --border-width: 3px;
    --shadow-sm: 4px 4px 0 var(--black);
    --shadow-md: 6px 6px 0 var(--black);
    --shadow-lg: 8px 8px 0 var(--black);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Mono', 'Courier New', monospace;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Space Mono', monospace;
    line-height: 1.2;
    font-weight: 700;
}

code, pre, .wren-bird, .terminal-window {
    font-family: 'Space Mono', 'Courier New', monospace;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: var(--border-width) solid var(--black);
    transition: transform 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wren-bird {
    font-size: 1.5rem;
    color: var(--black);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.wren-bird:hover {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
}

.tagline {
    font-size: 0.8rem;
    color: var(--black);
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a:hover:not(.btn-twig) {
    transform: translateY(-2px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-toggle {
    color: var(--black);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.nav-dropdown-toggle:hover {
    transform: translateY(-2px);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    z-index: 1000;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    right: -1rem;
    height: 1.5rem;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s ease;
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: var(--yellow);
    transform: none;
}

/* Buttons */
.btn-twig, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: var(--border-width) solid var(--black);
    cursor: pointer;
}

.btn-twig {
    background: var(--yellow);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

.btn-twig:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.btn-primary {
    background: var(--cyan);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--gray);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

.btn-primary-large, .btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: var(--border-width) solid var(--black);
}

.btn-primary-large {
    background: var(--pink);
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-primary-large:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--black);
}

.btn-secondary-large {
    background: var(--white);
    color: var(--black);
    box-shadow: var(--shadow-md);
}

.btn-secondary-large:hover {
    background: var(--gray);
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--black);
}

/* Hero Section */
.hero {
    padding: 10rem 0 6rem;
    background: var(--white);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.bird-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: var(--yellow);
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-sm);
    color: var(--black);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--black);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--black);
    letter-spacing: -0.02em;
}

.accent-text {
    color: var(--black);
    background: var(--cyan);
    padding: 0 0.5rem;
    display: inline-block;
    border: var(--border-width) solid var(--black);
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--black);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Terminal Window */
.hero-demo {
    margin: 3rem 0;
}

.terminal-window {
    max-width: 750px;
    margin: 0 auto;
    background: var(--black);
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-lg);
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--yellow);
    border-bottom: var(--border-width) solid var(--black);
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--black);
    background: var(--white);
}

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--black);
    font-weight: 700;
}

.terminal-body {
    padding: 1.5rem 1.25rem;
}

.terminal-body pre {
    margin: 0;
    overflow-x: auto;
}

.terminal-body code {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--white);
}

.terminal-body .comment {
    color: var(--cyan);
}

.terminal-body .response {
    color: var(--yellow);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 3rem;
}

/* Sections */
.features, .use-cases, .philosophy, .cta, .how-it-works, .presigned-urls, .comparison {
    padding: 3rem 0;
}

/* How It Works Steps */
.how-it-works {
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--gray);
    border: var(--border-width) solid var(--black);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-card:nth-child(1) { border-top: 6px solid var(--yellow); }
.step-card:nth-child(2) { border-top: 6px solid var(--cyan); }
.step-card:nth-child(3) { border-top: 6px solid var(--pink); }
.step-card:nth-child(4) { border-top: 6px solid var(--purple); }

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.step-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.5;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--black);
    opacity: 0.8;
}

/* Features Grid */
.features {
    background: var(--gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 850px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.feature-card:nth-child(1) { border-top: 6px solid var(--yellow); }
.feature-card:nth-child(2) { border-top: 6px solid var(--cyan); }
.feature-card:nth-child(3) { border-top: 6px solid var(--pink); }
.feature-card:nth-child(4) { border-top: 6px solid var(--purple); }

.feature-icon {
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--black);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
    color: var(--black);
    font-weight: 700;
}

.feature-card p {
    color: var(--black);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Presigned URLs Section */
.presigned-urls {
    background: var(--pink);
    padding: 4rem 0;
}

.presigned-urls .section-header {
    margin-bottom: 2rem;
}

.presigned-demo {
    margin: 2rem 0;
}

.why-presigned {
    margin-top: 3rem;
}

.why-presigned h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.presigned-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.presigned-point {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.presigned-icon {
    margin: 0 auto 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--black);
}

.presigned-point h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.presigned-point p {
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
}

.presigned-explanation {
    max-width: 750px;
    margin: 0 auto;
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.presigned-explanation p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.presigned-explanation p:last-child {
    margin-bottom: 0;
}

/* Comparison Section */
.comparison {
    background: var(--white);
    padding: 4rem 0;
}

.comparison .section-header {
    margin-bottom: 2rem;
}

.comparison-table-wrapper {
    max-width: 900px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: var(--border-width) solid var(--black);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.comparison-table thead {
    background: var(--yellow);
}

.comparison-table th {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: var(--border-width) solid var(--black);
    border-right: 2px solid var(--black);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 2px solid var(--light-gray);
    border-right: 2px solid var(--light-gray);
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--gray);
}

.comparison-table .check {
    color: var(--black);
}

.comparison-table .cross {
    opacity: 0.5;
}

.comparison-note {
    max-width: 750px;
    margin: 2rem auto 0;
    background: var(--cyan);
    border: var(--border-width) solid var(--black);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.comparison-note p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Limits Section */
.limits {
    padding: 3rem 0;
    background: var(--white);
}

.limits-list {
    display: inline-block;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    text-align: left;
}

.limits {
    text-align: center;
}

.limits-list li {
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--black);
}

.limits-list li::before {
    content: "• ";
    font-weight: bold;
}

.api-paths {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.api-paths h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.paths-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.paths-list code {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--black);
    color: var(--cyan);
    border: var(--border-width) solid var(--black);
    font-size: 0.9rem;
    text-align: left;
}

/* Use Cases */
.use-case-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-card {
    background: var(--white);
    border: var(--border-width) solid var(--black);
    padding: 1.75rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.use-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--black);
}

.row-label {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--black);
    opacity: 0.6;
    margin-top: 1.5rem;
    margin-bottom: -0.5rem;
}

.row-label:first-child {
    margin-top: 0;
}

/* 3x3 grid colors - diagonal pattern (nth-of-type to skip row-labels) */
.use-case-cards .use-card:nth-of-type(1) { background: var(--yellow); }
.use-case-cards .use-card:nth-of-type(2) { background: var(--cyan); }
.use-case-cards .use-card:nth-of-type(3) { background: var(--pink); }
.use-case-cards .use-card:nth-of-type(4) { background: var(--cyan); }
.use-case-cards .use-card:nth-of-type(5) { background: var(--pink); }
.use-case-cards .use-card:nth-of-type(6) { background: var(--purple); }
.use-case-cards .use-card:nth-of-type(7) { background: var(--pink); }
.use-case-cards .use-card:nth-of-type(8) { background: var(--purple); }
.use-case-cards .use-card:nth-of-type(9) { background: var(--yellow); }

.card-icon {
    margin-bottom: 1rem;
    display: inline-block;
    color: var(--black);
}

.use-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--black);
    font-weight: 700;
}

.use-card p {
    color: var(--black);
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Philosophy Section */
.philosophy {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.philosophy-text p {
    font-size: 1.125rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.9;
}

.signature {
    color: var(--yellow);
    font-weight: 700;
    margin-top: 2rem;
}

/* Nest Illustration - Neo Version */
.nest-illustration {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background: var(--yellow);
    border: var(--border-width) solid var(--white);
    box-shadow: 8px 8px 0 var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-layer {
    display: none; /* Remove organic layers */
}

.nest-center {
    position: relative;
    background: var(--white);
    width: 140px;
    height: 140px;
    border: var(--border-width) solid var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nest-egg {
    font-size: 2rem;
    color: var(--black);
}

.mission-bird {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background: var(--yellow);
    border: var(--border-width) solid var(--white);
    box-shadow: 8px 8px 0 var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-mission-wren {
    font-size: 6rem;
    font-weight: 700;
    color: var(--black);
    display: inline-block;
    line-height: 1;
}

/* CTA Section */
.cta {
    text-align: center;
    background: var(--cyan);
}

.cta-bird {
    margin-bottom: 1.5rem;
}

.big-wren {
    font-size: 4rem;
    font-weight: 700;
    color: var(--black);
    display: inline-block;
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--black);
}

.cta-subtitle {
    font-size: 1.125rem;
    color: var(--black);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: var(--border-width) solid var(--black);
    background: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-note {
    color: var(--black);
    margin-top: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--black);
}

.footer-col a {
    display: block;
    color: var(--black);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col a:hover {
    opacity: 1;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--border-width) solid var(--black);
    text-align: center;
    color: var(--black);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Code Box Styling - Paper Card Style */
.code-box {
    background: var(--gray);
    border: var(--border-width) solid var(--black);
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
    padding: 2rem;
}

.code-box-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--black);
}

.code-box-header .dot {
    display: none;
}

.code-box-title {
    padding: 0.25rem 0.75rem;
    background: var(--yellow);
    border: 2px solid var(--black);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0;
}

.code-box pre {
    margin: 0;
    overflow-x: auto;
}

.code-box code {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--black);
}

.code-box .comment {
    color: #666;
    font-style: italic;
}

.code-box .string {
    color: #d63384;
}

.code-box .keyword {
    color: #0066cc;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nest-illustration {
        width: 200px;
        height: 200px;
    }

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

    .presigned-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a:not(.btn-twig) {
        display: none;
    }

    .tagline {
        display: none;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

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

    .cta-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .presigned-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .presigned-urls .section-title,
    .comparison .section-title {
        font-size: 1.75rem;
    }

    .why-presigned h3 {
        font-size: 1.5rem;
    }

    .presigned-explanation {
        padding: 1.5rem;
    }

    .presigned-explanation p {
        font-size: 0.95rem;
    }

    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .comparison-note {
        padding: 1.25rem;
    }

    .comparison-note p {
        font-size: 0.95rem;
    }
}
