/* FrameCraft — Landing page theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAF9F7;
  --fg: #1A1A1A;
  --accent: #E8502D;
  --muted: #6B6B6B;
  --border: #E4E2DD;
  --surface: #FFFFFF;
}

html {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #c9441f;
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--muted);
}

/* Hero */
.hero {
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-demo {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
}

.demo-folder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 130px;
}

.folder-label, .portfolio-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.folder-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.folder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
  color: var(--fg);
}

.folder-item-icon {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.demo-portfolio-preview {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px;
  min-height: 160px;
}

.preview-header {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.preview-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-line {
  height: 8px;
  background: var(--border);
  border-radius: 2px;
}

.preview-line.short { width: 40%; }
.preview-line.medium { width: 65%; }
.preview-line.long { width: 90%; }

.preview-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.preview-thumb {
  width: 60px;
  height: 40px;
  background: var(--border);
  border-radius: 2px;
}

/* Features section */
.features {
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-headline {
  font-family: 'Instrument Serif', serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 3px;
  font-size: 1.25rem;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

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

/* How it works */
.how-it-works {
  padding: 64px 48px;
  border-bottom: 1px solid var(--border);
}

.how-it-works-inner {
  max-width: 800px;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'Instrument Serif', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--border);
  min-width: 48px;
  line-height: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* CTA section */
.cta-section {
  padding: 80px 48px;
  text-align: center;
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Generator page styles */
.generator-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.generator-nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
}

.generator-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.generator-form-panel {
  padding: 48px;
  border-right: 1px solid var(--border);
}

.generator-preview-panel {
  padding: 48px;
  background: var(--surface);
}

.panel-header {
  margin-bottom: 32px;
}

.panel-header h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.panel-header p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--fg);
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input::placeholder {
  color: #aaa;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s;
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: var(--accent);
  background: rgba(232, 80, 45, 0.03);
}

.drop-zone-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.drop-zone p {
  color: var(--muted);
  font-size: 0.875rem;
}

.drop-zone span {
  color: var(--accent);
  font-weight: 500;
}

.uploaded-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.8rem;
}

.file-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.file-chip-remove:hover {
  color: var(--accent);
}

/* Generator status */
.generator-status {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.status-animation {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.status-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}

.status-step.done {
  color: #2e7d32;
}

.status-step-icon {
  width: 20px;
  text-align: center;
}

/* Portfolio view */
.portfolio-page {
  min-height: 100vh;
  background: var(--bg);
}

.portfolio-hero {
  padding: 120px 48px 80px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.portfolio-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.portfolio-hero p {
  font-size: 1.1rem;
  color: var(--muted);
}

.portfolio-projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 240px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-content {
  padding: 24px;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.case-study {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.case-study h4 {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.case-study-item {
  margin-bottom: 8px;
}

.case-study-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-value {
  font-size: 0.875rem;
  color: var(--fg);
}

/* 404 page */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px;
}

.not-found h1 {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  margin-bottom: 16px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 48px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-headline { font-size: 2.5rem; }
  .features { padding: 48px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 48px 24px; }
  .cta-section { padding: 48px 24px; }
  .footer { padding: 24px; flex-direction: column; gap: 8px; }
  .generator-main { grid-template-columns: 1fr; }
  .generator-form-panel { padding: 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .generator-preview-panel { padding: 24px; }
  .projects-grid { grid-template-columns: 1fr; }
}