/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Soft, modern palette */
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --bg-soft: #f5f3ee;
  --bg-tint: #f0ede4;

  --ink: #0f0f0f;
  --ink-2: #2a2a2a;
  --ink-3: #5a5a5a;
  --ink-4: #8a8a8a;
  --ink-5: #b8b8b8;

  --border: #e8e6df;
  --border-soft: #f0eee7;

  --primary: #0f0f0f;
  --primary-hover: #2a2a2a;

  /* Friendly accent colors */
  --accent: #ff6b4a;
  --green: #5fb878;
  --green-soft: #e8f5ec;
  --blue: #5b8def;
  --blue-soft: #e7eeff;
  --amber: #f5b342;
  --amber-soft: #fef3dc;
  --pink: #f06292;
  --pink-soft: #fce4ec;
  --purple: #a78bfa;
  --purple-soft: #efe9ff;
  --coral: #ff7a6b;
  --coral-soft: #ffe6e2;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', 'SF Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.04), 0 2px 4px rgba(15, 15, 15, 0.02);
  --shadow: 0 4px 12px rgba(15, 15, 15, 0.06), 0 1px 3px rgba(15, 15, 15, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 15, 15, 0.12), 0 8px 16px -4px rgba(15, 15, 15, 0.06);
  --shadow-xl: 0 32px 64px -16px rgba(15, 15, 15, 0.18), 0 12px 24px -6px rgba(15, 15, 15, 0.08);
}

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.hidden { display: none !important; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(250, 250, 247, 0.8);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
}
.logo-mark {
  display: flex;
  color: var(--ink);
}
.logo-text {
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-links > a {
  padding: 10px 16px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  transition: all 0.15s;
}
.nav-links > a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary);
  color: white;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg-card);
  color: var(--ink);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.15s;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--bg-soft);
}

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ============ HERO ============ */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--coral-soft) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 10%; left: 0;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--blue-soft) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.5;
  z-index: -1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.hero-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 24px;
}
.title-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8a6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex; gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.meta-item svg {
  color: var(--green);
}

/* ===== Hero Preview Window ===== */
.hero-preview {
  position: relative;
}

.preview-window {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transform: rotate(-1deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.preview-window:hover { transform: rotate(0deg); }

.window-bar {
  display: flex; align-items: center;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}
.window-dots {
  display: flex; gap: 6px;
}
.window-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--border);
}
.window-dots span:nth-child(1) { background: #ff6058; }
.window-dots span:nth-child(2) { background: #ffbd2f; }
.window-dots span:nth-child(3) { background: #28c941; }
.window-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  background: var(--bg-card);
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}

.window-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-soft) 100%);
}

.window-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border-soft);
}
.form-mock-tab {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 14px;
}
.form-mock-input { margin-bottom: 12px; }
.form-mock-input label {
  display: block;
  font-size: 10px;
  color: var(--ink-4);
  margin-bottom: 4px;
  font-weight: 500;
}
.mock-field {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--ink);
}
.mock-typing {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.06);
}
.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.window-arrow {
  display: flex;
  animation: arrow-float 2s ease-in-out infinite;
}
@keyframes arrow-float {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.window-resume {
  background: white;
  border-radius: 8px;
  padding: 16px 14px;
  font-family: var(--serif);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.mini-name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
}
.mini-role {
  font-family: var(--sans);
  font-size: 8px;
  color: var(--ink-4);
  text-align: center;
  margin-top: 1px;
}
.mini-rule {
  height: 1px;
  background: var(--ink);
  margin: 8px 0;
}
.mini-section {
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 8px 0 4px;
  color: var(--ink);
}
.mini-row {
  display: flex; justify-content: space-between;
  font-size: 9px;
  margin-bottom: 1px;
}
.mini-row strong { font-weight: 600; }
.mini-row span {
  font-family: var(--mono);
  font-size: 7px;
  color: var(--ink-4);
}
.mini-sub {
  font-size: 8px;
  font-style: italic;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.mini-bullet {
  font-family: var(--sans);
  font-size: 7.5px;
  color: var(--ink-3);
  padding-left: 8px;
  position: relative;
  line-height: 1.4;
}
.mini-bullet::before {
  content: '·';
  position: absolute; left: 2px;
  color: var(--accent);
  font-weight: bold;
}

.preview-pill {
  position: absolute;
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  white-space: nowrap;
}
.pill-1 {
  top: -16px; left: -20px;
  animation: float-pill 3s ease-in-out infinite;
}
.pill-2 {
  bottom: -16px; right: -16px;
  animation: float-pill 3.5s ease-in-out infinite reverse;
}
@keyframes float-pill {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============ STATS STRIP ============ */
.stats-strip {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
}
.stats-inner {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 32px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: white;
  box-shadow: var(--shadow-xl);
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  background: linear-gradient(135deg, #ffffff 0%, var(--ink-5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-5);
  letter-spacing: 0.02em;
}

/* ============ SECTION HEADS ============ */
.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: var(--bg-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-head h2 em,
.section-head h2 i {
  font-family: var(--serif);
  font-weight: 400;
}
.section-head > p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ============ HOW IT WORKS ============ */
.how {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 32px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
  position: relative;
}
.step:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.step-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin-bottom: 24px;
}
.step:nth-child(1) .step-icon { background: var(--blue-soft); color: var(--blue); }
.step:nth-child(2) .step-icon { background: var(--amber-soft); color: var(--amber); }
.step:nth-child(3) .step-icon { background: var(--green-soft); color: var(--green); }

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.step h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ============ TEMPLATES ============ */
.templates {
  max-width: 1200px; margin: 0 auto;
  padding: 60px 32px 100px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.template-card {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.template-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--ink);
}

.template-tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

.template-preview {
  aspect-ratio: 8.5 / 11;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.template-card:hover .template-preview {
  box-shadow: var(--shadow);
}

/* Classic Template Preview */
.tpl-classic { font-family: var(--serif); }
.tpl-name {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4px;
  color: var(--ink);
}
.tpl-rule {
  height: 1px;
  background: var(--ink);
  margin: 12px 0;
}
.tpl-sec {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 16px 0 8px;
  color: var(--ink);
}
.tpl-row {
  display: flex; justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
  color: var(--ink);
}
.tpl-row em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  color: var(--ink-4);
}
.tpl-line {
  height: 3px;
  background: #e8e6df;
  margin: 4px 0;
  border-radius: 2px;
}
.tpl-line.short { width: 65%; }

/* Modern Template Preview */
.tpl-modern {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 14px;
  font-family: var(--sans);
  padding: 0;
}
.tpl-mod-side {
  background: var(--ink);
  color: white;
  padding: 24px 14px;
}
.tpl-mod-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 8px;
}
.tpl-mod-tag {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
}
.tpl-mod-divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 14px;
}
.tpl-mod-mini {
  font-size: 7px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  opacity: 0.7;
}
.tpl-mod-line {
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin: 3px 0;
  border-radius: 1px;
}
.tpl-mod-line.short { width: 60%; }
.tpl-mod-main { padding: 24px 14px 24px 0; }
.tpl-mod-h {
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: var(--ink);
}
.tpl-mod-main .tpl-mod-line {
  background: #e8e6df;
}

/* Compact Template Preview */
.tpl-compact {
  font-family: var(--mono);
  font-size: 10px;
}
.tpl-cmp-name {
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  color: var(--ink);
}
.tpl-cmp-contact {
  font-size: 8px;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.tpl-cmp-bar {
  height: 2px;
  background: var(--ink);
  margin-bottom: 12px;
}
.tpl-cmp-sec {
  font-size: 9px;
  font-weight: 700;
  margin: 12px 0 6px;
  color: var(--accent);
}
.tpl-cmp-line {
  height: 2px;
  background: #e8e6df;
  margin: 3px 0;
}
.tpl-cmp-line.short { width: 70%; }

.template-meta {
  padding: 0 4px;
}
.template-meta h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.template-meta p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 12px;
}
.template-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.template-card:hover .template-cta {
  gap: 8px;
}

/* ============ FEATURES ============ */
.features {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 100px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.feature:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon-green { background: var(--green-soft); color: var(--green); }
.feature-icon-blue { background: var(--blue-soft); color: var(--blue); }
.feature-icon-amber { background: var(--amber-soft); color: var(--amber); }
.feature-icon-pink { background: var(--pink-soft); color: var(--pink); }
.feature-icon-purple { background: var(--purple-soft); color: var(--purple); }
.feature-icon-coral { background: var(--coral-soft); color: var(--coral); }

.feature h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============ CTA BLOCK ============ */
.cta-block {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 100px;
}
.cta-inner {
  background: var(--ink);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 107, 74, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(91, 141, 239, 0.15) 0%, transparent 50%);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-inner h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.cta-inner p {
  font-size: 18px;
  color: var(--ink-5);
  margin-bottom: 32px;
}
.cta-inner .btn-primary {
  background: white;
  color: var(--ink);
}
.cta-inner .btn-primary:hover {
  background: var(--bg-soft);
}

/* ============ FAQ ============ */
.faq {
  max-width: 760px; margin: 0 auto;
  padding: 0 32px 100px;
}
.faq-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item:hover {
  border-color: var(--border);
}
.faq-item[open] {
  background: var(--bg-soft);
  border-color: var(--border);
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}
.faq-item[open] .faq-icon {
  background: var(--ink);
  transform: rotate(45deg);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  transition: background 0.2s;
}
.faq-icon::before {
  width: 10px; height: 1.5px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px; height: 10px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after {
  background: white;
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  padding: 64px 32px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 240px;
}
.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-3);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--ink-4);
}

/* ============================================ */
/* ============ BUILDER APP =================== */
/* ============================================ */
.builder {
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg-soft);
}

.builder-nav {
  height: 64px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 24px;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.builder-nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.builder-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  padding: 6px 14px;
  background: var(--bg-soft);
  border-radius: 999px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.builder-nav-actions {
  display: flex; gap: 10px; align-items: center;
}
.template-select {
  font-size: 13px; font-weight: 500;
  padding: 9px 32px 9px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230f0f0f' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.15s;
}
.template-select:hover { border-color: var(--ink); }

.builder-body {
  flex: 1;
  display: grid;
  grid-template-columns: 480px 1fr;
  overflow: hidden;
  gap: 0;
}

/* ===== Mobile Toggle ===== */
.mobile-view-toggle {
  display: none;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 16px;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-tab {
  flex: 1;
  padding: 10px;
  font-size: 14px; font-weight: 600;
  border-radius: 10px;
  color: var(--ink-3);
  background: transparent;
  transition: all 0.15s;
}
.mobile-tab.active {
  background: var(--ink);
  color: #fff;
}

/* ===== Form Panel ===== */
.form-panel {
  background: var(--bg-card);
  border-right: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.form-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-card);
  flex-shrink: 0;
  scrollbar-width: none;
}
.form-tabs::-webkit-scrollbar { display: none; }

.form-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.15s;
  background: transparent;
}
.form-tab:hover {
  color: var(--ink);
  background: var(--bg-soft);
}
.form-tab.active {
  color: white;
  background: var(--ink);
}
.tab-emoji {
  font-size: 14px;
}

.form-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}
.form-scroll::-webkit-scrollbar { width: 8px; }
.form-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.form-scroll::-webkit-scrollbar-thumb:hover { background: var(--ink-5); }

.form-section { display: none; }
.form-section.active {
  display: block;
  animation: fadeUp 0.3s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-section-head {
  margin-bottom: 28px;
}
.form-section-head h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.form-section-head p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
}
label.full { grid-column: 1 / -1; }
.hint {
  font-weight: 400;
  color: var(--ink-4);
  font-size: 12px;
}

input[type="text"], input[type="email"], textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.15s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.06);
}
input::placeholder, textarea::placeholder {
  color: var(--ink-5);
}
textarea {
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.entry-list {
  display: flex; flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.entry-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.15s;
}
.entry-card:hover {
  border-color: var(--border);
}
.entry-card-head {
  display: flex; justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.entry-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.entry-card-title::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.entry-remove {
  font-size: 12px;
  color: var(--ink-4);
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}
.entry-remove:hover {
  color: #d63d2c;
  background: var(--coral-soft);
}

.btn-add {
  display: flex;
  width: 100%;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  transition: all 0.15s;
}
.btn-add:hover {
  border-color: var(--ink);
  border-style: solid;
  color: var(--ink);
  background: var(--bg-soft);
}

/* ===== Preview Panel ===== */
.preview-panel {
  display: flex; flex-direction: column;
  background: var(--bg-soft);
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 24px 24px;
  background-position: 12px 12px;
  overflow: hidden;
}
.preview-toolbar {
  height: 48px;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}
.preview-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}
.preview-zoom {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-card);
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
}
.preview-zoom button {
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.preview-zoom button:hover { background: var(--bg-soft); }
.preview-zoom span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  padding: 0 6px;
  min-width: 38px;
  text-align: center;
}

.preview-stage {
  flex: 1;
  overflow: auto;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ============ RESUME PAGE (preserve from prior) ============ */
.resume-page {
  width: 8.5in;
  min-height: 11in;
  background: white;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.18),
              0 4px 12px -2px rgba(0,0,0,0.08);
  border-radius: 4px;
  transform-origin: top center;
  position: relative;
  flex-shrink: 0;
}

/* Classic page styles */
.tpl-classic-page {
  padding: 0.7in 0.8in;
  font-family: var(--serif);
  color: #0f0f0f;
}
.tpl-classic-page .r-name {
  font-size: 32pt;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4px;
}
.tpl-classic-page .r-headline {
  font-family: var(--sans);
  font-size: 11pt;
  text-align: center;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.tpl-classic-page .r-contact {
  font-family: var(--sans);
  font-size: 9.5pt;
  text-align: center;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.tpl-classic-page .r-contact span:not(:last-child)::after {
  content: ' · ';
  color: var(--ink-4);
}
.tpl-classic-page .r-divider {
  height: 1px;
  background: #0f0f0f;
  margin: 12px 0 18px;
}
.tpl-classic-page .r-summary {
  font-size: 11pt;
  line-height: 1.5;
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 18px;
  text-align: center;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.tpl-classic-page .r-section {
  font-family: var(--sans);
  font-size: 10pt;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 18px 0 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}
.tpl-classic-page .r-entry { margin-bottom: 14px; }
.tpl-classic-page .r-entry-head {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.tpl-classic-page .r-entry-title {
  font-size: 12pt;
  font-weight: 600;
}
.tpl-classic-page .r-entry-date {
  font-family: var(--mono);
  font-size: 9.5pt;
  color: var(--ink-4);
}
.tpl-classic-page .r-entry-sub {
  font-style: italic;
  font-size: 11pt;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tpl-classic-page .r-bullet {
  font-family: var(--sans);
  font-size: 10pt;
  line-height: 1.5;
  color: var(--ink-3);
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
}
.tpl-classic-page .r-bullet::before {
  content: '·';
  position: absolute; left: 4px;
  color: var(--accent);
  font-size: 14pt;
  line-height: 1;
}
.tpl-classic-page .r-skills-row {
  font-family: var(--sans);
  font-size: 10pt;
  margin-bottom: 6px;
  line-height: 1.5;
}
.tpl-classic-page .r-skills-cat {
  font-weight: 600;
  color: var(--ink);
}

/* Modern page styles */
.tpl-modern-page {
  padding: 0;
  font-family: var(--sans);
  color: #0f0f0f;
  display: grid;
  grid-template-columns: 35% 1fr;
  min-height: 11in;
}
.tpl-modern-page .r-side {
  background: #0f0f0f;
  color: white;
  padding: 0.7in 0.4in;
}
.tpl-modern-page .r-main {
  padding: 0.7in 0.6in 0.7in 0.5in;
}
.tpl-modern-page .r-name {
  font-size: 26pt;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.tpl-modern-page .r-headline {
  font-size: 10pt;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 28px;
}
.tpl-modern-page .r-side-section {
  font-size: 9pt;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 20px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.tpl-modern-page .r-side-row {
  font-size: 10pt;
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: 0.85;
}
.tpl-modern-page .r-side-row strong {
  display: block;
  font-weight: 600;
  font-size: 9.5pt;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 2px;
}
.tpl-modern-page .r-section {
  font-size: 11pt;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 20px 0 10px;
  color: var(--accent);
  text-transform: uppercase;
}
.tpl-modern-page .r-section:first-child { margin-top: 0; }
.tpl-modern-page .r-entry { margin-bottom: 16px; }
.tpl-modern-page .r-entry-head {
  display: flex; justify-content: space-between;
  margin-bottom: 2px;
}
.tpl-modern-page .r-entry-title {
  font-weight: 700;
  font-size: 11pt;
}
.tpl-modern-page .r-entry-date {
  font-size: 9.5pt;
  color: var(--ink-4);
}
.tpl-modern-page .r-entry-sub {
  font-size: 10pt;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 6px;
}
.tpl-modern-page .r-bullet {
  font-size: 9.5pt;
  line-height: 1.5;
  color: var(--ink-3);
  padding-left: 12px;
  position: relative;
  margin-bottom: 3px;
}
.tpl-modern-page .r-bullet::before {
  content: '▸';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 8pt;
}

/* Compact page styles */
.tpl-compact-page {
  padding: 0.6in 0.7in;
  font-family: var(--mono);
  font-size: 9.5pt;
  color: #0f0f0f;
  line-height: 1.45;
}
.tpl-compact-page .r-name {
  font-size: 18pt;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.tpl-compact-page .r-headline {
  font-size: 10pt;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.tpl-compact-page .r-contact {
  font-size: 9pt;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.tpl-compact-page .r-contact span:not(:last-child)::after {
  content: ' · ';
}
.tpl-compact-page .r-divider {
  height: 2px;
  background: #0f0f0f;
  margin-bottom: 14px;
}
.tpl-compact-page .r-summary {
  font-size: 9.5pt;
  line-height: 1.5;
  color: var(--ink-3);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
}
.tpl-compact-page .r-section {
  font-size: 10pt;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--accent);
}
.tpl-compact-page .r-section::before {
  content: '▸ ';
}
.tpl-compact-page .r-entry { margin-bottom: 10px; }
.tpl-compact-page .r-entry-head {
  display: flex; justify-content: space-between;
}
.tpl-compact-page .r-entry-title {
  font-weight: 700;
}
.tpl-compact-page .r-entry-date {
  color: var(--ink-4);
  font-size: 8.5pt;
}
.tpl-compact-page .r-entry-sub {
  color: var(--ink-3);
  font-size: 9pt;
  margin-bottom: 4px;
}
.tpl-compact-page .r-bullet {
  font-size: 9pt;
  padding-left: 14px;
  position: relative;
  color: var(--ink-3);
}
.tpl-compact-page .r-bullet::before {
  content: '└─';
  position: absolute; left: 0;
  color: var(--accent);
  font-size: 8pt;
}
.tpl-compact-page .r-skills-row {
  font-size: 9pt;
  margin-bottom: 4px;
}
.tpl-compact-page .r-skills-cat {
  color: var(--accent);
  font-weight: 700;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 48px; }
  .hero-preview { max-width: 480px; margin: 0 auto; width: 100%; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .builder-body { grid-template-columns: 420px 1fr; }
}
@media (max-width: 700px) {
  .nav-inner { padding: 14px 20px; }
  .nav-links > a { display: none; }
  .hero { padding: 32px 20px 24px; }
  .stats-strip { padding: 0 20px; }
  .stats-inner { padding: 28px 24px; }
  .stat-num { font-size: 36px; }
  .how, .templates, .features, .cta-block, .faq { padding-left: 20px; padding-right: 20px; }
  .how, .templates, .features, .cta-block, .faq { padding-bottom: 60px; }
  .template-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 56px 24px; }
  .footer { padding: 48px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .builder-body { grid-template-columns: 1fr; overflow: visible; }
  .form-row { grid-template-columns: 1fr; }
  .preview-pill { display: none; }
  .form-panel { border-right: none; }
  .form-panel.mobile-hidden { display: none; }
  .preview-panel.mobile-hidden { display: none; }
  .mobile-view-toggle { display: flex; }
}
