tile-room-visualizer / app /globals.css
richuj's picture
style(ui): compact landing page layout to prevent vertical scrolling
916f423
Raw History Blame Contribute Delete
34.7 kB
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap'); :root { color-scheme: light; /* Core palette */ --bg-deep: #f3f4f6; --bg-base: #ffffff; --bg-surface: #ffffff; --bg-elevated: #ffffff; --bg-hover: #f9fafb; /* Text */ --text-primary: #111827; --text-secondary: #4b5563; --text-muted: #9ca3af; /* Accent */ --accent: #111827; --accent-dim: rgba(17, 24, 39, 0.05); --accent-strong: #000000; /* Border & shadows */ --border: #e5e7eb; --border-active: #111827; --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Radii */ --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; /* Transitions */ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --transition-fast: 150ms var(--ease-out); --transition-normal: 250ms var(--ease-out); } /* ── Reset ─────────────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { background: var(--bg-deep); color: var(--text-primary); font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif; font-size: 14px; line-height: 1.5; height: 100vh; overflow: hidden; } button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; border: none; background: none; } button:disabled { cursor: not-allowed; opacity: 0.5; } /* ── App Shell ─────────────────────────────────────────────────────── */ .app-shell { display: flex; flex-direction: column; height: 100vh; width: 100vw; background: var(--bg-deep); position: relative; } /* ── Topbar ────────────────────────────────────────────────────────── */ .topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: var(--bg-base); border-bottom: 1px solid var(--border); z-index: 50; flex-shrink: 0; } .topbar-left { display: flex; align-items: center; gap: 12px; } .brand-icon { width: 24px; height: 24px; color: var(--text-primary); } .topbar-left h1 { font-family: 'Outfit', 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; } .topbar-center { position: absolute; left: 50%; transform: translateX(-50%); } .action-bar { display: flex; gap: 8px; align-items: center; } /* ── Stage Area ────────────────────────────────────────────────────── */ .stage-area { flex: 1; position: relative; overflow: hidden; background: var(--bg-deep); display: flex; flex-direction: row; } .stage-area:has(.landing-container) { background: #FAFAF8; overflow-y: auto; } /* ── Floating Panels ───────────────────────────────────────────────── */ .floating-panel { position: absolute; background: var(--bg-base); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 16px; z-index: 10; } .floating-panel-right { top: 24px; right: 24px; display: flex; gap: 8px; padding: 8px; } /* ── Buttons ───────────────────────────────────────────────────────── */ .primary-button { background: var(--accent); color: #ffffff; font-weight: 500; border-radius: var(--radius-sm); padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; transition: opacity var(--transition-fast), transform var(--transition-fast); } .primary-button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); } .secondary-button { background: var(--bg-base); color: var(--text-primary); border: 1px solid var(--border); font-weight: 500; border-radius: var(--radius-sm); padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; transition: background var(--transition-fast), transform var(--transition-fast); } .secondary-button:hover:not(:disabled) { background: var(--bg-hover); transform: translateY(-1px); } .tertiary-button { background: transparent; color: var(--text-secondary); font-weight: 500; border-radius: var(--radius-sm); padding: 8px 16px; display: inline-flex; align-items: center; gap: 8px; transition: background var(--transition-fast), color var(--transition-fast); } .tertiary-button:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); } .icon-button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-secondary); transition: background var(--transition-fast); } .icon-button:hover:not(:disabled) { background: var(--bg-hover); color: var(--text-primary); } /* ── Segmented Control ─────────────────────────────────────────────── */ .segmented-control { display: flex; background: var(--bg-base); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; } .segmented-control button { padding: 6px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); transition: background var(--transition-fast), color var(--transition-fast); } .segmented-control button.active { background: var(--accent); color: #ffffff; } /* ── Canvas/Stage ──────────────────────────────────────────────────── */ .canvas-wrap { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; min-height: 0; width: 100%; } .canvas-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--bg-deep); transition: background var(--transition-normal); } .canvas-empty.drag-active { background: rgba(17, 24, 39, 0.03); } /* ── Upload Card ───────────────────────────────────────────────────── */ .upload-card { align-items: center; border: 2px dashed var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 48px 36px; text-align: center; transition: all var(--transition-normal); cursor: pointer; background: var(--bg-base); max-width: 420px; box-shadow: var(--shadow-sm); } .upload-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); } .upload-card.drag-over { border-color: var(--accent); background: var(--accent-dim); transform: scale(1.02); } .upload-icon { font-size: 2.5rem; line-height: 1; margin-bottom: 4px; } .upload-title { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); } .upload-subtitle { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; max-width: 280px; } .button-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 4px; } /* ── Skeleton Loading ──────────────────────────────────────────────── */ @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } } .skeleton-pulse { background: linear-gradient(90deg, var(--bg-deep) 25%, var(--bg-hover) 50%, var(--bg-deep) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); } /* ═══════════════════════════════════════════════════════════════════════ DETECTING & ERROR OVERLAYS ═══════════════════════════════════════════════════════════════════════ */ .detecting-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 300ms var(--ease-out); } .detecting-content { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px; } .detecting-text { font-weight: 600; font-size: 1rem; color: var(--text-primary); } .detecting-subtext { font-size: 0.85rem; color: var(--text-muted); animation: pulse 2s ease-in-out infinite; } .error-overlay { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 300ms var(--ease-out); } .error-content { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; max-width: 400px; text-align: center; } .error-icon { font-size: 2rem; } .error-text { font-weight: 500; font-size: 0.95rem; color: #ef4444; line-height: 1.5; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* ═══════════════════════════════════════════════════════════════════════ SURFACE HOTSPOTS β€” Glassmorphism Floating Pills ═══════════════════════════════════════════════════════════════════════ */ .surface-hotspots-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 15; } .surface-hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: none; border-radius: 50%; /* Premium sleek hollow circle feel */ background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.85) inset; cursor: pointer; user-select: none; /* Entrance animation */ animation: hotspotEnter 400ms var(--ease-out) both; transition: transform 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275), background 250ms ease, box-shadow 250ms ease; } /* Staggered entrance */ .surface-hotspot:nth-child(1) { animation-delay: 0ms; } .surface-hotspot:nth-child(2) { animation-delay: 60ms; } .surface-hotspot:nth-child(3) { animation-delay: 120ms; } .surface-hotspot:nth-child(4) { animation-delay: 180ms; } .surface-hotspot:nth-child(5) { animation-delay: 240ms; } .surface-hotspot:nth-child(6) { animation-delay: 300ms; } .surface-hotspot:nth-child(7) { animation-delay: 360ms; } .surface-hotspot:nth-child(8) { animation-delay: 420ms; } .surface-hotspot:nth-child(9) { animation-delay: 480ms; } .surface-hotspot:nth-child(10) { animation-delay: 540ms; } @keyframes hotspotEnter { from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } } .surface-hotspot:hover, .surface-hotspot.hovered { transform: translate(-50%, -50%) scale(1.2); background: rgba(255, 255, 255, 0.4); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 2.5px rgba(255, 255, 255, 1) inset, 0 0 0 4px var(--hotspot-color, #6c5ce7) inset; } .surface-hotspot.selected { background: var(--hotspot-color, #6c5ce7); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 2px rgba(255, 255, 255, 0.9) inset; } .surface-hotspot.selected:hover, .surface-hotspot.selected.hovered { transform: translate(-50%, -50%) scale(1.2); filter: brightness(1.1); } .surface-hotspot-check { width: 14px; height: 14px; color: #ffffff; flex-shrink: 0; animation: hotspotCheckIn 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275); } @keyframes hotspotCheckIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } } /* ═══════════════════════════════════════════════════════════════════════ MATERIAL DRAWER β€” Right-Side Slide-In Panel ═══════════════════════════════════════════════════════════════════════ */ .material-drawer { width: 360px; flex-shrink: 0; background: var(--bg-base); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; z-index: 20; /* Slide animation */ transform: translateX(100%); margin-right: -360px; opacity: 0; transition: transform 300ms var(--ease-out), margin-right 300ms var(--ease-out), opacity 200ms var(--ease-out); } .material-drawer.open { transform: translateX(0); margin-right: 0; opacity: 1; } .drawer-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; } .drawer-title-row { display: flex; justify-content: space-between; align-items: center; } .drawer-title-row h3 { font-size: 1.05rem; font-weight: 700; } .drawer-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-muted); transition: background var(--transition-fast), color var(--transition-fast); } .drawer-close:hover { background: var(--bg-hover); color: var(--text-primary); } .drawer-selected-surfaces { display: flex; flex-wrap: wrap; gap: 6px; } .surface-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--accent-dim); border: 1px solid var(--border); border-radius: 100px; font-size: 0.75rem; font-weight: 600; color: var(--text-primary); animation: badgeIn 200ms var(--ease-out); } .surface-badge svg { color: var(--accent); } @keyframes badgeIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } } .select-all-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--bg-hover); border: 1px dashed var(--border); border-radius: 100px; font-size: 0.75rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all var(--transition-fast); } .select-all-badge:hover { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); } .select-all-badge.deselect:hover { background: rgba(239, 68, 68, 0.1); border-color: #ef4444; color: #ef4444; } .drawer-search { position: relative; } .drawer-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); } .drawer-search input { width: 100%; padding: 10px 10px 10px 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-deep); font-size: 0.85rem; outline: none; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } .drawer-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); } .drawer-materials { flex: 1; overflow-y: auto; padding: 16px; display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; } /* Custom scrollbar */ .drawer-materials::-webkit-scrollbar { width: 6px; } .drawer-materials::-webkit-scrollbar-track { background: transparent; } .drawer-materials::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; } .drawer-materials::-webkit-scrollbar-thumb:hover { background: var(--text-muted); } /* ── Material Card ─────────────────────────────────────────────────── */ .material-card { display: flex; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-base); cursor: pointer; transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast); text-align: left; width: 100%; } .material-card:hover { border-color: var(--text-muted); box-shadow: var(--shadow-sm); transform: translateY(-1px); } .material-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .material-card-image { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; position: relative; } .material-swatch { width: 100%; height: 100%; background-size: cover; background-position: center; } .material-applied-badge { position: absolute; bottom: 4px; left: 4px; right: 4px; background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.05em; } .material-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .material-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); } .material-sku { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; } .material-meta { display: flex; gap: 8px; margin-top: 4px; } .material-meta span { font-size: 0.72rem; color: var(--text-secondary); padding: 2px 6px; background: var(--bg-deep); border-radius: 4px; } /* ── Before/After Comparison ───────────────────────────────────────── */ .before-after-container { cursor: ew-resize; } .surface-hotspot-label { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) scale(0.95); background: var(--surface); color: var(--text-primary); padding: 8px 14px; border-radius: 12px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border); opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; display: flex; flex-direction: column; gap: 6px; align-items: center; } .surface-hotspot.hovered .surface-hotspot-label { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); pointer-events: auto; } .callout-title { display: flex; align-items: center; gap: 6px; } .callout-hide-btn { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); width: 100%; } .callout-hide-btn:hover { background: rgba(239, 68, 68, 0.2); } .before-after-label { position: absolute; top: 16px; background: rgba(0,0,0,0.5); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; z-index: 5; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } .before-after-label.before { left: 16px; } .before-after-label.after { right: 16px; } .before-after-divider { position: absolute; top: 0; bottom: 0; width: 3px; background: #fff; z-index: 5; pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,0.3); } .before-after-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; } .before-after-handle::before { content: "⇔"; font-size: 14px; color: var(--text-secondary); } /* ── Detecting Spinner ─────────────────────────────────────────────── */ @keyframes spin { to { transform: rotate(360deg); } } .detecting-spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; } /* ── Responsive ────────────────────────────────────────────────────── */ @media (max-width: 768px) { .topbar { padding: 10px 16px; } .topbar-left h1 { font-size: 1rem; } .topbar-center { display: none; } .action-bar { gap: 4px; } .action-bar .secondary-button, .action-bar .tertiary-button { padding: 6px 10px; font-size: 0.8rem; } .material-drawer { width: 300px; margin-right: -300px; } .surface-hotspot { font-size: 0.72rem; padding: 5px 12px 5px 10px; } } @media (max-width: 480px) { .material-drawer { width: 100%; margin-right: -100%; } .floating-panel-right { top: 12px; right: 12px; } } /* ── Surface Sidebar ─────────────────────────────────────────────────── */ .surface-sidebar { width: 280px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid var(--border); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04); display: flex; flex-direction: column; padding: 24px 20px; gap: 16px; z-index: 10; } .sidebar-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.12em; } .sidebar-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--bg-base); border: 1px solid var(--border); border-left: 4px solid transparent; border-radius: 12px; color: var(--text-secondary); cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-align: left; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02); } .sidebar-item:hover { background: #ffffff; border-color: var(--border); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06); transform: translateY(-2px); color: var(--text-primary); } .sidebar-item.active { background: linear-gradient(145deg, rgba(108, 92, 231, 0.05) 0%, rgba(108, 92, 231, 0.1) 100%); border-color: rgba(108, 92, 231, 0.3); border-left-color: #6c5ce7; color: #6c5ce7; box-shadow: 0 6px 20px rgba(108, 92, 231, 0.12); transform: translateY(-2px); } .sidebar-icon { font-size: 1.25rem; opacity: 0.8; transition: transform 0.25s ease; } .sidebar-item:hover .sidebar-icon { transform: scale(1.1); opacity: 1; } .sidebar-label { flex: 1; font-size: 0.95rem; font-weight: 600; } .sidebar-count { font-size: 0.75rem; font-weight: 700; background: var(--bg-deep); border: 1px solid var(--border); padding: 4px 10px; border-radius: 100px; color: var(--text-muted); transition: all 0.25s ease; } .sidebar-item.active .sidebar-count { background: #6c5ce7; border-color: #6c5ce7; color: #ffffff; } /* Adjust stage-area to lay out horizontally if sidebar is present */ .stage-area { display: flex; flex-direction: row; } .canvas-wrap { flex: 1; } /* ── Custom Checkbox (Sidebar) ───────────────────────────────────────── */ .custom-checkbox { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); background: var(--bg-base); } .sidebar-item:hover .custom-checkbox { border-color: #6c5ce7; } .custom-checkbox.checked, .custom-checkbox.indeterminate { background: #6c5ce7; border-color: #6c5ce7; } .custom-checkbox svg { width: 12px; height: 12px; color: #ffffff; animation: checkboxIn 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes checkboxIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } } /* ========================================================================== LANDING PAGE (PREMIUM SAAS DESIGN) ========================================================================== */ .landing-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 40px 20px; display: flex; flex-direction: column; gap: 20px; background: #FAFAF8; flex: 1; min-height: 0; } @media (max-width: 768px) { .landing-container { padding: 32px 20px 40px; gap: 36px; } } /* ── Hero Section ── */ .landing-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: center; } @media (max-width: 1024px) { .landing-hero { grid-template-columns: 1fr; gap: 36px; } } .landing-hero-content { display: flex; flex-direction: column; gap: 16px; } .landing-title { font-family: var(--font-sans); font-size: 2.25rem; line-height: 1.12; font-weight: 700; color: #111827; letter-spacing: -0.03em; } .landing-subtitle { font-size: 1.05rem; line-height: 1.6; color: #6B7280; max-width: 420px; font-weight: 400; } /* ── Upload Card ── */ .landing-upload-card { background: #ffffff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.025); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); margin-top: 4px; } .landing-upload-card.drag-over { border-color: #0F172A; background: #f8f9fa; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06); } .primary-upload-btn { background: #0F172A; color: #ffffff; border: none; border-radius: 10px; padding: 12px 20px; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; width: 100%; justify-content: center; box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1); } .primary-upload-btn:hover { background: #1e293b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16); } .upload-subtitle { font-size: 0.78rem; color: #9CA3AF; line-height: 1.45; } .upload-divider { width: 100%; position: relative; text-align: center; margin: 4px 0; } .upload-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #E5E7EB; } .upload-divider span { position: relative; z-index: 1; background: #ffffff; padding: 0 12px; color: #D1D5DB; font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; } .demo-select-wrapper { position: relative; width: 100%; } .demo-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9CA3AF; pointer-events: none; } .demo-select { width: 100%; appearance: none; background: #FAFAF8; border: 1px solid #E5E7EB; border-radius: 10px; padding: 10px 14px 10px 36px; font-size: 0.85rem; color: #111827; cursor: pointer; transition: all 0.15s ease; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%239ca3af%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 12px top 50%; background-size: 9px auto; font-weight: 500; } .demo-select:hover { border-color: #d1d5db; background: #f3f4f6; } /* ── Hero Slider / Preview Image ── */ .landing-hero-slider { width: 100%; height: 300px; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.06); background: #ffffff; } .landing-hero-slider img { display: block; width: 100%; height: 100%; object-fit: cover; } .image-slider-container { position: relative; width: 100%; height: 100%; user-select: none; cursor: ew-resize; background: #f3f4f6; } .slider-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; } .slider-img-over { z-index: 2; } .slider-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #ffffff; z-index: 10; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 8px rgba(0,0,0,0.08); } .slider-handle-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-radius: 50%; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: #111827; box-shadow: 0 4px 14px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04); } .slider-badge { position: absolute; top: 14px; padding: 4px 10px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-radius: 100px; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #111827; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,0.06); } .slider-badge-before { left: 14px; } .slider-badge-after { right: 14px; z-index: 1; } /* ── How it Works Section ── */ .landing-how-it-works { display: flex; flex-direction: column; gap: 16px; padding: 8px 0 16px; } .hiw-header { text-align: left; } .hiw-header h2 { font-size: 1.5rem; font-weight: 700; color: #111827; letter-spacing: -0.02em; margin-bottom: 6px; } .hiw-header p { font-size: 1rem; color: #6B7280; } .hiw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; } @media (max-width: 768px) { .hiw-steps { grid-template-columns: 1fr; gap: 20px; } } .hiw-step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; background: #ffffff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 14px 16px; transition: all 0.2s ease; position: relative; overflow: hidden; } .hiw-step:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.04); transform: translateY(-2px); border-color: #D1D5DB; } .hiw-number { width: 32px; height: 32px; background: #111827; color: #ffffff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700; font-family: var(--font-sans); } .hiw-text h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 6px; color: #111827; letter-spacing: -0.01em; } .hiw-text p { font-size: 0.85rem; color: #6B7280; line-height: 1.55; } /* Projects Section */ .landing-projects { display: flex; flex-direction: column; gap: 24px; } .projects-header { display: flex; justify-content: space-between; align-items: center; } .projects-header h3 { font-size: 1.25rem; font-weight: 600; color: #111827; } .view-all-btn { background: none; border: none; color: #6b7280; font-size: 0.9rem; cursor: pointer; } .projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } @media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } } .project-card { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.2s ease; } .project-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); } .project-img-wrapper { width: 100%; aspect-ratio: 16/10; background: #f3f4f6; } .project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; } .project-info { padding: 16px; display: flex; justify-content: space-between; align-items: flex-start; } .project-info h4 { font-size: 0.9rem; font-weight: 500; color: #111827; margin-bottom: 4px; } .project-info span { font-size: 0.75rem; color: #9ca3af; } .more-btn { background: none; border: none; color: #9ca3af; cursor: pointer; padding: 4px; } .new-project-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px dashed #d1d5db; background: transparent; gap: 12px; padding: 24px; cursor: pointer; } .new-project-card:hover { border-color: #6c5ce7; background: rgba(108, 92, 231, 0.02); } .new-project-icon { width: 40px; height: 40px; border-radius: 50%; background: #ffffff; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; } .new-project-card h4 { font-size: 0.95rem; color: #111827; } .new-project-card p { font-size: 0.8rem; color: #9ca3af; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');
:root {
color-scheme: light;
/* Core palette */
--bg-deep: #f3f4f6;
--bg-base: #ffffff;
--bg-surface: #ffffff;
--bg-elevated: #ffffff;
--bg-hover: #f9fafb;
/* Text */
--text-primary: #111827;
--text-secondary: #4b5563;
--text-muted: #9ca3af;
/* Accent */
--accent: #111827;
--accent-dim: rgba(17, 24, 39, 0.05);
--accent-strong: #000000;
/* Border & shadows */
--border: #e5e7eb;
--border-active: #111827;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
/* Radii */
--radius-sm: 8px;
--radius-md: 12px;
--radius-lg: 16px;
--radius-xl: 24px;
/* Transitions */
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
--transition-fast: 150ms var(--ease-out);
--transition-normal: 250ms var(--ease-out);
}
/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
background: var(--bg-deep);
color: var(--text-primary);
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
font-size: 14px;
line-height: 1.5;
height: 100vh;
overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
/* ── App Shell ─────────────────────────────────────────────────────── */
.app-shell {
display: flex;
flex-direction: column;
height: 100vh;
width: 100vw;
background: var(--bg-deep);
position: relative;
}
/* ── Topbar ────────────────────────────────────────────────────────── */
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 24px;
background: var(--bg-base);
border-bottom: 1px solid var(--border);
z-index: 50;
flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 24px; height: 24px; color: var(--text-primary); }
.topbar-left h1 {
font-family: 'Outfit', 'Inter', sans-serif;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.01em;
}
.topbar-center { position: absolute; left: 50%; transform: translateX(-50%); }
.action-bar { display: flex; gap: 8px; align-items: center; }
/* ── Stage Area ────────────────────────────────────────────────────── */
.stage-area {
flex: 1;
position: relative;
overflow: hidden;
background: var(--bg-deep);
display: flex;
flex-direction: row;
}