/* ==========================================================================
   Branduals Marketing Site - Design System
   Ultra-professional, ultra-sleek aesthetic matching BrandServer.Auth
   ========================================================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --branduals-orange: #FF6100;
    --branduals-orange-light: #ff7a2f;
    --branduals-orange-dark: #e65800;

    /* Backgrounds - Matching Auth Server */
    --bg-primary: #1A1D23;
    --bg-card: #16191F;
    --bg-card-alt: #0F1116;

    /* Borders */
    --border-primary: #2E323A;
    --border-secondary: #1E2229;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-tertiary: #64748B;
    --text-muted: #475569;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-family-brand: 'Ladislav', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    /* Spacing */
    --container-max-width: 1280px;

    /* Animation */
    --transition-speed: 200ms;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
    scrollbar-gutter: stable;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family-base);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    outline: none !important;
}

h1 {
    font-size: 80px;
    letter-spacing: normal;
}

h2 {
    font-size: 56px;
    letter-spacing: normal;
}

h3 {
    font-size: 32px;
}

p {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Utility Classes */
.text-muted {
    color: var(--text-tertiary);
}

.section-title-contrast {
    line-height: 1.3;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 80px;
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    position: relative;
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.brand-logo {
    font-family: var(--font-family-brand);
    font-size: 26px;
    font-weight: 700;
    color: var(--branduals-orange);
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.brand-logo:hover {
    color: var(--branduals-orange);
    opacity: 0.9;
}

.branduals-inline {
    font-family: var(--font-family-brand);
    color: var(--branduals-orange);
    font-weight: 600;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 6px;
    transition: color var(--transition-speed), background-color var(--transition-speed);
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.04);
}

.nav-item.active {
    color: var(--branduals-orange);
    background-color: rgba(255, 97, 0, 0.1);
}

.nav-signin {
    margin-left: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    transition: color var(--transition-speed), border-color var(--transition-speed), background-color var(--transition-speed);
}

.nav-signin:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
    background-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding: 60px 0 0;
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 97, 0, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Soft gradient blobs - ambient background */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-1 {
    width: 500px;
    height: 400px;
    top: -150px;
    right: -100px;
    background: radial-gradient(ellipse, rgba(255, 97, 0, 0.08) 0%, transparent 70%);
}

.hero-glow-2 {
    width: 400px;
    height: 350px;
    top: 50px;
    left: -150px;
    background: radial-gradient(ellipse, rgba(255, 97, 0, 0.05) 0%, transparent 70%);
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: 20%;
    background: radial-gradient(ellipse, rgba(255, 97, 0, 0.04) 0%, transparent 70%);
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--branduals-orange);
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-title {
    max-width: 1100px;
    margin: 0 auto 32px;
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: normal;
    color: var(--text-primary);
}

.hero-subtitle {
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ==========================================================================
   Email Signup Form
   ========================================================================== */

.email-signup {
    max-width: 480px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 6px;
    height: 60px;
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 18px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: var(--font-family-base);
}

.email-input::placeholder {
    color: var(--text-tertiary);
}

/* Autofill styling - prevent ugly white background */
.email-input:-webkit-autofill,
.email-input:-webkit-autofill:hover,
.email-input:-webkit-autofill:focus,
.email-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    caret-color: var(--text-primary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--branduals-orange);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 0 32px;
    height: 48px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: background var(--transition-speed);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--branduals-orange-light);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.email-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.success-message {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
}

.success-message h3 {
    font-size: 24px;
    color: var(--branduals-orange);
    margin-bottom: 12px;
}

.success-message p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.success-message p strong {
    color: var(--text-primary);
}

.success-message .note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.error-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #FCA5A5;
    font-size: 14px;
    text-align: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--border-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer-location {
    color: var(--text-muted);
}

.footer a {
    color: var(--text-tertiary);
}

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

/* ==========================================================================
   Philosophy Page - Flow Diagram
   ========================================================================== */

.flow-diagram {
    max-width: 800px;
    margin: 0 auto 80px;
    padding: 0;
}

.flow-stage {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 28px 40px;
    text-align: center;
    margin-bottom: 0;
}

.flow-stage-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.flow-stage-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.flow-connector {
    width: 2px;
    height: 40px;
    background: var(--text-muted);
    margin: 0 auto;
}

.flow-stage-main {
    background: var(--bg-primary);
    border: 3px solid var(--branduals-orange);
    border-radius: 16px;
    padding: 44px 40px;
    margin: 0;
}

.flow-stage-main .brand-name {
    font-family: var(--font-family-brand);
    font-size: 52px;
    font-weight: 700;
    color: var(--branduals-orange);
    margin-bottom: 12px;
}

.flow-stage-main .flow-stage-title {
    font-size: 18px;
    margin-bottom: 6px;
}

.flow-stage-main .flow-stage-subtitle {
    font-size: 13px;
    color: #CBD5E1;
}

/* ==========================================================================
   Product Page - Browser Windows
   ========================================================================== */

.product-showcase {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 80px;
    height: 500px;
}

.browser-window {
    position: absolute;
    background: var(--bg-card-alt);
    border: 2px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.browser-chrome {
    height: 40px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
}

.browser-dot.red {
    background: #EF4444;
}

.browser-dot.yellow {
    background: #EAB308;
}

.browser-dot.green {
    background: #22C55E;
}

.browser-content {
    height: calc(100% - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-primary);
    font-size: 22px;
    font-weight: 700;
}

.browser-window:nth-child(1) {
    width: 800px;
    height: 500px;
    left: 0;
    top: 80px;
    z-index: 1;
}

.browser-window:nth-child(2) {
    width: 800px;
    height: 500px;
    left: 400px;
    top: 0;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.browser-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 97, 0, 0.1);
    color: var(--branduals-orange);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

/* Hide mobile menu button by default (desktop) */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-primary);
    padding: 80px 0 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    display: block;
    padding: 20px 32px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-secondary);
    transition: all var(--transition-speed);
}

.mobile-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 97, 0, 0.05);
}

.mobile-nav-item.active {
    color: var(--branduals-orange);
    font-weight: 600;
    border-left: 3px solid var(--branduals-orange);
}

.mobile-nav-signin {
    margin-top: 20px;
    background: rgba(255, 97, 0, 0.1);
    color: var(--branduals-orange);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 64px;
    }

    h1 {
        font-size: 64px;
    }

    h2 {
        font-size: 48px;
    }

    .product-showcase {
        height: 400px;
    }

    .browser-window:nth-child(1) {
        width: 600px;
        height: 400px;
        left: 0;
        top: 60px;
    }

    .browser-window:nth-child(2) {
        width: 600px;
        height: 400px;
        left: 300px;
        top: 0;
    }

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

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

@media (max-width: 768px) {
    /* Container and Spacing */
    .container {
        padding: 0 20px;
    }

    /* Header - Mobile Menu */
    .header {
        padding: 16px 0;
    }

    .nav-desktop {
        display: none;
    }

    .mobile-menu-button {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Typography - Mobile Optimized */
    .hero {
        padding: 40px 0 0;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
        line-height: 1.15;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-size: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .eyebrow {
        font-size: 11px;
        margin-bottom: 20px;
    }

    /* Email Form - Stacked Layout */
    .email-signup {
        max-width: 100%;
    }

    .email-form {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 12px;
    }

    .email-input {
        width: 100%;
        padding: 16px;
    }

    .btn-primary {
        width: 100%;
        height: 52px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Philosophy Page - Flow Diagram */
    .flow-stage {
        padding: 20px 24px;
    }

    .flow-stage-title {
        font-size: 20px;
    }

    .flow-stage-main {
        padding: 32px 24px;
    }

    .flow-stage-main .brand-name {
        font-size: 36px;
    }

    .flow-stage-main .flow-stage-title {
        font-size: 16px;
    }

    /* Product Page - Browser Windows */
    .product-showcase {
        height: 300px;
        margin-bottom: 40px;
    }

    .browser-window:nth-child(1) {
        width: 90%;
        height: 250px;
        left: 0;
        top: 50px;
    }

    .browser-window:nth-child(2) {
        width: 90%;
        height: 250px;
        left: 10%;
        top: 0;
    }

    .browser-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - Even more compact */
    .container {
        padding: 0 16px;
    }

    .brand-logo {
        font-size: 24px;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .flow-stage-main .brand-name {
        font-size: 28px;
    }

    .product-showcase {
        height: 250px;
    }

    .browser-window:nth-child(1),
    .browser-window:nth-child(2) {
        width: 95%;
        height: 200px;
    }

    .browser-window:nth-child(2) {
        left: 5%;
    }
}

/* ==========================================================================
   Home Page - Section Styles
   ========================================================================== */

.section-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

/* Problems Section */
.section-problems {
    padding: 80px 0;
    border-top: 1px solid var(--border-primary);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-style: italic;
}

.problem-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.problem-solution {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Modules Section */
.section-modules {
    padding: 80px 0;
    border-top: 1px solid var(--border-primary);
}

.modules-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.module-grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
}

.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 28px;
}

.module-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    color: var(--branduals-orange);
    opacity: 0.8;
    transition: opacity var(--transition-speed) ease;
}

.module-icon svg {
    width: 100%;
    height: 100%;
}

.module-card:hover .module-icon {
    opacity: 1;
}

.module-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--branduals-orange);
    margin-bottom: 12px;
}

.module-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* AI Analysis Section */
.ai-analysis {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.ai-analysis::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -40px;
    right: -40px;
    bottom: -20px;
    background-image:
        radial-gradient(circle at center, var(--text-tertiary) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
}

.ai-analysis-intro {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.ai-analysis-quote {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-left: 3px solid var(--branduals-orange);
    border-radius: 8px;
    padding: 28px 32px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
}

.ai-analysis-quote strong {
    color: var(--text-primary);
    font-style: normal;
}

.ai-analysis-conclusion {
    text-align: center;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Differentiator Section */
.section-differentiator {
    padding: 60px 0;
    border-top: 1px solid var(--border-primary);
}

.differentiator-lead {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.temporal-example {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
    text-align: left;
}

.temporal-example > p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.temporal-example blockquote {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid var(--branduals-orange);
    font-style: italic;
}

.differentiator-closing {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.no-more-final {
    font-size: 15px;
    color: var(--branduals-orange);
    font-family: monospace;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

/* Integrations Section */
.section-integrations {
    padding: 80px 0;
    border-top: 1px solid var(--border-primary);
}

.integration-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.integration-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.integration-description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Roadmap Section */
.section-roadmap {
    padding: 80px 0;
    border-top: 1px solid var(--border-primary);
}

.roadmap-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.roadmap-item {
    font-size: 20px;
    font-weight: 500;
    color: var(--branduals-orange);
}

.roadmap-separator {
    color: var(--text-tertiary);
    font-size: 20px;
}

.roadmap-description {
    max-width: 600px;
    margin: 0 auto 48px;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
}

.email-signup-bottom {
    max-width: 480px;
    margin: 0 auto;
}

/* ==========================================================================
   Product Page Styles
   ========================================================================== */

.product-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-primary);
}

.product-module {
    max-width: 800px;
    margin: 0 auto 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 40px;
}

.product-module h3 {
    font-size: 28px;
    font-weight: 600;
    color: var(--branduals-orange);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--branduals-orange);
    padding-bottom: 12px;
    display: inline-block;
}

.product-module h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.product-module p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.product-module ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-module li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.product-module li::before {
    content: "•";
    color: var(--branduals-orange);
    position: absolute;
    left: 8px;
}

.product-flow {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 40px;
}

.product-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.product-flow-stage {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.product-flow-stage-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-flow-stage-content {
    font-size: 15px;
    color: var(--text-primary);
}

.product-flow-arrow {
    font-size: 24px;
    color: var(--text-tertiary);
}

.product-flow-center {
    background: var(--bg-primary);
    border: 2px solid var(--branduals-orange);
    border-radius: 12px;
    padding: 24px 32px;
}

.product-flow-center .product-flow-stage-label {
    color: var(--text-primary);
}

/* Access Section */
.access-list {
    max-width: 700px;
    margin: 0 auto;
}

.access-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.access-list li {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 12px 16px;
    padding-left: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    position: relative;
}

.access-list li::before {
    content: "•";
    color: var(--branduals-orange);
    position: absolute;
    left: 16px;
}

.access-conclusion {
    max-width: 600px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
}

/* Roadmap List */
.roadmap-list {
    max-width: 700px;
    margin: 0 auto;
}

.roadmap-list-item {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-secondary);
}

.roadmap-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.roadmap-list-item dt {
    font-size: 18px;
    font-weight: 600;
    color: var(--branduals-orange);
    min-width: 120px;
}

.roadmap-list-item dd {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================================================
   Product Page Content Styles
   ========================================================================== */

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

.product-lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-lead-large {
    font-size: 28px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 24px;
}

.product-lead-contrast {
    line-height: 1.5;
}

.product-lead-contrast .text-muted {
    font-weight: 400;
}

.product-detail {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-closing {
    font-size: 16px;
    color: var(--text-tertiary);
    font-style: italic;
}

.product-closing-highlight {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.feature-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
}

.feature-item span {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Capability Grid
   ========================================================================== */

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.capability-item {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 28px;
    text-align: left;
}

.capability-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--branduals-orange);
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.capability-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
}

.contact-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-card a.contact-email {
    font-size: 16px;
    color: var(--branduals-orange);
    font-weight: 500;
}

.contact-card a.contact-email:hover {
    color: var(--branduals-orange-light);
}

.contact-social {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-primary);
}

.contact-social h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

.social-links a {
    font-size: 16px;
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    color: var(--branduals-orange);
    border-color: var(--branduals-orange);
}

.contact-social p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Start Page (Brand Creation) Styles
   ========================================================================== */

.start-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 0;
}

.start-form {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 40px;
}

.domain-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    transition: border-color var(--transition-speed);
}

.domain-input-group:focus-within {
    border-color: var(--branduals-orange);
}

.domain-input {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 16px 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-family: var(--font-family-base);
    outline: none;
    box-sizing: border-box;
}

.domain-input::placeholder {
    color: var(--text-tertiary);
}

.domain-suffix {
    display: flex;
    align-items: center;
    background: transparent;
    border-left: 1px solid var(--border-secondary);
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-tertiary);
    box-sizing: border-box;
    white-space: nowrap;
}

.domain-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    min-height: 24px;
}

.domain-status.available {
    color: #22C55E;
}

.domain-status.unavailable {
    color: #EF4444;
}

.domain-status.checking {
    color: var(--text-tertiary);
}

.domain-status.hint {
    color: var(--text-tertiary);
    font-size: 14px;
}

.start-form-actions {
    display: flex;
    justify-content: flex-end;
}

.domain-rules {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.start-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
    text-align: center;
}

.start-footer p {
    font-size: 15px;
    color: var(--text-secondary);
}

.start-footer a {
    color: var(--branduals-orange);
}

/* Setup Page */
.setup-reserved {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #22C55E;
}

.setup-form-group {
    margin-bottom: 24px;
}

.setup-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.setup-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 16px;
    color: var(--text-primary);
    font-family: var(--font-family-base);
    outline: none;
    transition: border-color var(--transition-speed);
}

.setup-input:focus {
    border-color: var(--branduals-orange);
}

.setup-form-group .hint {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

.setup-expiry {
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 24px;
}

/* Welcome Page */
.welcome-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 0;
    text-align: center;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid #22C55E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: #22C55E;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.welcome-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.welcome-domain {
    font-size: 20px;
    color: var(--branduals-orange);
    font-weight: 500;
    margin-bottom: 40px;
}

.welcome-tips {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 32px;
    text-align: left;
    margin-bottom: 32px;
}

.welcome-tips h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.welcome-tips ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: tips;
}

.welcome-tips li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    counter-increment: tips;
}

.welcome-tips li::before {
    content: counter(tips) ".";
    position: absolute;
    left: 0;
    color: var(--branduals-orange);
    font-weight: 600;
}

.welcome-cta {
    margin-bottom: 32px;
}

.welcome-help {
    font-size: 14px;
    color: var(--text-tertiary);
}

.welcome-help a {
    color: var(--branduals-orange);
}

/* ==========================================================================
   Responsive - Home Page Sections
   ========================================================================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .section-problems,
    .section-modules,
    .section-differentiator,
    .section-integrations,
    .section-roadmap {
        padding: 60px 0;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-card {
        padding: 24px;
    }

    .module-grid,
    .module-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .module-card {
        padding: 24px;
    }

    .ai-analysis-quote {
        padding: 20px 24px;
        font-size: 14px;
    }

    .product-lead-large {
        font-size: 22px;
    }

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

    .capability-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .differentiator-lead {
        font-size: 20px;
    }

    .temporal-example {
        padding: 24px;
    }

    .integration-grid {
        gap: 12px;
    }

    .integration-item {
        padding: 12px 20px;
        font-size: 16px;
    }

    .roadmap-items {
        gap: 8px;
    }

    .roadmap-item {
        font-size: 16px;
    }

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

    .access-list ul {
        grid-template-columns: 1fr;
    }

    .product-flow-diagram {
        flex-direction: column;
    }

    .product-flow-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================================================
   Error UI
   ========================================================================== */

#blazor-error-ui {
    background: #b32121;
    color: white;
    padding: 1rem 1.5rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 0.75rem;
}

/* ==========================================================================
   Micro-Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 97, 0, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 97, 0, 0.15);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-subtle-glow {
    animation: subtleGlow 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ==========================================================================
   Applied Micro-Interactions
   ========================================================================== */

/* Fade-in animations for page sections */
.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Card hover effects */
.problem-card,
.module-card,
.capability-item,
.feature-item {
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease,
                border-color var(--transition-speed) ease;
}

.problem-card:hover,
.module-card:hover,
.capability-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--border-primary);
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 97, 0, 0.3);
}

/* Capability icon hover glow */
.capability-item:hover .capability-icon {
    animation: subtleGlow 1.5s ease-in-out infinite;
}

/* Branduals inline subtle effect */
.branduals-inline {
    transition: color var(--transition-speed) ease;
}

.branduals-inline:hover {
    color: var(--branduals-orange-light);
}

/* Flow diagram center glow */
.flow-stage-main {
    transition: box-shadow var(--transition-speed) ease;
}

.flow-stage-main:hover {
    box-shadow: 0 0 30px rgba(255, 97, 0, 0.2);
}

/* Button hover enhancement */
.btn-primary {
    transition: background-color var(--transition-speed) ease,
                transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 97, 0, 0.3);
}

/* Email input focus glow */
.email-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 97, 0, 0.1);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
