/* ============================================================
   ResumFlow — App Design System
   Light minimal · Notion/Vercel vibe · Indigo accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;450;500;550;600;700;800;900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Lato:wght@300;400;700&family=Syne:wght@400;600;700;800&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --rf-bg:          #FAFAF7;   /* warm off-white app bg */
  --rf-bg-tint:     #F5F4EF;   /* slightly warmer */
  --rf-surface:     #FFFFFF;
  --rf-surface-2:   #F7F7F4;
  --rf-ink:         #131316;   /* primary text (near black) */
  --rf-ink-2:       #3D3D44;
  --rf-ink-3:       #71717A;
  --rf-ink-4:       #A1A1AA;
  --rf-line:        #E8E6E0;   /* warm divider */
  --rf-line-2:      #EFEDE7;
  --rf-line-strong: #1B1B1F;

  /* Accent: indigo */
  --rf-accent:      #6366F1;
  --rf-accent-deep: #4F46E5;
  --rf-accent-soft: #EEF0FF;
  --rf-accent-50:   #F5F6FF;
  --rf-accent-ink:  #312E81;

  /* Status */
  --rf-success:     #10B981;
  --rf-success-soft:#ECFDF5;
  --rf-warn:        #F59E0B;
  --rf-danger:      #EF4444;

  /* Type */
  --rf-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rf-serif:       'Instrument Serif', Georgia, serif;
  --rf-mono:        'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radius */
  --rf-r-xs:        4px;
  --rf-r-sm:        6px;
  --rf-r-md:        10px;
  --rf-r-lg:        14px;
  --rf-r-xl:        20px;
  --rf-r-2xl:       28px;
  --rf-r-pill:      999px;

  /* Shadow */
  --rf-shadow-xs:   0 1px 2px rgba(15, 15, 20, 0.04);
  --rf-shadow-sm:   0 2px 6px rgba(15, 15, 20, 0.05), 0 1px 2px rgba(15, 15, 20, 0.03);
  --rf-shadow-md:   0 6px 20px rgba(15, 15, 20, 0.07), 0 2px 6px rgba(15, 15, 20, 0.04);
  --rf-shadow-lg:   0 20px 50px rgba(15, 15, 20, 0.10), 0 4px 12px rgba(15, 15, 20, 0.05);
  --rf-shadow-xl:   0 30px 80px rgba(15, 15, 20, 0.16), 0 8px 24px rgba(15, 15, 20, 0.06);

  /* Layout */
  --rf-max:         1280px;
  --rf-gutter:      40px;
  --rf-nav-h:       64px;
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html, body {
  background: var(--rf-bg);
  color: var(--rf-ink);
  font-family: var(--rf-font);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--rf-accent); color: white; }

/* ============================================================
   Container
   ============================================================ */
.rf-container {
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: 0 var(--rf-gutter);
}

@media (max-width: 720px) {
  :root { --rf-gutter: 20px; --rf-nav-h: 56px; }
  html, body { font-size: 14px; }
}

/* ============================================================
   Typography
   ============================================================ */

.rf-display {
  font-family: var(--rf-font);
  font-weight: 600;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--rf-ink);
}
.rf-display em {
  font-family: var(--rf-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--rf-accent);
}
.rf-h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.rf-h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.rf-h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.018em;
  font-weight: 600;
}
.rf-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--rf-ink-2);
  letter-spacing: -0.012em;
}
.rf-eyebrow {
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-ink-3);
}
.rf-mono { font-family: var(--rf-mono); }

/* ============================================================
   Navigation
   ============================================================ */

.rf-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--rf-nav-h);
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rf-line);
}
.rf-nav-inner {
  height: 100%;
  max-width: var(--rf-max);
  margin: 0 auto;
  padding: 0 var(--rf-gutter);
  display: flex;
  align-items: center;
  gap: 36px;
}
.rf-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--rf-ink);
}
.rf-logo-mark {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--rf-ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--rf-bg);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.05em;
}
.rf-logo-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 5px;
  background: var(--rf-accent);
  opacity: 0;
  transition: opacity 0.2s;
}
.rf-logo:hover .rf-logo-mark::after { opacity: 0.18; }

.rf-nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.rf-nav-link {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--rf-ink-2);
  border-radius: var(--rf-r-sm);
  transition: all 0.15s;
}
.rf-nav-link:hover { color: var(--rf-ink); background: var(--rf-line-2); }
.rf-nav-link.is-active { color: var(--rf-ink); background: var(--rf-line-2); }

.rf-nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 820px) {
  .rf-nav-links { display: none; }
}

/* ============================================================
   Buttons
   ============================================================ */

.rf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--rf-r-md);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.01em;
  transition: transform 0.06s ease, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.rf-btn:active { transform: translateY(0.5px); }

.rf-btn-primary {
  background: var(--rf-ink);
  color: var(--rf-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.15);
}
.rf-btn-primary:hover { background: #000; }

.rf-btn-accent {
  background: var(--rf-accent);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 14px rgba(99,102,241,0.28);
}
.rf-btn-accent:hover { background: var(--rf-accent-deep); }

.rf-btn-ghost {
  background: transparent;
  color: var(--rf-ink);
  border: 1px solid var(--rf-line);
}
.rf-btn-ghost:hover { background: var(--rf-surface); border-color: var(--rf-ink-4); }

.rf-btn-text {
  background: transparent;
  color: var(--rf-ink-2);
  padding: 0 10px;
}
.rf-btn-text:hover { color: var(--rf-ink); }

.rf-btn-sm { height: 30px; padding: 0 12px; font-size: 13px; }
.rf-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--rf-r-lg); }
.rf-btn-xl { height: 54px; padding: 0 26px; font-size: 16px; border-radius: var(--rf-r-lg); }

.rf-btn-icon {
  width: 38px; padding: 0;
  display: inline-grid;
  place-items: center;
}

/* ============================================================
   Inputs
   ============================================================ */
.rf-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-md);
  font-size: 14px;
  color: var(--rf-ink);
  outline: none;
  transition: border 0.15s, box-shadow 0.15s;
}
.rf-input:focus { border-color: var(--rf-accent); box-shadow: 0 0 0 4px rgba(99,102,241,0.12); }
.rf-input::placeholder { color: var(--rf-ink-4); }

/* ============================================================
   Cards / surfaces
   ============================================================ */
.rf-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  border-radius: var(--rf-r-lg);
}

/* ============================================================
   Footer
   ============================================================ */
.rf-footer {
  margin-top: 120px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--rf-line);
}
.rf-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 40px;
}
.rf-footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-ink-3);
  margin-bottom: 16px;
}
.rf-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--rf-ink-2);
  padding: 4px 0;
}
.rf-footer-col a:hover { color: var(--rf-ink); }
.rf-footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rf-line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--rf-ink-3);
}
@media (max-width: 820px) {
  .rf-footer-grid { grid-template-columns: 1fr 1fr; }
  .rf-footer-bottom { flex-direction: column; gap: 8px; }
}

/* ============================================================
   Utilities
   ============================================================ */
.rf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--rf-r-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--rf-surface);
  border: 1px solid var(--rf-line);
  color: var(--rf-ink-2);
}
.rf-tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rf-accent);
}
.rf-tag-accent {
  background: var(--rf-accent-soft);
  border-color: transparent;
  color: var(--rf-accent-deep);
}

.rf-divider {
  height: 1px;
  background: var(--rf-line);
}

.rf-kbd {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid var(--rf-line);
  background: var(--rf-surface);
  font-family: var(--rf-mono);
  font-size: 11px;
  color: var(--rf-ink-3);
}

/* ============================================================
   Section helpers
   ============================================================ */
.rf-section {
  padding: 100px 0;
}
.rf-section-sm { padding: 56px 0; }
@media (max-width: 720px) {
  .rf-section { padding: 64px 0; }
}

.rf-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.rf-section-head .rf-eyebrow { margin-bottom: 14px; }
.rf-section-head .rf-lead { margin-top: 16px; }
