/* Totem Design System - YC/Linear Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Palette */
    --bg-body: #050505;
    --bg-card: #0A0A0A;
    --bg-card-hover: #111111;

    --text-primary: #EDEDED;
    --text-secondary: #A1A1A1;
    --text-tertiary: #525252;

    --accent-copper: #D4AF37;
    /* More metallic gold/copper */
    --accent-glow: rgba(212, 175, 55, 0.15);

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, blinkmacsystemfont, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, blinkmacsystemfont, sans-serif;

    /* Spacing & Layout */
    --u-container: 1200px;
    /* Wider container for modern look */
    --u-nav-height: 80px;

    /* Animation */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Utilities */
.container {
    max-width: var(--u-container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1A1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-accent-gradient {
    background: linear-gradient(135deg, #FFF8E7 0%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--u-nav-height);
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(5, 5, 5, 0.6);
}

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

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

.nav-link {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--text-primary);
    color: var(--bg-body);
    font-weight: 600;
    border-radius: 99px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-glass {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-highlight);
    border-radius: 99px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 24px;
    font-weight: 600;
}

.hero .subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 400;
}

/* Device Visualization (Placeholder for now) */
.device-stage {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    /* background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%); */
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid var(--border-highlight);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: block;
}

.device-label {
    margin-top: 32px;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--accent-copper);
    text-transform: uppercase;
    font-weight: 600;
}

/* .device-mockup {
    width: 300px;
    height: 200px;
    background: #0F0F0F;
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
} */

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
    margin: 80px 0;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.bento-card:hover {
    border-color: var(--border-highlight);
}

.bento-card h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

.col-span-12 {
    grid-column: span 12;
}

.col-span-8 {
    grid-column: span 8;
}

.col-span-6 {
    grid-column: span 6;
}

.col-span-4 {
    grid-column: span 4;
}

@media (max-width: 900px) {

    .col-span-8,
    .col-span-6,
    .col-span-4 {
        grid-column: span 12;
    }
}

/* Gap Section - Styled as a "Quote" or Insight */
/* Gap Section Split: Quote and Barriers */
.quote-section {
    padding: 100px 0 60px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom, var(--bg-body), #080808);
}

.barriers-section {
    padding: 0 0 100px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(to bottom, #080808, var(--bg-card));
}

.gap-quote {
    font-size: 28px;
    font-family: var(--font-display);
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.4;
}

.barriers-scroll {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.barrier-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    max-width: 300px;
    text-align: left;
}

.barrier-item h4 {
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.barrier-item p {
    color: var(--text-secondary);
}

/* Comparison Table - Clean Line Style */
.comparison-section {
    padding: 120px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 60px;
}

.comparison-table th,
.comparison-table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
    width: 40%;
}

.comparison-table td.status-quo {
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.comparison-table td.totem {
    color: var(--accent-copper);
    font-weight: 600;
}

/* Foundry/CTA */
.foundry-cta {
    padding: 140px 0;
    text-align: center;
    background: radial-gradient(circle at center, #1a1500 0%, var(--bg-body) 70%);
}

.foundry-cta h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.founding-badge {
    display: inline-block;
    margin-top: 32px;
    padding: 8px 16px;
    border: 1px solid var(--accent-copper);
    color: var(--accent-copper);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Footer */
footer {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h5 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

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

/* Refactored Section Styles */

/* Ritual Section */
.ritual-section {
    margin: 100px auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.ritual-content {
    flex: 1.3;
}

.ritual-title {
    font-size: 48px;
    margin-bottom: 24px;
}

.ritual-steps {
    border-left: 2px solid var(--accent-copper);
    padding-left: 32px;
}

.ritual-step {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.ritual-step-title {
    color: var(--text-primary);
}

.ritual-image {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Comparison Section */
.comparison-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Founder Section */
.founder-section {
    margin: 120px auto;
}

.founder-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.founder-title {
    font-size: 32px;
    margin-bottom: 40px;
}

.founder-card {
    text-align: left;
    background: var(--bg-card);
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.founder-quote {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.6;
}

.founder-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 16px;
}

.founder-text-last {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.founder-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.founder-name {
    color: var(--text-primary);
    font-weight: 600;
}

/* CTA / Foundry */
.cta-form {
    margin-top: 40px;
}

.cta-form-group {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
}

.cta-input {
    flex: 1;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 99px;
    color: var(--text-primary);
}

.cta-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

.core-insight-section {
    margin: 60px auto 100px;
    text-align: center;
    max-width: 800px;
}

.core-insight-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--accent-copper);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.core-insight-text {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer Copyright */
.footer-copyright {
    text-align: center;
    opacity: 0.4;
    font-size: 12px;
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 900px) {

    /* Ritual Section Reordering */
    .ritual-section {
        flex-direction: column;
        /* Stack them */
        text-align: center;
        margin: 60px auto;
        gap: 40px;
    }

    .ritual-steps {
        text-align: left;
        /* Keep steps readable */
        margin: 0 auto;
        max-width: 600px;
    }

    .ritual-image {
        height: auto;
        max-height: 400px;
        /* Constrain height */
        order: -1;
        /* Image first on mobile */
    }

    .cta-form-group {
        flex-direction: column;
        max-width: 100%;
        margin: 0 20px;
        /* Add side margins */
    }

    .cta-input {
        width: 100%;
        /* Full width */
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 600px) {

    /* Navigation */
    .nav-links {
        display: none;
        /* Hide nav links on mobile */
    }

    .nav-content {
        padding: 0 16px;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 3rem;
        /* Fallback/Adjustment */
        line-height: 1.1;
    }

    /* Device Image */
    .device-stage {
        padding: 0 16px;
    }

    /* Bento Grid */
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 40px 0;
    }

    .bento-card {
        padding: 24px;
        min-height: auto;
    }

    .bento-card h3 {
        font-size: 24px;
    }

    /* Sections Padding */
    .gap-section,
    .comparison-section,
    .foundry-cta,
    .founder-section {
        padding: 60px 0;
    }

    /* Gap Quote */
    .gap-quote {
        font-size: 20px;
    }

    .barriers-scroll {
        flex-direction: column;
        align-items: center;
    }

    .barrier-item {
        width: 100%;
        max-width: 100%;
    }

    /* Founder Card */
    .founder-card {
        padding: 24px;
    }

    .founder-title {
        font-size: 28px;
    }

    /* Comparison Table */
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    /* Adjust table styles for scroll context */
    .comparison-table th,
    .comparison-table td {
        padding: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }
}