/* ════════════════════════════════════════════════════════════
   Portfolia — Landing Page Styles
   Aesthetic: Editorial Minimal · Warm Cream & Ink
   ════════════════════════════════════════════════════════════ */

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

:root {
  --cream: #F5F0E8;
  --ink: #1A1612;
  --ink-light: #6B6460;
  --accent: #C84B2F;
  --accent-warm: #E8A87C;
  --white: #FDFAF5;
  --border: rgba(26,22,18,0.12);

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navigation ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,240,232,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(200,75,47,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,75,47,0.1);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-light);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeUp 0.6s 0.3s ease both;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,75,47,0.3);
}
.btn-primary.btn-large { font-size: 1.125rem; padding: 1rem 2.5rem; }

.btn-arrow { font-style: normal; }

.hero-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-light);
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.25rem;
  color: var(--ink-light);
  animation: bounce 2s infinite;
}

/* ── How It Works ── */
.how-it-works {
  padding: 8rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.how-it-works h2,
.templates-section h2,
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step.visible { opacity: 1; transform: translateY(0); }
.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: rgba(26,22,18,0.1);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.step p {
  color: var(--ink-light);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.step-connector {
  width: 4rem;
  height: 1px;
  background: var(--border);
  margin-top: 3rem;
  flex-shrink: 0;
}

/* ── Templates Section ── */
.templates-section {
  padding: 8rem 4rem;
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.templates-section .section-label { color: var(--accent-warm); }

.section-sub {
  color: rgba(245,240,232,0.6);
  font-size: 1.0625rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.template-card {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}
.template-card.visible { opacity: 1; transform: translateY(0); }
.template-card:nth-child(1) { transition-delay: 0s; }
.template-card:nth-child(2) { transition-delay: 0.08s; }
.template-card:nth-child(3) { transition-delay: 0.16s; }
.template-card:nth-child(4) { transition-delay: 0.24s; }
.template-card:nth-child(5) { transition-delay: 0.32s; }

.template-card:hover { border-color: var(--accent-warm); transform: translateY(-4px); }
.template-card.active { border-color: var(--accent); }

.template-preview {
  height: 140px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Minimal preview */
.minimal-preview { background: #F5F0E8; }
.bold-preview { background: #1A1612; }
.warm-preview { background: #FDF6EC; }
.editorial-preview { background: #F0EDE8; }
.glass-preview { background: linear-gradient(135deg, #667eea, #764ba2); }

.tp-header { height: 24px; background: rgba(26,22,18,0.12); border-radius: 4px; }
.tp-header.dark { background: rgba(245,240,232,0.15); }
.tp-header.warm { background: #E8A87C; opacity: 0.6; }

.tp-lines { display: flex; flex-direction: column; gap: 4px; }
.tp-line { height: 6px; background: rgba(26,22,18,0.1); border-radius: 3px; }
.tp-line.wide { width: 90%; }
.tp-line.med { width: 65%; }
.tp-line.short { width: 40%; }
.tp-line.light { background: rgba(245,240,232,0.2); }

.tp-cards { display: flex; gap: 4px; margin-top: 4px; }
.tp-card { flex: 1; height: 32px; background: rgba(26,22,18,0.08); border-radius: 4px; }

.tp-accent { height: 20px; background: #C84B2F; border-radius: 4px; width: 40%; margin-top: 4px; }
.tp-circle { width: 32px; height: 32px; border-radius: 50%; background: #E8A87C; opacity: 0.8; }

.tp-grid-layout { display: flex; gap: 6px; height: 100%; }
.tp-sidebar { width: 30%; background: rgba(26,22,18,0.15); border-radius: 4px; }
.tp-main-content { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tp-block { flex: 1; background: rgba(26,22,18,0.08); border-radius: 4px; }

.tp-gradient-bg {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
}
.tp-glass-card {
  height: 48px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
}
.tp-glass-card.small { height: 32px; width: 75%; }

.template-info {
  background: rgba(245,240,232,0.06);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.template-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--cream);
}
.template-tag {
  font-size: 0.7rem;
  color: rgba(245,240,232,0.5);
  letter-spacing: 0.04em;
}

/* ── Social Proof ── */
.social-proof {
  padding: 5rem 4rem;
  background: var(--accent);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.proof-stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.proof-stat.visible { opacity: 1; transform: translateY(0); }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--cream);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.75);
  font-weight: 400;
}

/* ── Final CTA ── */
.final-cta {
  padding: 10rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.final-cta p {
  color: var(--ink-light);
  font-size: 1.0625rem;
  margin: -1.5rem 0 2.5rem;
}

/* ── Footer ── */
.footer {
  padding: 2rem 4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .how-it-works, .templates-section { padding: 5rem 1.5rem; }
  .steps { flex-direction: column; gap: 2rem; }
  .step-connector { width: 1px; height: 2rem; margin: 0 0 0 1rem; }
  .templates-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .social-proof { padding: 4rem 1.5rem; }
  .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .footer { flex-direction: column; gap: 0.75rem; text-align: center; padding: 2rem 1.5rem; }
}

@media (max-width: 500px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .templates-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
}
