* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-cream: #faf8f5;
    --bg-warm: #f5f3f0;
    --bg-white: #ffffff;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --accent-primary: #3d3d3d;
    --accent-light: #8b7355;
    --border-color: #e5e2de;
    --border-dark: #d4d0cb;
    --shadow-soft: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --font-size-base: 18px;
}

body {
    font-family: 'Noto Serif SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: var(--font-size-base);
    background: var(--bg-cream);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
}

.page {
    min-height: 100vh;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 5rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    border-radius: 6px;
    position: relative;
}

.logo-mark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 2px solid var(--bg-cream);
    border-radius: 2px;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

.logo-mark.small {
    width: 28px;
    height: 28px;
}

.logo-mark.small::before {
    width: 10px;
    height: 10px;
}

.logo-mark.small::after {
    top: 6px;
    left: 6px;
    right: 6px;
}

.logo-name {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.language-toggle {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 0.3rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: 0 2px 4px var(--shadow-soft);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 500;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    padding: 7rem 5rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-content {
    max-width: 640px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-showcase {
    display: grid;
    gap: 1rem;
    padding: 2.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-soft);
}

.frame-row {
    display: flex;
    gap: 1rem;
}

.showcase-frame {
    width: 100px;
    height: 100px;
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.showcase-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-dark);
    border-radius: 6px;
}

.showcase-frame.f1 { background: linear-gradient(135deg, #f0ebe5 0%, #e8e0d8 100%); }
.showcase-frame.f2 { background: linear-gradient(135deg, #e8e0d8 0%, #ddd4c9 100%); }
.showcase-frame.f3 { background: linear-gradient(135deg, #ddd4c9 0%, #d5cabb 100%); }
.showcase-frame.f4 { background: linear-gradient(135deg, #d5cabb 0%, #cec2ad 100%); }
.showcase-frame.f5 { background: linear-gradient(135deg, #f5f0ea 0%, #ebe4db 100%); }
.showcase-frame.f6 { background: linear-gradient(135deg, #ebe4db 0%, #e2d8cd 100%); }
.showcase-frame.f7 { background: linear-gradient(135deg, #e2d8cd 0%, #d9cdbf 100%); }
.showcase-frame.f8 { background: linear-gradient(135deg, #d9cdbf 0%, #d0c2b1 100%); }

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.features-section {
    padding: 6rem 5rem;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-visual {
    margin-bottom: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: var(--bg-warm);
    border-radius: 16px;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-icon.i1::before {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-light);
    border-radius: 4px;
}

.feature-icon.i2::before {
    width: 20px;
    height: 20px;
    background: var(--accent-light);
    border-radius: 50%;
}

.feature-icon.i3::before {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent-light);
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.feature-icon.i4::before {
    width: 0;
    height: 0;
    border-left: 12px solid var(--accent-light);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.feature-item h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.workflow-section {
    padding: 6rem 5rem;
    background: var(--bg-cream);
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    max-width: 220px;
}

.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 0.6rem;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step p {
    font-size: 1rem;
    color: var(--text-muted);
}

.step-arrow {
    width: 50px;
    height: 1px;
    background: var(--border-dark);
    position: relative;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 9px;
    height: 9px;
    border-right: 1px solid var(--border-dark);
    border-top: 1px solid var(--border-dark);
    transform: rotate(45deg);
}

.cta-section {
    padding: 7rem 5rem;
    background: var(--bg-white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.footer {
    padding: 3rem 4rem;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-brand span {
    font-weight: 600;
    font-size: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.workspace-nav {
    padding: 1.5rem 2rem;
}

.workspace-container {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 0;
    height: 200vh;
    max-height: 200vh;
    overflow: hidden;
}

.sidebar {
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-cream);
}

.upload-zone:hover {
    border-color: var(--accent-light);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.upload-icon-area {
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
}

.upload-icon-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
}

.upload-placeholder p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.upload-placeholder span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.preview-image {
    max-width: 100%;
    max-height: 140px;
    border-radius: 6px;
    object-fit: contain;
}

.desc-input,
.prompt-input {
    width: 100%;
    min-height: 90px;
    padding: 1rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.prompt-input {
    min-height: 180px;
    font-family: inherit;
    font-size: 1.05rem;
    line-height: 1.7;
}

.desc-input:focus,
.prompt-input:focus {
    outline: none;
    border-color: var(--accent-light);
}

.action-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.action-preset {
    padding: 0.5rem 1rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.action-preset:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
    border-color: var(--accent-light);
}

.action-preset.active {
    background: var(--accent-light);
    color: white;
    border-color: var(--accent-light);
}

.export-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.export-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-light);
    cursor: pointer;
}

.export-label {
    user-select: none;
}

.matting-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.threshold-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-cream);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.threshold-control label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.threshold-control input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.threshold-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-light);
    border-radius: 50%;
    cursor: pointer;
}

.threshold-control span {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 28px;
    text-align: right;
}

.workspace-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    background: var(--bg-cream);
    padding: 1.5rem;
    min-height: 50px;
}

.preview-panel,
.frames-panel,
.editor-panel {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.preview-panel {
    grid-row: 1 / 2;
}

.frames-panel {
    grid-row: 1 / 2;
}

.editor-panel {
    grid-row: 2 / 3;
    grid-column: 1 / -1;
}

.preview-header,
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.preview-title,
.panel-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preview-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 6px;
    min-height: 100px;
}

.preview-canvas {
    width: 200px;
    height: 200px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.control-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-cream);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-cream);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.speed-control input[type="range"] {
    width: 70px;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.speed-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 35px;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    flex: 1;
    align-content: start;
}

.frame-card {
    aspect-ratio: 1;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.frame-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.frame-card.selected {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(139, 115, 85, 0.2);
}

.frame-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-card .frame-num {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-icon-area {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    position: relative;
}

.empty-icon-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
}

.editor-canvas-area {
    flex: 1;
    background: var(--bg-cream);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.editor-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-cream);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tool-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tool-btn[data-tool="brush"]::before {
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 19l7-7 3 3-7 7-3-3z'/%3E%3Cpath d='M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z'/%3E%3C/svg%3E");
}

.tool-btn[data-tool="eraser"]::before {
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20H9L3 14l9-9 8 8-3 7z'/%3E%3Cpath d='M7 17l5-5'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 20H9L3 14l9-9 8 8-3 7z'/%3E%3Cpath d='M7 17l5-5'/%3E%3C/svg%3E");
}

.tool-btn#undoBtn::before {
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7v6h6'/%3E%3Cpath d='M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7v6h6'/%3E%3Cpath d='M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13'/%3E%3C/svg%3E");
}

.tool-btn#saveEditBtn::before {
    width: 14px;
    height: 14px;
    background: var(--text-secondary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z'/%3E%3Cpolyline points='17 21 17 13 7 13 7 21'/%3E%3Cpolyline points='7 3 7 8 15 8'/%3E%3C/svg%3E");
}

.tool-btn:hover {
    background: var(--bg-warm);
}

.tool-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.tool-btn.active::before {
    background: var(--bg-white);
}

.color-picker-wrap {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.color-picker-wrap input {
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    padding: 0;
}

.brush-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-cream);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.brush-size-control input {
    width: 60px;
    -webkit-appearance: none;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
}

.brush-size-control input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.brush-size-control span {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 28px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    width: fit-content;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-cream);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-warm);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-canvas {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    cursor: crosshair;
    border-radius: 6px;
}

.about-page .about-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 3rem;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
}

.about-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.about-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.about-section {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 4rem;
}

.section-block {
    margin-bottom: 3rem;
}

.section-block:last-child {
    margin-bottom: 0;
}

.section-block h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.section-block p {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 1.15rem;
}

.features-detail {
    margin: 3rem 0;
}

.feature-block {
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.feature-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.cta-block {
    text-align: center;
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.cta-block p {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer.minimal {
    padding: 2rem;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 3rem;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-steps {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .step-arrow {
        display: none;
    }

    .workspace-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
    }

    .navbar {
        padding: 2rem 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .workspace-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .preview-panel,
    .frames-panel,
    .editor-panel {
        grid-row: auto !important;
        grid-column: auto !important;
    }

    .workspace-container {
        grid-template-columns: 1fr;
    }
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-cream);
}

.btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-warm);
    border-color: var(--border-dark);
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.full {
    width: 100%;
}