:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --accent: #0052FF;
    /* Trust Blue */
    --accent-glow: rgba(0, 82, 255, 0.2);
    --secondary: #F8F9FA;
    /* Soft Silver-Grey */
    --muted: #666666;
    --border: #eeeeee;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.8;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

/* Animations - "Expensive" transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Navigation */
.nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px;
    /* Subtle but clear */
    width: auto;
    display: block;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 3rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Hero Section - Airy & Expansive */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    /* Hero Background Setup */
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

[data-theme="crochet"] .hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
}

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

h1 {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
}

.highlight {
    color: var(--accent);
}

.subtitle {
    font-size: 1.4rem;
    color: var(--muted);
    max-width: 550px;
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Common Section Spacing */
section {
    min-height: 100vh;
    /* Consistent full-screen height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
    /* Base padding so content doesn't hit screen edges on small devices */
}

/* Manifesto Section */
.manifesto-section {
    background: var(--secondary);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 6rem;
    text-align: center;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.value-card {
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.value-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.value-card p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.card-number {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700;
    letter-spacing: 2px;
}



.audience-switcher {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.switcher-btn {
    background: none;
    border: none;
    color: var(--muted);
    padding: 0.5rem 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.switcher-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.audience-content-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: center;
}

.audience-text h3 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.audience-text p {
    font-size: 1.25rem;
    color: var(--muted);
}

.audience-visual {
    width: 100%;
    aspect-ratio: 16/9;
    background: #f8f9fa;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.glowing-orb {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: #FF6B6B;
    filter: blur(60px);
    opacity: 0.8;
    animation: floatOrb 8s ease-in-out infinite;
    transition: background 0.8s ease;
    z-index: 0;
}

.visual-glass {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 100%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    z-index: 1;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.1); }
    66% { transform: translate(-40px, 30px) scale(0.9); }
}

/* Abstract App Mockup CSS */
.mockup-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.mockup-phone {
    width: 260px;
    height: 520px;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s;
    border: 1px solid rgba(0,0,0,0.03);
}

.mockup-phone:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Status Bar */
.mockup-status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}
.mockup-time {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
}
.mockup-icons {
    display: flex;
    gap: 4px;
}
.mockup-battery {
    width: 18px;
    height: 8px;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    position: relative;
}
.mockup-battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 2px;
    bottom: 2px;
    width: 2px;
    background: #1a1a1a;
    border-radius: 0 1px 1px 0;
}
.mockup-battery::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 12px;
    background: #1a1a1a;
    border-radius: 1px;
}

/* Persona Pill */
.mockup-persona-pill {
    margin: 10px auto 20px;
    height: 32px;
    background: #f1f3f5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 8px;
    transition: all 0.4s ease;
}
.pill-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #a9b3bc;
}
.pill-text {
    height: 6px;
    width: 60px;
    background: #dee2e6;
    border-radius: 3px;
}
.pill-chevron {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #a9b3bc;
}

/* Dynamic Content Areas */
.mockup-content {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.3s;
}

/* Common Layout Elements */
.abstract-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #f1f3f5;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.abstract-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.abstract-line {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}
.abstract-line.title { width: 40%; height: 12px; margin-bottom: 16px; background: #ced4da; }
.abstract-line.subtitle { width: 60%; margin-bottom: 8px; }
.abstract-line.short { width: 30%; }

.abstract-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e9ecef;
}

.abstract-graph {
    height: 60px;
    background: linear-gradient(180deg, rgba(233,236,239,0.5) 0%, rgba(233,236,239,0) 100%);
    border-radius: 8px;
    margin-top: 16px;
    position: relative;
    border-bottom: 2px solid #e9ecef;
}

/* Bottom Tab Bar */
.mockup-tab-bar {
    height: 60px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px; /* Home indicator space */
}

.tab-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #dee2e6;
}
.tab-item.active {
    background: #1a1a1a;
}

/* Tech Section */
.tech-section {
    /* Option A: Plain background (matches Manifesto section) */
    background: var(--secondary);

    /* Option B: Image background (original) — uncomment to switch back
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.1) 100%),
        url('assets/crochet/tech_bg.png') no-repeat center right;
    background-size: cover;
    */
}

/*
[data-theme="crochet"] .tech-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0.1) 100%),
        url('assets/crochet/tech_bg.png') no-repeat center right;
    background-size: cover;
}
*/

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.tech-text h2 {
    font-size: 3rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    text-align: center;
}

.tech-text p {
    font-size: 1.2rem;
    color: var(--muted);
    text-align: center;
}

.hexagon-grid {
    width: 100%;
    height: 300px;
    background-image:
        radial-gradient(circle at 50% 50%, #ddd 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle, black, transparent 80%);
}

/* Signup Section */
.signup-section {
    /* Height and padding managed globally */
    text-align: center;
    background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

[data-theme="crochet"] .signup-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

.signup-container {
    max-width: 800px;
    margin: 0 auto;
}

.micro-form {
    margin-top: 5rem;
}

.persona-select {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--text-light);
    flex-wrap: wrap;
    /* Ensure they snap down nicely on smaller screens */
}

/* Hide the actual radio buttons */
.persona-select input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.persona-select label {
    cursor: pointer;
    font-weight: 500;
}

/* Style the text as a discrete box */
.persona-chip {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    /* Slightly rounded corners for a modern look */
    background: transparent;
    color: #1a1a1a;
    transition: all 0.3s ease;
    user-select: none;
}

/* Hover state for discoverability */
.persona-select label:hover .persona-chip {
    border-color: #f9c7a8;
    /* Match light orange */
    color: #1a1a1a !important;
    /* Keep original text color */
    background: rgba(228, 126, 61, 0.05);
    /* very subtle warm tint on hover */
}

/* Selected State */
.persona-select input[type="radio"]:checked+.persona-chip {
    background: #f9c7a8;
    /* Warm orange fill */
    color: #1a1a1a !important;
    /* Keep original text color */
    border-color: #f9c7a8;
    box-shadow: 0 4px 12px rgba(228, 126, 61, 0.3);
}

.micro-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 2rem;
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text);
    padding: 1rem 0;
    resize: none;
    outline: none;
    transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-textarea::placeholder {
    color: #ccc;
    font-weight: 400;
}

.form-textarea:focus {
    border-color: var(--accent);
}

.input-row {
    display: flex;
    justify-content: center;
    gap: 0;
    border-bottom: 2px solid var(--border);
    transition: border-color 0.4s;
}

.input-row:focus-within {
    border-color: var(--accent);
}

.input-row input {
    flex: 1;
    border: none;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-family: var(--font-sans);
    outline: none;
}

.btn {
    padding: 1rem 3rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.btn-secondary {
    background: none;
    color: var(--accent);
    padding: 1.5rem 0 1.5rem 2rem;
}

/* Footer */
.main-footer {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.footer-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.footer-bottom {
    margin-top: 4rem;
    color: #aaa;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Responsive Design Breakpoints */

@media (max-width: 900px) {
    .nav-bar {
        padding: 1.5rem 2rem;
    }

    section {
        padding: 10rem 0;
    }

    .audience-content-box,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-bar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .subtitle {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3.5rem;
    }

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

    .audience-switcher {
        flex-wrap: wrap;
        margin-bottom: 3rem;
    }

    .persona-select {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .persona-select label {
        width: 100%;
        /* Make them full width on very small screens, or adjust to fit content */
    }

    .persona-chip {
        display: block;
        text-align: center;
        width: 100%;
    }

    .input-row {
        flex-direction: column;
        border-bottom: none;
        gap: 1rem;
    }

    .input-row input {
        border-bottom: 2px solid var(--border);
        padding: 1rem 0;
        width: 100%;
    }

    .btn-secondary {
        width: 100%;
        padding: 1rem;
        background: var(--accent);
        color: white;
        border-radius: 4px;
        text-align: center;
    }

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

    .footer-logo {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    section {
        padding: 6rem 0;
    }

    .hero-section {
        padding-top: 140px;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
    }
}