/* assets74/css/app_styles.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--window-bg, #ffffff);
    color: var(--text-primary, #000000);
    margin: 0;
    padding: 0; /* Padding is now handled by the wrapper */
    box-sizing: border-box;
}

/* New wrapper to center content and prevent stretching */
.app-content-wrapper {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 20px;
    text-align: center; /* Center align content globally */
}


h2, h3, h4 {
    color: var(--text-primary, #000000);
}

p {
    line-height: 1.6;
    color: var(--text-secondary, #666666);
}

a {
    color: var(--accent, #000000);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border-color, #e0e0e0);
    margin: 30px 0;
}

/* Re-usable components from theme1.css */
.settings-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-secondary, #f5f5f5);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left; /* Reset text alignment for item content */
    border: 1px solid transparent;
}

.settings-item:hover {
    transform: translateX(5px);
    border-color: color-mix(in srgb, var(--accent), transparent);
    box-shadow: 0 10px 20px var(--shadow);
}

.settings-item > i {
    color: var(--accent, #000000);
    width: 30px;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 8px;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary, #000000);
    font-size: 14px;
    max-width: 500px; /* Prevent stretching */
    display: block; /* Ensure it takes its own line */
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    border-color: color-mix(in srgb, var(--accent), transparent);
    outline: none;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background: var(--accent, #000000);
    color: var(--bg-primary, #ffffff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 500px; /* Prevent stretching */
    display: block; /* Ensure it takes its own line */
    margin-left: auto;
    margin-right: auto;
}

.auth-button:hover {
    opacity: 0.9;
}

.google-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    max-width: 500px; /* Prevent stretching */
    margin-left: auto;
    margin-right: auto;
}

.google-signin > i {
     font-size: 18px;
}

.google-signin:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

/* Tabs */
.tabs-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* For Firefox */
    justify-content: center; /* Center the tabs */
}
.tabs::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, Opera */
}

.tab-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 30px;
    height: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.tab-scroll-arrow.visible {
    opacity: 1;
    visibility: visible;
}
.tab-scroll-arrow.left {
    left: -15px;
}
.tab-scroll-arrow.right {
    right: -15px;
}
.tab-scroll-arrow > i {
    width: 16px;
    height: 16px;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary, #666666);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab.active {
    color: var(--accent, #000000);
    border-bottom-color: var(--accent, #000000);
}

.tab-content {
    display: none;
    padding-top: 20px;
}

.tab-content.active {
    display: block;
}

.app-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.store-app-card {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.store-app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: color-mix(in srgb, var(--accent), transparent);
}

.store-app-card i {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--accent);
    height: 40px;
    display: inline-block;
}

.store-app-card h4 {
    margin-bottom: 8px;
}

.store-app-card p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* App Store Prominent Button */
.store-btn-prominent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.store-btn-prominent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

/* =========================================================
   PUBLIC LANDING PAGE ADDITIONS (HOMESCREEN SECTIONS)
   ========================================================= */

/* How it Works / Core Concept */
.concept-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px auto;
    max-width: 800px;
}
.concept-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
}
.concept-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.concept-box h4 {
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.concept-app-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.concept-app-tag {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}
.concept-core {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    animation: pulse-glow 2s infinite ease-in-out;
}
.concept-connector {
    width: 2px;
    height: 40px;
    background: var(--border-color);
    margin: 0 auto;
}

/* 5 Steps Cards */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
    border-color: color-mix(in srgb, var(--accent), transparent);
}
.step-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--border-color);
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.5;
    transition: color 0.3s;
}
.step-card:hover .step-number {
    color: var(--accent);
    opacity: 0.1;
}
.step-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}
.step-card p {
    font-size: 14px;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* Vertical Workflow Timeline */
.workflow-timeline {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.workflow-node {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.workflow-node h4 {
    margin-bottom: 5px;
    font-size: 16px;
}
.workflow-node p {
    margin: 0;
    font-size: 14px;
}
.workflow-arrow {
    height: 50px;
    width: 2px;
    background-color: var(--border-color);
    position: relative;
    margin: 10px 0;
}
.workflow-arrow::after {
    content: '▼';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 20px;
    animation: bounceDown 2s infinite;
}
@keyframes bounceDown {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 5px); }
}

/* Circuit Board Style Connections */
.circuit-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    /* Center layout */
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-center {
    width: 120px;
    height: 120px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circuit-center i {
    font-size: 30px;
    margin-bottom: 5px;
}

.circuit-node {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    width: 160px;
    text-align: center;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.circuit-node:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}
.circuit-node i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.circuit-node h5 {
    font-size: 13px;
    margin: 0;
}

/* Positions for nodes around the center */
.pos-tl { top: 5%; left: 5%; }
.pos-tc { top: 0%; left: 50%; transform: translateX(-50%); }
.pos-tr { top: 5%; right: 5%; }
.pos-l { top: 50%; left: 0%; transform: translateY(-50%); }
.pos-r { top: 50%; right: 0%; transform: translateY(-50%); }
.pos-bl { bottom: 5%; left: 5%; }
.pos-bc { bottom: 0%; left: 50%; transform: translateX(-50%); }
.pos-br { bottom: 5%; right: 5%; }

.circuit-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.circuit-line {
    stroke: var(--border-color);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
}

.pulse-dot {
    fill: var(--accent);
    /* Animation handled in JS/SVG logic dynamically */
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.industry-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    text-align: left;
}
.industry-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--accent);
}
.industry-card p {
    font-size: 13px;
    margin-bottom: 20px;
}
.industry-app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.industry-app-tag {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.industry-app-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Alternatives Table */
.alt-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--window-bg);
    margin-bottom: 30px;
}
.alt-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.alt-table th, .alt-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}
.alt-table th {
    background: var(--bg-secondary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--text-secondary);
}
.alt-table tr:last-child td {
    border-bottom: none;
}
.alt-table tr:hover td {
    background: rgba(0,0,0,0.02);
}
.dark .alt-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Ask AI Chat Bubbles */
.chat-demo-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.chat-demo-bubble {
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
}
.chat-demo-user {
    background: var(--accent);
    color: var(--bg-primary);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-demo-ai {
    background: var(--window-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Data Ownership Grid */
.ownership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.ownership-card {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    transition: all 0.3s ease;
}
.ownership-card:hover {
    background: var(--bg-secondary);
}
.ownership-card i {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.ownership-card h5 {
    font-size: 15px;
    margin-bottom: 5px;
}
.ownership-card p {
    font-size: 12px;
    margin: 0;
}

/* Client Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0;
    /* Fading edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
    display: inline-flex;
    align-items: center;
    animation: marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Shift by half since content is duplicated */
}
.marquee-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    height: 40px;
    margin: 0 40px;
    transition: all 0.3s ease;
    object-fit: contain;
}
.marquee-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Final CTA */
.final-cta-card {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.final-cta-card h2 {
    color: var(--bg-primary);
    font-size: 36px;
    margin-bottom: 15px;
}
.final-cta-card p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
[data-theme="dark"] .final-cta-card p {
    color: rgba(0,0,0,0.8);
}
.final-cta-btn {
    background: var(--bg-primary);
    color: var(--accent);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.final-cta-btn:hover {
    transform: scale(1.05);
}

/* Responsive fixes for new sections */
@media (max-width: 768px) {
    .circuit-container {
        height: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 20px;
    }
    .circuit-center, .circuit-svg {
        display: none; /* Hide complex circuit on mobile */
    }
    .circuit-node {
        position: static;
        width: 100%;
        transform: none !important;
    }
    .final-cta-card {
        padding: 40px 20px;
    }
    .final-cta-card h2 {
        font-size: 28px;
    }
}