/* ============================================
   Helium AI — Website Builder
   Design System: Copper & Slate
   ============================================ */

/* CSS Variables — Copper & Slate Palette */
:root {
    /* Primary Colors */
    --color-copper: #B87333;
    --color-copper-light: #D4A574;
    --color-copper-dark: #8B5A2B;
    
    /* Slate Colors */
    --color-slate-900: #2F3640;
    --color-slate-800: #3D4550;
    --color-slate-700: #4A5560;
    --color-slate-600: #5A6570;
    --color-slate-500: #6B7580;
    --color-slate-400: #8A94A0;
    --color-slate-300: #B0B8C0;
    --color-slate-200: #D0D8E0;
    --color-slate-100: #E8EDF0;
    --color-slate-50: #F5F7FA;
    
    /* Neutral */
    --color-white: #FFFFFF;
    --color-cream: #F5F0EB;
    --color-cream-dark: #E8E0D5;
    
    /* Semantic Colors */
    --color-success: #059669;
    --color-warning: #D97706;
    --color-error: #DC2626;
    --color-info: #2563EB;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(47, 54, 64, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(47, 54, 64, 0.1), 0 2px 4px -1px rgba(47, 54, 64, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(47, 54, 64, 0.1), 0 4px 6px -2px rgba(47, 54, 64, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(47, 54, 64, 0.1), 0 10px 10px -5px rgba(47, 54, 64, 0.04);
    --shadow-copper: 0 4px 14px 0 rgba(184, 115, 51, 0.39);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-slate-900);
    background-color: var(--color-cream);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-slate-900);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: rgba(245, 240, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(47, 54, 64, 0.08);
    transition: all var(--transition-base);
}

.nav.scrolled {
    padding: var(--space-3) var(--space-6);
    background: rgba(245, 240, 235, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-logo {
    font-size: var(--text-2xl);
    line-height: 1;
}

.nav-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-slate-900);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-600);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-copper);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-slate-900);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-slate-900);
    transition: all var(--transition-fast);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-copper);
    color: var(--color-white);
    box-shadow: var(--shadow-copper);
}

.btn-primary:hover {
    background: var(--color-copper-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
}

.btn-primary:disabled {
    background: var(--color-slate-300);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    border: 1px solid var(--color-slate-200);
}

.btn-secondary:hover {
    background: var(--color-slate-200);
    color: var(--color-slate-900);
}

.btn-ghost {
    background: transparent;
    color: var(--color-slate-600);
}

.btn-ghost:hover {
    background: var(--color-slate-100);
    color: var(--color-slate-900);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-loader {
    display: none;
    gap: 4px;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: flex;
}

.loader-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: var(--radius-full);
    animation: loader-bounce 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes loader-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-32) + 60px) var(--space-6) var(--space-24);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(184, 115, 51, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(212, 165, 116, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(47, 54, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 54, 64, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    animation: fade-in-up 0.8s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(184, 115, 51, 0.1);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-copper);
    margin-bottom: var(--space-6);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-copper);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--color-copper);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: -0.1em;
    right: -0.1em;
    height: 0.15em;
    background: rgba(184, 115, 51, 0.2);
    z-index: -1;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-slate-600);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 600;
    color: var(--color-slate-900);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-slate-300);
}

/* ============================================
   Builder Section
   ============================================ */
.builder {
    padding: var(--space-24) var(--space-6);
    background: var(--color-white);
}

.builder-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    font-weight: 500;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-600);
}

.builder-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--space-8);
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.builder-panel {
    background: var(--color-cream);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-cream-dark);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-cream-dark);
    background: rgba(255, 255, 255, 0.5);
}

.panel-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-copper);
    color: var(--color-white);
    border-radius: var(--radius-lg);
}

.panel-icon svg {
    width: 20px;
    height: 20px;
}

.panel-title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    flex: 1;
}

/* Input Panel */
.builder-input {
    padding: var(--space-6);
}

.input-group {
    margin-bottom: var(--space-6);
}

.input-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-slate-700);
    margin-bottom: var(--space-2);
}

.input-field,
.input-select,
.input-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-slate-900);
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.input-field:focus,
.input-select:focus,
.input-textarea:focus {
    outline: none;
    border-color: var(--color-copper);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.input-textarea {
    resize: vertical;
    min-height: 120px;
}

.input-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--color-slate-500);
    margin-top: var(--space-2);
}

/* Style Chips */
.style-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-600);
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.chip:hover {
    border-color: var(--color-copper);
    color: var(--color-copper);
}

.chip.active {
    background: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-white);
}

/* Color Options */
.color-options {
    display: flex;
    gap: var(--space-3);
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--color-slate-900);
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-copper);
}

/* Preview Panel */
.builder-preview {
    display: flex;
    flex-direction: column;
    min-height: 700px;
}

.preview-actions {
    display: flex;
    gap: var(--space-2);
}

.preview-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-500);
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.preview-btn:hover,
.preview-btn.active {
    color: var(--color-copper);
    border-color: var(--color-copper);
    background: rgba(184, 115, 51, 0.05);
}

.preview-btn svg {
    width: 18px;
    height: 18px;
}

.preview-container {
    flex: 1;
    position: relative;
    background: var(--color-slate-100);
    overflow: hidden;
}

.preview-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
    color: var(--color-slate-400);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.placeholder-text {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-slate-600);
    margin-bottom: var(--space-2);
}

.placeholder-subtext {
    font-size: var(--text-sm);
}

.preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--color-white);
    display: none;
}

.preview-frame.active {
    display: block;
}

.preview-frame.mobile {
    width: 375px;
    margin: 0 auto;
    border-left: 1px solid var(--color-slate-200);
    border-right: 1px solid var(--color-slate-200);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--color-cream-dark);
    background: var(--color-white);
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-600);
    background: var(--color-cream);
    border: 1px solid var(--color-cream-dark);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.toolbar-btn:hover {
    background: var(--color-cream-dark);
    color: var(--color-slate-900);
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
}

.toolbar-btn-primary {
    background: var(--color-copper);
    border-color: var(--color-copper);
    color: var(--color-white);
}

.toolbar-btn-primary:hover {
    background: var(--color-copper-dark);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: var(--space-24) var(--space-6);
    background: var(--color-cream);
}

.features-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-cream-dark);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(184, 115, 51, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 115, 51, 0.1);
    color: var(--color-copper);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-5);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.feature-desc {
    font-size: var(--text-base);
    color: var(--color-slate-600);
    line-height: 1.7;
}

/* ============================================
   Templates Section
   ============================================ */
.templates {
    padding: var(--space-24) var(--space-6);
    background: var(--color-white);
}

.templates-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-16);
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    max-width: 1200px;
    margin: 0 auto;
}

.template-card {
    background: var(--color-cream);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-cream-dark);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.template-preview {
    aspect-ratio: 4/3;
    background: var(--color-slate-100);
    padding: var(--space-4);
}

.template-mockup {
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mockup-header {
    height: 24px;
    background: var(--color-slate-100);
    border-bottom: 1px solid var(--color-slate-200);
}

.mockup-hero {
    height: 60%;
    background: linear-gradient(135deg, var(--color-slate-200), var(--color-slate-300));
}

.mockup-hero-wide {
    height: 40%;
    background: linear-gradient(135deg, var(--color-copper-light), var(--color-copper));
}

.mockup-hero-gradient {
    height: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    height: calc(40% - var(--space-3));
}

.mockup-grid > div {
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
}

.mockup-content {
    padding: var(--space-3);
}

.mockup-text {
    height: 12px;
    background: var(--color-slate-200);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
}

.mockup-text.short {
    width: 60%;
}

.mockup-features {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    height: 50%;
}

.mockup-features > div {
    flex: 1;
    background: var(--color-slate-100);
    border-radius: var(--radius-md);
}

.mockup-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    padding: var(--space-3);
    height: calc(100% - 24px);
}

.mockup-product-grid > div {
    background: var(--color-slate-100);
    border-radius: var(--radius-sm);
}

.template-info {
    padding: var(--space-6);
}

.template-name {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.template-desc {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    margin-bottom: var(--space-4);
}

/* Portfolio mockup specific */
.portfolio-mockup .mockup-hero {
    height: 50%;
}

/* Business mockup specific */
.business-mockup .mockup-hero-wide {
    height: 45%;
}

/* SaaS mockup specific */
.saas-mockup .mockup-hero-gradient {
    height: 55%;
}

/* E-commerce mockup specific */
.ecommerce-mockup .mockup-product-grid {
    height: calc(100% - 24px);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--space-24) var(--space-6);
    background: var(--color-slate-900);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(184, 115, 51, 0.15), transparent),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(212, 165, 116, 0.1), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-lg);
    color: var(--color-slate-400);
    margin-bottom: var(--space-8);
}

.cta-note {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    margin-top: var(--space-6);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-16) var(--space-6) var(--space-8);
    background: var(--color-cream);
    border-top: 1px solid var(--color-cream-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-16);
    max-width: 1200px;
    margin: 0 auto var(--space-16);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-logo {
    font-size: var(--text-3xl);
}

.footer-name {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--color-slate-600);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column a {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-slate-600);
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-copper);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-cream-dark);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--color-slate-500);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--color-copper);
    animation: slide-in 0.3s ease;
    max-width: 400px;
}

.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--color-slate-700);
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(47, 54, 64, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform var(--transition-base);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--color-slate-500);
    background: var(--color-cream);
    border-radius: var(--radius-full);
    z-index: 1;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-slate-200);
    color: var(--color-slate-900);
}

.modal-body {
    padding: var(--space-8);
    overflow-y: auto;
    max-height: 80vh;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .builder-container {
        grid-template-columns: 1fr;
    }
    
    .builder-preview {
        min-height: 500px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: calc(var(--space-24) + 60px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .preview-frame.mobile {
        width: 100%;
        border: none;
    }
}

@media (max-width: 480px) {
    :root {
        --space-24: 4rem;
        --space-20: 3.5rem;
        --space-16: 3rem;
    }
    
    .nav {
        padding: var(--space-3) var(--space-4);
    }
    
    .builder,
    .features,
    .templates {
        padding: var(--space-16) var(--space-4);
    }
    
    .feature-card {
        padding: var(--space-6);
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(184, 115, 51, 0.2);
    color: var(--color-slate-900);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-slate-400);
}