:root {
  /* Color Palette - Modern Architectural Minimalist */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --accent-primary: #1a1a1a;
  --accent-secondary: #c5a059; /* Muted Gold/Brass */
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --surface-glass: rgba(255, 255, 255, 0.8);
  
  /* Spacing & Sizing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* App Specifics */
  --app-height: 844px; /* iPhone 13/14 height */
  --app-width: 390px; /* iPhone 13/14 width */
  --app-radius: 40px;
  
  /* Typography */
  --font-display: 'Didot', 'Playfair Display', serif;
  --font-body: 'Inter', 'Outfit', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px-40px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* Hero Section */
.hero {
  display: flex;
  min-height: calc(100vh - 80px);
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: var(--spacing-md);
}

.hero-image {
  flex: 1.2;
  position: relative;
  height: 600px;
}

.hero-image-placeholder {
  width: 100%;
  height: 100%;
  background: #eee;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.hero-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.05) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}

/* Interface Visualization Card */
.interface-overlay {
  position: absolute;
  bottom: -30px;
  left: -30px;
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  width: 320px;
  border-radius: 2px;
}

/* Designer Interface Grid */
.designer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  height: 800px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--shadow-md);
}

.sidebar {
  border-right: 1px solid var(--border-color);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.main-viewport {
  background: #f0f0f0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-empty {
  width: 80%;
  height: 70%;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
}

.right-panel {
  border-left: 1px solid var(--border-color);
  padding: var(--spacing-md);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn:hover {
  transform: translateY(-2px);
  background: #333;
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

.category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.tool-group {
  margin-bottom: var(--spacing-md);
}

.tool-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  display: block;
  color: var(--text-muted);
}

.asset-card {
  background: var(--bg-primary);
  aspect-ratio: 1;
  margin-bottom: var(--spacing-sm);
  border: 1px solid transparent;
  transition: border 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-card:hover {
  border-color: var(--accent-secondary);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Footer */
footer {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

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

.footer-nav {
  display: flex;
  gap: var(--spacing-md);
}

.placeholder-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile App Container */
.app-screen {
  width: 100%;
  max-width: var(--app-width);
  height: var(--app-height);
  background: var(--bg-primary);
  margin: 2rem auto;
  border-radius: var(--app-radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 12px #1a1a1a, 0 20px 50px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
}

/* App Status Bar */
.status-bar {
  height: 44px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
}

.status-bar .icons {
  display: flex;
  gap: 6px;
}

/* App Navigation Bar */
.app-nav {
  height: 80px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}

/* App Content Area */
.app-content {
  flex: 1;
  padding: 0 24px;
  overflow-y: auto;
  scrollbar-width: none;
}
.app-content::-webkit-scrollbar { display: none; }

/* Home Screen Specifics */
.greeting-section {
  margin-top: 10px;
  margin-bottom: 30px;
}

.greeting-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.1;
  font-style: italic;
  margin-top: 4px;
}

/* Search Bar */
.search-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.search-container input {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
}

/* Grid Sections */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-header a {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
}

.recent-projects {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.recent-projects::-webkit-scrollbar { display: none; }

.project-card {
  min-width: 160px;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.project-card .img-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: #eee;
}

.project-card .project-info {
  z-index: 1;
  background: var(--bg-secondary);
  margin-top: auto;
}

.project-card h4 {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.project-card span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Bottom Tab Bar */
.tab-bar {
  height: 84px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 20px; /* Home indicator space */
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tab-item.active {
  color: var(--accent-primary);
}

.tab-item.fab {
  background: var(--accent-primary);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  justify-content: center;
  transform: translateY(-15px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Visualizer/Editor Specifics */
.canvas-container {
  position: relative;
  height: 500px;
  margin: 0 -24px;
  background: #222;
  overflow: hidden;
}

.canvas-image {
  width: 100%;
  height: 100%;
  background: #333; /* Darker bg for visualizer */
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-ui {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ui-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
}

.bottom-sheet {
  background: var(--bg-secondary);
  border-radius: 24px 24px 0 0;
  padding: 24px;
  position: relative;
  margin-top: -24px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
  min-height: 200px;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #eee;
  border-radius: 2px;
  margin: -12px auto 20px;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.property-item label {
  font-size: 0.85rem;
  font-weight: 600;
}

.style-selector {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}

.style-pill {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap;
  cursor: pointer;
}

.style-pill.active {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

/* Home Indicator for iPhone style */
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 5px;
  background: #1a1a1a;
  border-radius: 10px;
  opacity: 0.2;
}

@media (max-width: 480px) {
  .app-screen {
    margin: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
  .home-indicator {
    display: block;
  }
}
