/* ==========================================================================
   aiPresentationBoost | CORE VARIABLES & THEME
   ========================================================================== */
:root {
    --bg-body: #f4f4f5;
    --bg-surface: #ffffff;
    --bg-surface-hover: #fafafa;
    --border-color: #e4e4e7;
    --text-main: #09090b;
    --text-muted: #71717a;

    --primary: #ca8a04;
    --primary-hover: #a16207;
    --primary-bg: rgba(202, 138, 4, 0.1);

    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-body: #09090b;
    --bg-surface: #121214;
    --bg-surface-hover: #18181b;
    --border-color: #27272a;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --primary: #f59e0b;
    --primary-bg: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   GLOBAL & TYPOGRAPHY
   ========================================================================== */
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Albert Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Technical Dot Matrix Background (Shared) */
.bg-dot-matrix {
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.mono-accent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   SHARED UI COMPONENTS
   ========================================================================== */
.navbar {
    background: rgba(var(--bg-surface-rgb), 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.navbar a {
    font-weight: 600;
    color: var(--text-main);
}

.navbar a:hover {
    text-decoration: none;
    color: var(--primary);
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-bg);
    text-decoration: none;
}

.btn-outline-custom {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main) !important;
    border-radius: var(--radius-md);
    padding: 12px 24px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    text-decoration: none;
}

.console-input {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 14px 16px;
    width: 100%;
    margin-bottom: 1.5rem;
    font-family: 'Albert Sans', sans-serif;
    transition: var(--transition);
}

.console-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
    background: var(--bg-surface);
}

.section-padding {
    padding: 100px 0;
}

/* Checkbox */
.custom-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.custom-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ==========================================================================
   LANDING PAGE SPECIFICS
   ========================================================================== */
.hero-section {
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-title span {
    color: var(--primary);
}

.generator-console {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-bg);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.stat-value {
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--primary);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
    color: var(--text-main);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 1.2rem;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--border-color);
    background-size: cover;
    background-position: center;
}

.testimonial-name {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-main);
}

.testimonial-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
}

.bento-item:hover {
    border-color: var(--primary);
}

.bento-half {
    grid-column: span 6;
}

.bento-full {
    grid-column: span 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 991px) {

    .bento-half,
    .bento-full {
        grid-column: span 12;
        flex-direction: column;
    }
}

/* Realistic Web Editor Layout */
.editor-showcase {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.editor-header {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-surface-hover);
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.editor-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.editor-toolbar {
    display: flex;
    gap: 10px;
    background: var(--bg-surface);
    padding: 8px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

.toolbar-btn {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-body {
    display: flex;
    height: 380px;
}

.editor-sidebar {
    width: 80px;
    border-right: 1px solid var(--border-color);
    padding: 15px 10px;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: hidden;
    flex-shrink: 0;
}

.editor-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    border: 2px solid transparent;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-body);
    cursor: pointer;
}

.editor-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-bg);
}

.editor-stage {
    flex-grow: 1;
    padding: 25px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.editor-canvas {
    width: 100%;
    max-width: 550px;
    aspect-ratio: 16/9;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .editor-canvas {
    background: #18181b;
    color: #fff;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 4rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 35s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 320px;
    height: 180px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 0 1rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.marquee-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.accordion-button {
    background: transparent !important;
    color: var(--text-main) !important;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    padding: 1.5rem 0;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: grayscale(1);
}

[data-theme="dark"] .accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    padding: 0 0 1.5rem 0;
    color: var(--text-muted);
}

/* ==========================================================================
   AUTH PAGE SPECIFICS
   ========================================================================== */
.auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: var(--bg-surface);
    position: relative;
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.form-view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-view.active {
    display: block;
}

.sso-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.sso-divider::before,
.sso-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.sso-divider:not(:empty)::before {
    margin-right: 1rem;
}

.sso-divider:not(:empty)::after {
    margin-left: 1rem;
}

.btn-sso {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.btn-sso:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--text-main);
}

.auth-visual-side {
    flex: 1.2;
    display: none;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
}

@media (min-width: 992px) {
    .auth-visual-side {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 4rem;
    }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.4) 100%);
}

.visual-content {
    position: relative;
    z-index: 1;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   SHARED ANIMATIONS
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Dynamic Layout Block Animation */
.layout-showcase {
    width: 300px; height: 170px; background: var(--bg-body);
    border: 1px solid var(--border-color); border-radius: 8px;
    position: relative; padding: 15px; display: flex; gap: 15px; flex-shrink: 0;
    flex-wrap: wrap; /* ADDED: Allows text to drop below the image */
    align-content: center; /* ADDED: Keeps everything vertically centered */
}
.layout-showcase.dark-glass { 
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    width: 100%; max-width: 400px; height: 220px; 
}
.mock-img { 
    background: var(--border-color); border-radius: 4px; 
    animation: layoutShift 6s infinite; 
}
.layout-showcase.dark-glass .mock-img { 
    background: rgba(255, 255, 255, 0.2); 
}
.mock-text { 
    display: flex; flex-direction: column; gap: 8px; 
    flex: 1 1 40%; /* FIXED: Gives it a base width so it wraps properly */
    justify-content: center; 
}
.mock-line { height: 8px; background: var(--text-muted); border-radius: 4px; opacity: 0.3; }
.layout-showcase.dark-glass .mock-line { background: rgba(255, 255, 255, 0.5); opacity: 1;}

@keyframes layoutShift {
    0%, 25% { width: 40%; height: 100%; order: 1; } 
    30%, 55% { width: 40%; height: 100%; order: 3; } 
    60%, 85% { width: 100%; height: 45%; order: 1; } /* Reduced height slightly so text fits underneath perfectly */
    90%, 100% { width: 40%; height: 100%; order: 1; }
}

/* Base Alert Structure */
.custom-alert {
	border-radius: 8px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.8rem;
	text-transform: uppercase;
	padding: 12px 16px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--text-main);
	animation: fadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.custom-alert-header {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: 'JetBrains Mono', monospace;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
}

.custom-alert-body {
	font-family: 'Albert Sans', sans-serif;
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.5;
	margin-left: 32px; /* Aligns with text next to icon */
}

	.custom-alert i {
		font-size: 1.2rem;
	}

	/* Danger Theme */
	.custom-alert.alert-danger {
		background: rgba(239, 68, 68, 0.1);
		border: 1px solid var(--danger, #ef4444);
	}

		.custom-alert.alert-danger i {
			color: var(--danger, #ef4444);
		}

	/* Success Theme */
	.custom-alert.alert-success {
		background: rgba(34, 197, 94, 0.1);
		border: 1px solid var(--success, #22c55e);
	}

		.custom-alert.alert-success i {
			color: var(--success, #22c55e);
		}

	.custom-alert.show {
		display: flex;
	}

	.custom-alert i {
		color: var(--primary);
		font-size: 1.2rem;
	}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}
