/* ==========================================================================
   aida Marketing Web Site — Master Stylesheet
   Base URL: https://aida.hoye.ca
   ========================================================================== */

:root {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #38bdf8;
    --accent-hover: #0284c7;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --nav-bg: rgba(9, 13, 22, 0.8);
    --nav-border: rgba(255, 255, 255, 0.08);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #f8fafc;
        --bg-secondary: #f1f5f9;
        --bg-card: rgba(255, 255, 255, 0.85);
        --bg-card-border: rgba(0, 0, 0, 0.08);
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #94a3b8;
        --accent: #0284c7;
        --accent-hover: #0369a1;
        --accent-glow: rgba(2, 132, 199, 0.15);
        --nav-bg: rgba(248, 250, 252, 0.85);
        --nav-border: rgba(0, 0, 0, 0.06);
    }
}

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

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

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header, header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nav-border);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-select {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--bg-card-border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font-main);
    cursor: pointer;
    outline: none;
}

.lang-select:focus {
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-card-border);
}

.btn-secondary:hover {
    background: var(--bg-card-border);
    color: var(--text-primary);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.price-tag {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* App Window Preview */
.hero-preview {
    margin-top: 3rem;
    perspective: 1000px;
}

.mock-window {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-align: left;
}

.window-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--bg-card-border);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.window-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-body {
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-primary);
    min-height: 380px;
}

@media (max-width: 768px) {
    .window-body {
        grid-template-columns: 1fr;
    }
}

.wysiwyg-pane h1 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.wysiwyg-pane p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.wysiwyg-pane ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.source-pane {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    line-height: 1.7;
    border: 1px solid var(--bg-card-border);
}

.source-syntax-heading { color: #f43f5e; font-weight: bold; }
.source-syntax-bold { color: #eab308; }
.source-syntax-link { color: #a855f7; }

/* Features Grid */
.features {
    padding: 90px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Privacy Section */
.privacy-banner {
    padding: 90px 0;
    text-align: center;
}

.privacy-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2rem;
    max-width: 840px;
    margin: 0 auto;
}

.privacy-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--nav-border);
    padding: 3rem 0;
    background: var(--bg-primary);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

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

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

/* Privacy Page Specifics */
.legal-content {
    padding: 150px 0 90px;
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.legal-content p.meta {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.legal-content p, .legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}


/* Dedicated App Store Section */
.download-section {
    padding: 100px 0;
    background: var(--bg-primary);
    text-align: center;
}

.download-box {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-icon-large {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px var(--accent-glow);
}

.download-pricing {
    margin: 2rem 0;
}

.download-pricing .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.download-pricing .price-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.btn-large {
    padding: 0.9rem 2.2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.system-reqs {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}


.app-icon-img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.brand-icon-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
}


/* Screenshot Gallery Component */
.gallery-section {
    padding: 90px 0;
    background: var(--bg-primary);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--bg-card-border);
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.gallery-display {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--bg-card-border);
    background: var(--bg-secondary);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-slide {
    display: none;
}

.gallery-slide.active {
    display: block;
}


/* Animated Interactive Table Creation Demo */
.table-demo-container {
    background: #0f172a;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-card-border);
}

.table-sheet-popup {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    animation: popupPulse 6s infinite ease-in-out;
}

.grid-picker {
    display: grid;
    grid-template-columns: repeat(5, 24px);
    gap: 6px;
    margin: 10px 0;
}

.grid-cell {
    width: 24px;
    height: 24px;
    background: #334155;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.grid-cell.active {
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.table-render-box {
    width: 100%;
    max-width: 720px;
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: tableFadeIn 6s infinite ease-in-out;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.demo-table th {
    background: #334155;
    color: #f8fafc;
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #475569;
}

.demo-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.demo-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.cell-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
}

.cursor-pointer {
    width: 18px;
    height: 18px;
    position: absolute;
    animation: cursorMove 6s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
}

@keyframes cursorMove {
    0% { transform: translate(-120px, -80px); opacity: 0; }
    15% { transform: translate(-40px, -40px); opacity: 1; }
    30% { transform: translate(10px, -20px); }
    45% { transform: translate(60px, 40px); }
    80% { transform: translate(120px, 100px); opacity: 1; }
    100% { transform: translate(140px, 120px); opacity: 0; }
}

@keyframes popupPulse {
    0% { opacity: 0; transform: scale(0.9) translateY(-10px); }
    15% { opacity: 1; transform: scale(1) translateY(0); }
    45% { opacity: 1; transform: scale(1) translateY(0); }
    55% { opacity: 0; transform: scale(0.95) translateY(10px); }
    100% { opacity: 0; }
}

@keyframes tableFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    40% { opacity: 0; transform: translateY(20px); }
    55% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}


/* Table Dialog Showcase */
.table-showcase-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.table-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.table-showcase-card {
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.showcase-badge {
    background: var(--accent-gradient);
    color: #ffffff;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}


/* Animated Table Creation Experience */
.animated-table-stage {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    min-height: 520px;
}

.stage-layer-dialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: dialogTransition 7s infinite ease-in-out;
    z-index: 2;
}

.stage-layer-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: resultTransition 7s infinite ease-in-out;
    z-index: 1;
}

.table-animated-cursor {
    position: absolute;
    width: 26px;
    height: 26px;
    z-index: 6;
    animation: clickInsertCursor 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.click-ripple {
    position: absolute;
    top: 79%;
    left: 64.5%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.5);
    border: 2px solid #38bdf8;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 7s infinite ease-out;
}

@keyframes dialogTransition {
    0% { opacity: 1; }
    38% { opacity: 1; }
    46% { opacity: 0; }
    92% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes resultTransition {
    0% { opacity: 0; }
    40% { opacity: 0; }
    48% { opacity: 1; }
    92% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes clickInsertCursor {
    0% { top: 85%; left: 30%; opacity: 0; transform: scale(1); }
    12% { top: 79.5%; left: 64.5%; opacity: 1; transform: scale(1); }
    32% { top: 79.5%; left: 64.5%; opacity: 1; transform: scale(0.85); }
    36% { top: 79.5%; left: 64.5%; opacity: 1; transform: scale(1); }
    42% { top: 79.5%; left: 64.5%; opacity: 0; }
    100% { top: 85%; left: 30%; opacity: 0; }
}

@keyframes rippleEffect {
    0%, 30% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    33% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.6); }
    38% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
}
