@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* LEGO Inventory Tracker Design System - PHP Version */

:root {
    /* Colors */
    --color-background: hsl(40, 20%, 98%);
    --color-foreground: hsl(220, 25%, 12%);
    --color-card: hsl(0, 0%, 100%);
    --color-card-foreground: hsl(220, 25%, 12%);
    --color-primary: hsl(0, 85%, 45%);
    --color-primary-foreground: hsl(0, 0%, 100%);
    --color-secondary: hsl(45, 100%, 50%);
    --color-secondary-foreground: hsl(220, 25%, 12%);
    --color-muted: hsl(40, 15%, 93%);
    --color-muted-foreground: hsl(220, 10%, 45%);
    --color-accent: hsl(210, 85%, 50%);
    --color-accent-foreground: hsl(0, 0%, 100%);
    --color-success: hsl(145, 65%, 42%);
    --color-success-foreground: hsl(0, 0%, 100%);
    --color-warning: hsl(35, 95%, 55%);
    --color-destructive: hsl(0, 75%, 50%);
    --color-border: hsl(40, 20%, 88%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-brick: 0 4px 0 0 hsl(0, 85%, 35%), 0 6px 12px -2px rgba(0, 0, 0, 0.15);
    
    /* Radius */
    --radius: 0.75rem;
}

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

body {
    font-family: 'Nunito', system-ui, -apple-system, sans-serif;
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-1 {
    flex: 1;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-medium {
    font-weight: 500;
}

.text-foreground {
    color: var(--color-foreground);
}

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

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Spacing */
.p-4 {
    padding: 1rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.pb-44 {
    padding-bottom: 11rem;
}

/* Sizing */
.w-full {
    width: 100%;
}

.max-w-sm {
    max-width: 24rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.min-w-0 {
    min-width: 0;
}

/* Backgrounds */
.bg-background {
    background-color: var(--color-background);
}

.bg-gradient {
    background: linear-gradient(to bottom, var(--color-background), var(--color-muted));
}

/* Logo */
.logo-circle {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius);
    object-fit: contain;
}

.logo-circle-sm {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: contain;
}

/* Card */
.card {
    background-color: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.card-content {
    padding: 1.5rem;
}

/* Tabs */
.tabs {
    width: 100%;
}

.tabs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    background-color: var(--color-muted);
    padding: 0.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.tab-trigger {
    padding: 0.5rem 1rem;
    background-color: transparent;
    border: none;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    font-weight: 600;
    color: var(--color-muted-foreground);
    transition: all 0.2s;
}

.tab-trigger.active {
    background-color: var(--color-card);
    color: var(--color-foreground);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-foreground);
}

.form-group input,
.select-field {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) - 0.25rem);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-card);
    color: var(--color-foreground);
    transition: border-color 0.2s;
}

.form-group input:focus,
.select-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px hsla(0, 85%, 45%, 0.1);
}

.input-with-btn {
    display: flex;
    gap: 0.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 0.25rem);
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    font-size: 0.875rem;
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.btn-primary:hover:not(:disabled) {
    background-color: hsl(0, 85%, 40%);
}

.btn-brick {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-brick);
    transform: translateY(0);
}

.btn-brick:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 hsl(0, 85%, 35%), 0 10px 20px -2px rgba(0, 0, 0, 0.2);
}

.btn-brick:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 hsl(0, 85%, 35%), 0 3px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-muted-foreground);
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--color-muted);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-foreground);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--color-muted);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: calc(var(--radius) - 0.25rem);
    margin-bottom: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.alert svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.alert p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-error {
    background-color: hsla(0, 75%, 50%, 0.1);
    color: var(--color-destructive);
    border: 1px solid hsla(0, 75%, 50%, 0.3);
}

.alert-success {
    background-color: hsla(145, 65%, 42%, 0.1);
    color: hsl(145, 65%, 30%);
    border: 1px solid hsla(145, 65%, 42%, 0.3);
}

/* Sets Grid */
.sets-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@media (min-width: 640px) {
    .sets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Set Card */
.set-card {
    position: relative;
    background-color: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.set-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.set-card-selection {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
}

.set-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    border: 2px solid var(--color-border);
    cursor: pointer;
}

.set-checkbox:checked {
    background-color: var(--color-success);
    border-color: var(--color-success);
}

.set-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.set-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    background-color: var(--color-muted);
}

.set-image-placeholder {
    width: 100%;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-muted);
    color: var(--color-muted-foreground);
}

.set-card-content {
    padding: 1rem;
}

.set-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.set-meta {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.progress-section {
    margin-top: 0.75rem;
}

.progress-bar-container {
    height: 0.5rem;
    background-color: var(--color-muted);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-success), hsl(145, 70%, 50%));
    border-radius: 9999px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.set-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.25rem;
}

.delete-set-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-destructive);
}

.delete-set-btn:hover {
    background-color: var(--color-destructive);
    color: white;
}

.rename-set-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-muted-foreground);
}

.rename-set-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Empty State */
.empty-state-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: var(--radius);
    background-color: var(--color-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-foreground);
}

/* Selection Bar */
.selection-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
}

/* Dialog */
.dialog {
    position: fixed;
    inset: 0;
    z-index: 100;
}

.dialog-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    width: calc(100% - 2rem);
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.dialog-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.dialog-close {
    background: none;
    border: none;
    color: var(--color-muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.dialog-close:hover {
    background-color: var(--color-muted);
}

.dialog-body {
    padding: 1.5rem;
}

/* Set Result */
.set-result-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-muted);
    border-radius: calc(var(--radius) - 0.25rem);
}

.set-result-image {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.set-result-info {
    flex: 1;
}

/* Spinner */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--color-muted);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Part Card */
.parts-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .parts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.part-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius) - 0.25rem);
    padding: 1rem;
    transition: all 0.2s;
}

.part-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.part-card.completed {
    background-color: hsl(145, 40%, 95%);
    border-color: var(--color-success);
}

.part-card.completed:hover {
    background-color: hsl(145, 45%, 92%);
}

.part-image {
    width: 100%;
    height: 8rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
    background-color: var(--color-muted);
    border-radius: 0.5rem;
}

.part-image-placeholder {
    width: 100%;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-muted);
    color: var(--color-muted-foreground);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.part-info {
    margin-bottom: 0.75rem;
}

.part-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.part-num {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
}

.part-set-label {
    font-size: 0.7rem;
    color: var(--color-muted-foreground);
    opacity: 0.75;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.part-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s;
}

.part-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-top: 0.25rem;
}

.badge-spare {
    background-color: var(--color-warning);
    color: var(--color-foreground);
}

.part-quantity {
    margin-top: 0.75rem;
}

.quantity-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.quantity-btn {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--color-border);
    background-color: var(--color-card);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.quantity-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--color-muted);
}

.quantity-btn.active {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: transparent;
}

.quantity-btn.active::before {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.quantity-text {
    font-size: 0.75rem;
    color: var(--color-muted-foreground);
    text-align: center;
}

/* Color Section */
.color-section {
    margin-bottom: 3rem;
}

.color-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.375rem;
    border: 2px solid var(--color-border);
    position: relative;
}

.color-swatch.transparent,
.color-nav-btn.transparent {
    background-image: 
        linear-gradient(45deg, #ccc 25%, transparent 25%), 
        linear-gradient(-45deg, #ccc 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #ccc 75%), 
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    /* background-color: #fff !important; */
}

.color-title {
    font-weight: 700;
    font-size: 1.125rem;
    flex: 1;
}

.color-count {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Inventory Bottom Bar */
.inventory-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border);
}

.progress-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.progress-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.progress-percent {
    font-weight: 700;
    color: var(--color-primary);
}

.color-nav-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.color-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.color-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--color-border);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.color-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.color-nav-btn:active {
    transform: scale(1.05);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

/* Language switcher for landing page - fixed top right */
.language-switcher-landing {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-flag {
    display: block;
    width: 30px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.lang-flag:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

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

/* Language switcher for dashboard dropdown */
.language-switcher-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: var(--color-muted);
}

.lang-flag-dashboard {
    width: 30px;
    height: auto;
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
    display: block;
}

.lang-option span {
    display: none;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--color-background), var(--color-muted));
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem 3rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/lego-background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        hsla(40, 20%, 98%, 0.7), 
        hsla(40, 20%, 98%, 0.85), 
        hsl(40, 20%, 98%));
}

.hero-content {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.logo-hero {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1.5rem;
    animation: bounce-subtle 2s infinite;
}

@keyframes bounce-subtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--color-muted-foreground);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-lg {
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-foreground);
}

.btn-outline:hover {
    background-color: var(--color-muted);
    border-color: var(--color-primary);
}

/* Preview Cards */
.preview-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 42rem;
    margin: 0 auto;
}

.preview-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    transform: rotate(0deg);
}

.preview-card-left {
    transform: rotate(-2deg);
}

.preview-card-right {
    transform: rotate(2deg);
}

.preview-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.preview-card-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--color-primary), hsl(0, 85%, 55%));
    color: white;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.preview-card-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.preview-card-desc {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
}

/* Screenshots */
.screenshots {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 48rem;
    margin: 4rem auto 0;
}

.screenshot {
    flex: 1;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.screenshot:first-child {
    transform: rotate(-2deg);
}

.screenshot:last-child {
    transform: rotate(2deg);
}

.screenshot:hover {
    transform: rotate(0deg) scale(1.02);
}

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

/* Features Section */
.features-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, hsla(0, 85%, 45%, 0.1), hsla(0, 85%, 45%, 0.05));
    color: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(to bottom, var(--color-muted), var(--color-background));
    padding: 4rem 1rem;
}

.container-small {
    max-width: 64rem;
    margin: 0 auto;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-brick);
}

.step-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Final CTA Section */
.final-cta-section {
    max-width: 64rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.cta-final-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-final-title {
        font-size: 1.875rem;
    }
}

.cta-final-subtitle {
    color: var(--color-muted-foreground);
    margin-bottom: 2rem;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Utility */
.ml-2 {
    margin-left: 0.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

/* Responsive */
@media (max-width: 640px) {
    .hidden {
        display: none !important;
    }
    
    .preview-cards {
        flex-direction: column;
    }
    
    .preview-card-left,
    .preview-card-right {
        transform: rotate(0deg);
    }
}

@media (min-width: 640px) {
    .sm\\:inline {
        display: inline !important;
    }
}
