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

html {
    background: transparent;
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: #1a1a1a;
    line-height: 1.4;
    position: relative;
    min-height: 100vh;
}

/* Mondrian Grid Navigation */
.mondrian-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: transparent;
    z-index: 1000;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.grid-container {
    height: auto;
    display: flex;
    align-items: center;
    background: transparent;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.grid-cell {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* Logo cell - squared */
.grid-cell.logo {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 72px;
    background: #fff;
    border: 3px solid #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 12px;
    z-index: 10;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Navigation items */
.grid-cell.nav-item {
    padding: 12px 24px;
    color: #1a1a1a;
    margin-left: 0;
    background: transparent;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.grid-cell.nav-item:first-of-type {
    margin-left: 80px; /* Space for squared logo */
}

.grid-cell.nav-item:hover {
    color: #DC0018;
    background: rgba(255, 255, 255, 0.6);
}

.grid-cell.nav-item.cta {
    background: #DC0018;
    color: #fff;
    margin-left: auto;
    padding: 12px 24px;
}

.grid-cell.nav-item.cta:hover {
    background: #b30014;
    color: #fff;
}

/* Primary color cells (legacy support) */
.grid-cell.red {
    background: #DC0018;
    color: #fff;
}

.grid-cell.blue {
    background: #2d2d2d;
    color: #fff;
}

.grid-cell.yellow {
    background: #E8E8E8;
    color: #1a1a1a;
}

.grid-cell.black {
    background: #1a1a1a;
    color: #fff;
}

.grid-cell.gray {
    background: #CCCCCC;
    color: #1a1a1a;
}

/* Dropdown panels */
.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.grid-cell:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: normal;
    transition: all 0.15s ease;
    color: #333;
}

.dropdown-item:hover {
    background: #fafafa;
    color: #DC0018;
    padding-left: 24px;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Main content */
.main-content {
    margin-top: 110px;
    padding: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    background: transparent;
    pointer-events: auto;
}

/* Component wrapper divs */
.main-content > div {
    position: relative;
    background: transparent;
}

/* Title section */
.title-section {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: transparent;
    padding: 30px;
}

.title-bar {
    background: #DC0018;
}

.title-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-content .subtitle {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}

/* Hero Video Character Renderer */
.hero-video-renderer {
    width: 100%;
    margin: 40px 0;
    position: relative;
    display: none; /* Hidden until video content is ready */
}

.renderer-window {
    position: relative;
    width: 100%;
    background: #000;
    border: 3px solid #DC0018;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-source {
    display: none;
}

.video-canvas {
    display: none;
}

.character-display {
    display: grid;
    width: 100%;
    height: 100%;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1;
    color: #fff;
    background: #000;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

.char-cell {
    display: inline-block;
    text-align: center;
    user-select: none;
    transition: color 0.1s ease;
}

.renderer-controls {
    display: none; /* Hidden - not needed for current implementation */
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.control-btn {
    background: #DC0018;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.control-btn:hover {
    background: #b30014;
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn .pause-icon {
    display: none;
}

.control-btn.playing .play-icon {
    display: none;
}

.control-btn.playing .pause-icon {
    display: block;
}

/* Responsive adjustments for hero renderer */
@media (max-width: 768px) {
    .renderer-window {
        min-height: 300px;
    }
    
    .character-display {
        font-size: 10px;
        padding: 15px;
    }
    
    .control-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Map container with Mondrian border */
.map-wrapper {
    background: #000;
    padding: 3px;
    margin: 40px 0;
}

.map-container {
    position: relative;
    width: 100%;
    height: 700px;
    background: #fff;
    overflow: hidden;
}

/* Placeholder logo container */
.placeholder-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.placeholder-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

svg {
    width: 100%;
    height: 100%;
}

/* Canton styling */
.canton {
    cursor: pointer;
    transition: all 0.3s;
}

.canton path {
    stroke: #000;
    stroke-width: 1;
    fill: #f0f0f0;
    transition: all 0.3s;
}

.canton:hover path {
    fill: #E8E8E8;
}

.canton.active path {
    fill: #DC0018;
    stroke-width: 2;
}

.canton-label {
    pointer-events: none;
    font-size: 11px;
    font-weight: 600;
    fill: #000;
}

/* iOS Autocomplete (minimal) */
.autocomplete-container {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 90vw);
    pointer-events: none;
    z-index: 100;
}

.autocomplete-bar {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 8px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.autocomplete-bar.show {
    opacity: 1;
    transform: translateY(0);
}

.suggestion-pill {
    background: #fff;
    border: 2px solid #000;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: pillSlide 0.3s ease;
}

.suggestion-pill.center {
    background: #DC0018;
    color: #fff;
    border-color: #DC0018;
}

.message-input {
    background: #fff;
    border: 2px solid #000;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.typing-text {
    font-size: 16px;
    font-weight: 500;
    min-height: 24px;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 20px;
    background: #DC0018;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes pillSlide {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(5px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Info panel with Mondrian style */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    background: #000;
    padding: 3px;
    margin: 40px 0;
    max-width: 100%;
}

.info-cell {
    min-width: 0;
}

.info-cell {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.info-cell.highlight {
    background: #DC0018;
    color: #fff;
}

.info-cell h3 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.info-cell p {
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* App Store Badges Section */
.app-badges-section {
    margin: 60px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
}

.badges-helper-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.badges-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-badge {
    display: block;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    border: 3px solid #1a1a1a;
}

.app-badge:hover {
    transform: translateY(-2px);
    background: #DC0018;
    border-color: #DC0018;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon svg {
    width: 32px;
    height: 32px;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-large {
    font-size: 18px;
    font-weight: 600;
}

/* Beta Join (replaces store badges) */
.beta-join-section {
    text-align: left;
}

.beta-join-section .badges-helper-text {
    text-align: left;
}

.beta-join-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.beta-join-text {
    max-width: 560px;
}

.beta-join-text h3 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.beta-join-text p {
    font-size: 16px;
    line-height: 1.5;
    color: #444;
}

.beta-join-form {
    flex: 1;
    max-width: 520px;
}

.beta-join-section .email-input {
    border-color: #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.beta-join-section .email-input::placeholder {
    color: #666;
}

.beta-join-section .email-input:focus {
    border-color: #DC0018;
    box-shadow: 0 0 0 3px rgba(220, 0, 24, 0.15);
}

/* Section Headers */
.section-header {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.header-bar {
    background: #1a1a1a;
}

.header-bar.yellow {
    background: #CCCCCC;
}

.header-bar.red {
    background: #DC0018;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Features Section */
.features-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: transparent;
    padding: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    color: #DC0018;
}

.feature-card p {
    font-size: 15px;
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    padding: 0;
}

.step-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.step-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.step-number {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    color: #DC0018;
    opacity: 1;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.step-card p {
    font-size: 15px;
    line-height: 1.5;
}

/* Use Cases Section */
.use-cases-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.use-case-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border: none;
    border-radius: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.use-case-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.use-case-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.use-case-item p {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
}

/* Social Proof Section */
.social-proof-section {
    margin: 80px 0;
    background: rgba(255, 255, 255, 0.3);
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item.highlight {
    background: #DC0018;
    color: #fff;
}

.stat-item.highlight .stat-label {
    color: #fff;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    font-weight: 600;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background: transparent;
    padding: 0;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.quote-mark {
    font-size: 48px;
    line-height: 1;
    color: #DC0018;
    margin-bottom: 20px;
    font-weight: 700;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 3px solid #000;
}

.testimonial-author strong {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-author span {
    font-size: 14px;
    color: #666;
}

/* CTA Section */
.cta-section {
    margin: 80px 0;
    background: #000;
    padding: 3px;
}

.cta-container {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 60px 40px;
    text-align: left;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 800px;
}

.cta-form-wrapper {
    max-width: 600px;
}

.newsletter-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: 10px;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    border: 3px solid #fff;
    background: #fff;
    font-size: 16px;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: #DC0018;
}

.submit-button {
    padding: 14px 30px;
    background: #DC0018;
    border: 3px solid #DC0018;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.submit-button:hover {
    background: #fff;
    color: #DC0018;
    border-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3px;
    background: #000;
    padding: 3px;
}

.contact-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-item p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact-link {
    color: #DC0018;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #DC0018;
    transition: color 0.2s, border-color 0.2s;
}

.contact-link:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .grid-cell.nav-item {
        padding: 0 18px;
    }

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

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

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

@media (max-width: 768px) {
    .mondrian-nav {
        height: 64px;
    }

    .grid-container {
        padding: 0 16px;
    }

    .main-content {
        margin-top: 84px;
        padding: 24px;
    }

    .grid-cell.logo {
        width: 48px;
        height: 48px;
        left: 16px;
        padding: 8px;
        border-width: 2px;
    }

    .grid-cell.nav-item:first-of-type {
        margin-left: 56px;
    }

    .grid-cell.nav-item {
        padding: 10px 14px;
        font-size: 11px;
    }

    .grid-cell.nav-item.cta {
        padding: 10px 14px;
    }

    .dropdown-panel {
        min-width: 160px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(-8px);
    }

    .grid-cell:hover .dropdown-panel {
        transform: translateX(0) translateY(0);
    }

    .title-content h1 {
        font-size: 32px;
    }

    .title-content .subtitle {
        font-size: 16px;
    }

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

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .form-group {
        flex-direction: column;
    }

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

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

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

    .feature-card,
    .step-card,
    .use-case-item,
    .info-cell,
    .stat-item,
    .testimonial-card,
    .contact-item {
        padding: 30px;
    }

    .map-container {
        height: 420px;
    }

    .beta-join-content {
        flex-direction: column;
        align-items: stretch;
    }

    .beta-join-text h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .mondrian-nav {
        height: 56px;
    }

    .grid-container {
        padding: 0 12px;
    }

    .main-content {
        margin-top: 72px;
        padding: 16px;
    }

    .grid-cell.logo {
        width: 40px;
        height: 40px;
        left: 12px;
        padding: 6px;
    }

    .grid-cell.nav-item:first-of-type {
        margin-left: 44px;
    }

    .grid-cell.nav-item {
        padding: 8px 10px;
        font-size: 10px;
        letter-spacing: 0;
    }

    .grid-cell.nav-item.cta {
        padding: 8px 12px;
    }

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

    .map-container {
        height: 320px;
    }
}
